Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

setting measurement interval

I am using the VISA functions to connect to an RS-232 serial port and need to set the measurement interval (ie. 15, 30, 45 minutes...), can anyone suggets the VI's for this or point me in the direction of some examples?

Thanks,
Sarah
0 Kudos
Message 1 of 2
(2,790 Views)
You've got several timing functions on the Time & Dialog palette. The functions I would avoid are the wait and the Time Delay. These insert a fixed delay and cannot be interupted. Better to poll how much time has elapsed in each iteration of a while loop. The Get Date Time in Seconds, Tick count, or Elapsed Time functions can all be used. For example, with the Elapsed Time function, you set a target time and everytime that time is reached, the output Time Has Elapsed, goes true.
0 Kudos
Message 2 of 2
(2,788 Views)