08-10-2010 11:54 PM - edited 08-10-2010 11:57 PM
Hi,
I am programming using Labview to control tektronix 2014 mixed signal oscilloscope
Initially i tried to control the vertical position and vertical scale of waveform.
It is working but it takes few seconds(5-8sec) to exectue it.
I tried to figure it out. However i am unable to do that, could you please help me out what i need to do to reduce the delay time
Below is the block diagram of my vi
Hi,
Email id: kumarganesh20@gmail.com
Solved! Go to Solution.
08-11-2010 12:10 AM
Try putting both writes into the same while loop, wiring them to execute in sequence.
Also, you should add a wait inside the loop (maybe 100 ms) to reduce the update rate of the VISA calls.
A stop button would be nice, too.
The way you have wired things up, both loops try to write their commands as fast as possible to the instrument at the same time.
This most likely confuses the scope.
You are also hogging your processor by not having a wait in there.
Also, you are closing the VISA reference in two locations, not that you would ever get there since your loops are infinite...
Klaus
08-11-2010 12:36 AM - edited 08-11-2010 12:37 AM
Actually, putting either in a plain loop is wrong. You want an event structure so that the command is sent only when there is a value change.
I would recomend you use a driver.
If you send one of the commands once and it takes x amount seconds, that is just how long the scope takes to process it and perform the action. Nothing you can do about it.
p.s. Putting your email in a public forum will just get you spam. All questions are answered here - not via email.