LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

compactrio with dynamic event

Solved!
Go to solution

 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

                            

 

0 Kudos
Message 1 of 5
(3,299 Views)

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).

0 Kudos
Message 2 of 5
(3,267 Views)

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.

 

 

 

0 Kudos
Message 3 of 5
(3,257 Views)
Solution
Accepted by topic author fzzohra

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.

0 Kudos
Message 4 of 5
(3,239 Views)

thanks a looot for your answersSmiley Wink

0 Kudos
Message 5 of 5
(3,224 Views)