03-20-2013 12:06 PM
in my program i have an event struct so when i amplant my VI in a NI compactRIO its not working and when i research for resolution i found that i should use a dynamic event.
my questions are : - in a NI compact RIO can i use dynamic event or not ?
- if yes, how work dynamic event ? i need simple example
thanks
Solved! Go to Solution.
03-20-2013 05:14 PM
You can use user events on a cRIO, which is not the same thing as dynamic events. Dynamic events usually refers to registering for an event programmatically while the code is running, rather than assigning the event to an event case while developing the code. User events are events generated by your code, rather than through front panel interaction. What did you mean by dynamic events? Can you include a link to the page you found that suggested this as a solution?
You cannot register for an event, statically or dynamically, on a front-panel control on a cRIO, because a compiled application on a cRIO (like all RT targets) does not have a front panel. If you need a full-featured user interface with events for your cRIO application, you need to write two separate programs: one to run on the cRIO, and the other to run on your computer. You then need a communication link between them such as network shared variables, network streams, or TCP. You can find examples for these included with LabVIEW or by searching the NI website. Some of those options are not available in older versions of LabVIEW (in particular network streams were introduced recently).
03-20-2013
06:15 PM
- last edited on
04-18-2025
03:07 PM
by
Content Cleaner
thanks a lot for your answer.
this is the page where i found the dynamic event like solution
https://forums.ni.com/t5/LabVIEW/Does-the-Event-Structure-work-with-cRIO/td-p/782879
about your proposition can you give more explanation how to separate my program or an example.
03-20-2013
07:15 PM
- last edited on
04-18-2025
03:08 PM
by
Content Cleaner
I think in that document they meant "user events" not "dynamic events." If you look at the same page in the help for a more recent version of LabVIEW, you'll see that it's clearer now.
Start by reading Network the User Interface (also from the LabVIEW help). Determine what type of data you need to send between the RT system and the user interface. Look at the examples for the communications mechanisms listed in that document.
03-21-2013 03:41 PM
thanks a looot for your answers