LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programming Tektronix mixed signal oscilloscope

Solved!
Go to solution

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

 

 

21081i3C94DD53FBA63F9DHi,

 

   

 Email id: kumarganesh20@gmail.com

0 Kudos
Message 1 of 3
(3,307 Views)
Solution
Accepted by topic author Ganesh20

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

 

0 Kudos
Message 2 of 3
(3,300 Views)

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.

Message 3 of 3
(3,293 Views)