LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay between two operations within the same visa write buffer

Solved!
Go to solution
I had told you to place the delay after the write in my earlier post. You also need to convert the current input and the dmm reading to numerics if you want to plot them. Passing them out of the for loop will create two separate arrays that you can bundle. Or, build each array inside the loop and plot as data is acquired.
Message 11 of 13
(772 Views)

Hi again,

 

Thank you guys for all the help. I am still learning LABVIEW and so need a bit more of help. I need to measure the time of execution of the visa write command, so that I can get the time and plot it with the measured current.

It should be like:

CURR:LEV 0, time starts at 0

CURR:LEV 1, some 1.2 seconds

CURR:LEV 2, 2.4 seconds

 

something like this, the time corresponding to when the signal is applied.

 

Thanks once again and sorry for so many questions.

0 Kudos
Message 12 of 13
(729 Views)
Solution
Accepted by Sitank

Hi Sitank,

 

you can get the system time, when you put the command into the VISA write buffer - because that's all the VISAWrite function does!

 

You cannot measure the time VISA needs to send out the command (you can estimate that from the settings of your communication bus) and you cannot measure the time your device needs to execute the command (you can estimate this from the specifications given in the device manual)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 13 of 13
(724 Views)