Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout error in Wait for Operation Complete VI for TEKDPO4054 scope driver

Hi,
 
I keep getting a timeout error (-1073807339) when I run the "wait for operation complete" sub-VI that comes with the tektronix DPO4000 series oscilloscope driver. I'm using a DPO4054 scope. The error out source is the VISA Read STB command, but I can't figure out what's wrong. Has anyone else encountered this error? Please help!
 
Thanks for your time!
 
I've attached the sub-VI where I'm having this problem.
0 Kudos
Message 1 of 6
(5,162 Views)
In which context do you try to use that vi ? "Wait for operation complete" just polls the STB until the OPC bit is set or the time out is reached. If there is no command pending on the scope , which will set the OPC bit if it's complete, it makes no sense to use "wait for operation complete" . 
In many cases the driver uses  "wait for operation complete" internally to make sure to return a valid result. When running "wait for operation complete" after such a driver function, the timeout is expected behaviour.
Message 2 of 6
(5,157 Views)
Hi, thanks for your reply. Ultimately, I'm writing a program to configure the scope to search for a single pulse waveform and then capture that waveform data into labVIEW. After using the appropriate VIs to configure the channel, timebase, trigger, etc., I was using the fetch single waveform VI in a while loop to search for the pulse. I noticed that it would sometimes miss the pulse because when it loops the scope oscillates from PrTrig to Trig? mode. I think it's missing the pulse when it's in PrTrig mode. Now I'm trying to use the Read Single Waveform VI not inside a loop. When I do this, the code gets hung up and times out in the Read Single Waveform VI. I've been toiling to figure out how to fix this but have been unsuccessful so far. I would greatly appreciate any help you could give! Thanks! I've attached my code for more info.
0 Kudos
Message 3 of 6
(5,130 Views)

Hi,

Have you tried using the Edge Triggered Acquisition Waveform Example that comes with driver?

You can try to make your changes to that example and see if you see the same results.

You might need to create a constant to enable channel 2, timeout, and close.vi. 

 

0 Kudos
Message 4 of 6
(5,117 Views)
I have tried to use that example. When I run it and then use a sig gen to send in a burst pulse Labview doesn't see it. Then I get this error:
 
Error -1073807339 occurred at VISA Read STB in tkdpo4k Wait for Operation Complete.vi->tkdpo4k Read (Single Waveform).vi->tkdpo4k Edge Triggered Acquisition Waveform Example.vi
 
Possible reason(s):
VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.
 
Any help would be greatly appreciated!
 
Thanks.
0 Kudos
Message 5 of 6
(5,109 Views)

Hi,

I've attached two test VIs that you can try to see if they help.

0 Kudos
Message 6 of 6
(5,066 Views)