LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i realize the time control in lv?

  in my lv , i want to use the time that the vi has run  to control the output. 
 
  for example,  a series num inputs (  t1 t2 .....stands for the time valu) ,and   o1,o2...stands for the valu i want to output.
  during the time intaval   0---t1(seconds),    the output valu  is   o1
                                         t1---t2                    the output valu  is   o2        
                                         t2---t3                    the output valu  is   o3
                                           ...............
 
 so how can i fulfill this func?     thanks!!!!
0 Kudos
Message 1 of 2
(2,227 Views)
Hello staresz,

the easiest would be:
1) write o1 to the output
2) wait for t1
3) go to 1, until no more t/o pairs
4) reset output, if needed

Step 3 can be done with an auto-indexing for-loop, step 2 can be made to check for errors or user break...


Best regards,
GerdW


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