12-10-2010 04:20 PM
Hello,
I have recently restructured a project I am working on, moving all my vi's to run on a 9024 CompactRIO (they were previously running on a laptop.)
The issues I am having, is that previously I used one vi front panel with tabs to monitor all the parallel vi's through sub panels. However, I get errors saying the CompactRIO does not support sub panels.
So my question is this - is there a way I can monitor these multiple vi's running on the CompactRIO controller from the laptop computer in the project?
Thanks for taking the time to read this!
Brandon
12-10-2010 04:26 PM - edited 12-10-2010 04:28 PM
a cRIO is made to be a deterministic RT controller (is that redundant?). If you want your user to see the front panel of the VI that's on the cRIO, that means they are running your VI in the development environment. This is all kinds of bad. What you need to do is write a separate program for the cRIO to take the data then use some form of communication (shared variables, TCP/IP, UDP) to transfer the data to your HOST application which is what the user will see. The typical structure is cRIO takes data via its own executable, builds packet, sends to host (in this case your GUI which is a separate *.exe) which resides on a PC, then use this to display data to user.
12-11-2010 12:08 AM
That's what I intended to do, separate programs, I just was trying to make it easy by viewing the vi panel that is running on the RIO on the PC. I want to use separate programs, definitely. If there is no way to do that with subpanels then I will just have to do it as you say, I was just looking for a quicker implementation.
12-12-2010 10:12 PM
If you have a project, which I'm assuming you do, make sure all RT VIs are under the RT target in the project. If you press the run arrow it will run the VI on your RT system but in the development environment. You will then be able to highlight execution etc.
12-13-2010 07:06 AM
BrandonGT,
RT Module used to include the Real-Time Communications Wizard. Used it in a RT class a while back. Its a quick way to create a vi that communicates with the RT target vi. You can even select the communication method to use.
01-19-2011 12:47 AM
Thanks guys for the answers. I was hoping for an extremely simple solution using frames to show the VIs running on the RIO, but shared variables seem to be the way to go for this project. Thanks for the help!