06-04-2015 12:23 PM
Hi again, I'm working in my first UI (attached VI).
It works when running directly from PC. It doesn't when running from cRIO, there's the message "VI containing Event Structure will not receive front panel events in LabVIEW Real-Time". I've been reading and I found that "Event structures on RT targets do not support events associated with user interface objects, such as VI panels or controls. For example, associating the Value Change event with a control does not work. RT targets support only user events".
06-04-2015 12:33 PM
06-04-2015 01:14 PM
I'm a little confused with your answer. So, if I modify my VI and get all the actual front panel into an HMI application (targeting a TPC and creating all the respectives shared variables) it should work?
06-04-2015 01:22 PM
I'm confused by your abbreviations, but if you've got a Host application talking to the RT Target, you can get Front Panel Events from the Host and pass the information (using Shared Variables or other means) to the Target. That's the "expected" way to do this.
Bob Schor
06-04-2015 01:27 PM
Hi Bob, do you have a link to a tutorial about what you said? I'm very confused.
06-04-2015 01:35 PM
Remember now, NI sells RT controllers with monitor outputs.
http://www.ni.com/white-paper/12602/en/
http://www.ni.com/tutorial/2698/en/
Never used one so no idea how it works with or without the event structure.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-04-2015 02:22 PM
Thanks to Hooovahh's Post, I now know what HMI means. What I was describing was the simple Real-Time Project that NI uses, where the code on the PC is "normal" PC code that has Front Panels, Event Loops that handle Value Changed Events on Front Panel Controls, and (usually) use a Producer/Consumer model to pass the Events into a main processing loop that can "talk to" the RT Target using a variety of mechanisms. I believe that LabVIEW 2012 and later (and possibly earlier, as well) have some Example Real-Time Projects (look for Real-Time Data Acquisition and Logging) where Network Streams are the "exchange mechanism", but you could use many of the same ideas with Shared Variables.
Bob Schor
06-04-2015 03:46 PM
06-04-2015 06:51 PM
Since it looks like you are new to the whole RT and machine control, I recommend giving this a good read: NI LabVIEW for CompactRIO Developer's Guide
06-04-2015 07:25 PM