LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure and Flat Sequence not working with myRIO

Hello All,

Hope you are doing well and safe.

 

I want to use Event Structure and Flat Sequence in myRIO RT.vi for my coding. I was trying run a demo code (attaching the same) in myRIO. But it was not working. After searching in the community got know the reason behind it (as Front Panel is executed on the host PC while the Block Diagram itself is executed on the Real-Time system). Event Structure Does Not Capture the "Signaling Value Change" on myRIO - National Instruments (ni.co...

 

Is there any alternate way to code the Event Structure (in myRIO application)? I would like to use OK button after getting particular inputs from users and switch to the next sequence of code.

 

Looking forward to hearing from you all.

 

Regards,

Jay

   

0 Kudos
Message 1 of 3
(1,735 Views)

Hi jay,

 

as the myRIO does not provide a monitor output it cannot display any front panel or buttons on such a front panel!

 

LabVIEW comes with a huge example library and example projects: there are several example projects explaining data transfer between your host computer and the myRIO RT target!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,705 Views)

Yes, the MyRIO does not have a user interface. Buttons and events have no meaning. You can of course create a UI on the PC that communicates with the code running on the MyRIO.

 

But even if you want to run this code under Windows, it is highly flawed. (Have you tried?)

 

  • The message express VI belongs inside the event case
  • Once you fix that, the sequence structure can be deleted. Gratuitous overuse of sequence structures is a hallmark of LabVIEW beginners. Try to avoid them.
  • You don't have an event for the stop button, so pressing it will do nothing
  • You have a timeout case but it is infinite and empty. Why is it there?
  • etc.
0 Kudos
Message 3 of 3
(1,643 Views)