Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

efficient touch panel interface to RIO

I wrote some LV FPGA code for a cRIO. I simulated the RIO code that interacts with the FPGA  code on a PC, and now I have to break that code up into 2 pieces: one that runs on the RIO and another that displays the HMI on a 12" NI touch panel.  My  existing PC code uses an event structure for efficient user interface operation. Now that I'm moving the controls to the touch panel using shared variables (I suppose that's the best way), how do I trigger an event on the RIO from a front panel control change on the touch panel? Am I stuck with LV 3.1-era polling?
0 Kudos
Message 1 of 2
(5,391 Views)
Hi khalsans,
I just sent you an E-Mail regarding this issue.  Please reply to the E-Mail if you have further questions.  For the record, here's the body of the E-Mail

"From my understanding of your question, you would like to control your cRIO+FPGA code from a TPC-2012.  Your controls on the 2012 updates shared variables, and your real time OS (9014) is hosting the shared variables and doing operations based on the value change event of the shared variables.
Unfortunately, shared variable value change is not a supported event on an RT OS. http://digital.ni.com/public.nsf/allkb/3AE325EECD9A17AD862570BA00625088?OpenDocument  Since those features are added by LabVIEW DSC, and DSC is not supported on RT system.  Here's a little more info on user generated events on RT system with an example VI attached http://digital.ni.com/public.nsf/allkb/42B70D2D0C4B568586256E2F0051441D?OpenDocument
I have tried to explore other possibilities, but met deadends everywhere, because the only way to communicate between an RT system and your touch panel is via network, in which case shared variable would probably be your best bet to work between these two systems.  Since there's no event based programming that's supported on RT, polling would be your only choice for architecting this program."

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 2
(5,354 Views)