Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure the communicating time between LabView send out commands and response of instrument

I send a command to a function generator(SRS DS345)using "GPIB Write" via GPIB,to change the frequency of output.And I would like to to measure the time between
initially send out commands and actual response of instrument(frequency change).I have designed a program which contains three sequences,the 2nd one contains "GPIB Write",and the 1st and the 3rd contain "Tick count",then subtract the latter from first one.I think this is not the time that I want...
What should I do ?
Thanks!!
0 Kudos
Message 1 of 4
(3,733 Views)
If want a more precise and NIST-traceable method of timing a portion of your LabVIEW code. The below VI uses two counters on an E-Series or NI-TIO based device to complete this task.

Download the attached VI and replace the for loop (EVENT TO TIME) with your VI or code.

This example uses the maximum timebase of your device as the source for "simple event counting". Due to counter roll-over, two counters are used in order to be able to time events of short or very long duration. See VI Documentation for more information.
0 Kudos
Message 2 of 4
(3,733 Views)
I am using LabView 6i,is there any older version example??
Thanks!!
0 Kudos
Message 3 of 4
(3,733 Views)
Hope it helps. You need a E-Series (DAQ-STC) or NI-TIO based DAQ board for the eg.
0 Kudos
Message 4 of 4
(3,733 Views)