Instrument Control (GPIB, Serial, VISA, IVI)

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 6 条)
5,286 次查看
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.
2 条消息(共 6 条)
5,281 次查看
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 项奖励
3 条消息(共 6 条)
5,254 次查看

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 项奖励
4 条消息(共 6 条)
5,241 次查看
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 项奖励
5 条消息(共 6 条)
5,233 次查看

Hi,

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

0 项奖励
6 条消息(共 6 条)
5,190 次查看