09-27-2021 04:45 AM
Hi everyone.
I am new to using Labview and have encountered a problem that I do not understand the nature of, I hope you can help me.
I have created a state machine to allow me to restart the code inside the VI after pausing it.
The code runs correctly and does its job if I run it as a simple VI; however once I implement it into a cRIO 9045 project, the event structure does not trigger on command.
What could be the problem?
I hope I have explained myself with the correct terminology.
I attach the simple VI
Solved! Go to Solution.
09-27-2021 04:54 AM
Hi Cowboy,
@SpaceCowboy90 wrote:
I have created a state machine to allow me to restart the code inside the VI after pausing it.
The code runs correctly and does its job if I run it as a simple VI; however once I implement it into a cRIO 9045 project, the event structure does not trigger on command.
What could be the problem?
Two reasons:
Suggestion:
Examine all those example projects coming with LabVIEW and RT module: they explain how to exchange data and commands between a PC host and a cRIO target…
09-27-2021 04:54 AM
Read the extended help for the event structure on an RT target:
Real-Time Module Details
The following details apply when you use this object in an RT target VI.
Event structures on RT targets do not support events associated with user interface objects, such as VI front panels or controls. For example, associating the Value Change event with a control does not work. RT targets support only user events.
Regards, Jens
09-27-2021 07:45 AM
Thank you for your quick and comprehensive response.
I have a long way to go to learn how to use labview.