From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading digital line and local variable

I am using digital lines in my program to start and stop "Flat Sequence Structures"
like time measurement ( 4 sequence, start and stop time with "Tick Count" )
Is it good behaviour if i use once "Read from Digital Line.vi" and other starts and stops etc. with Local variables?
Or can i just use "Read from Digital Line.vi" many times in my VI? (same line)
0 Kudos
Message 1 of 2
(2,046 Views)
Most experienced LV programmers try to avoid both sequence structures and local (and global) variables. The state machine architecture is often preferred. Look at the examples with LV and search for "State machine" on this site.

I would probably use one read line or read port VI in a loop and pass the data to other, independent loops for processing (the timing) via queues.

Lynn
0 Kudos
Message 2 of 2
(2,036 Views)