LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Global Data updation

Dear ALL,

               I am using LabVIEW Version 9.0. My Code has 3 while loops running parallely, consider,

 

  1. While loop1: Updating a global data from the NI CAN Driver.
  2. While loop2: Handling the event structure by the user.
  3. While loop3: Depending upon the event the appropriate screen is chosen and the global data is displayed to the user interface.

 

 

Now the issue is, when i sense that my global data is not recieved for few seconds, i need to initialise my screen with the help of global data which is used in While loop1 and display the same in While loop3 (i.e. user interface window).

 

 

Thanks in advance.

Aravind Kumar V.

0 Kudos
Message 1 of 2
(2,319 Views)

I would use a Queue or an User Event to send the data from the CAN loop to your other loops.  Then you can easily handle a timeout case.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,283 Views)