LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cluster button pressed / 1553 communication

Solved!
Go to solution

No you posted pictures of your code. I can not fix pictures.

Tim
GHSP
0 Kudos
Message 11 of 17
(917 Views)

Here is my VI thats written in labview 7. There are additional sub VI thats not attached so the VI might show an error.

0 Kudos
Message 12 of 17
(908 Views)

The inner small while loops is what im trying to update very second. When a button is pressed it sends that Individual string then jump back in to updating every second.

0 Kudos
Message 13 of 17
(906 Views)

Why don't you use an event structure with the timeout event set to 1 second?Then, instead of the separate case statements, each would be a separate event.

 

You can also eliminate all of the writes to the value property node.

 

edit - your while loop iterates every msec - not every second as you stated.

0 Kudos
Message 14 of 17
(901 Views)

So do i put the event structure inside of bigger while loop and keep the smaller while loop ? Sorry trying to figure out how to code what your sayin. I understand about putting the cluster buttons inside of its own event case.

0 Kudos
Message 15 of 17
(894 Views)
Solution
Accepted by topic author *E*

An event structure goes inside a single while loop. There is no 'smaller' while loop. The code that you want to execute every second goes into the timeout event.

Message 16 of 17
(890 Views)

Thanks for your help that seem to work correctly!

0 Kudos
Message 17 of 17
(881 Views)