Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Tektronix scope doesn't wait for the trigger

Hello,

 

I use the Tektronix oscilloscope 2024B.

I uploaded my VI, and you can see how do I use LabVIEW the get a wave with my scope.

The problem is that when I put 100ms in the timebase the scope doesn't wait for the trigger to occur, it just reads immediately

what on the scope's screen (even if there's nothing). And when I enter 50ms in the timebase is waits. I only change the timebase... 

I really need that the scope will wait for the trigger in 100ms on the timebase... \

 

Thanks,

Ariel.

0 Kudos
Message 1 of 10
(6,325 Views)
0 Kudos
Message 2 of 10
(6,319 Views)

Hi  ariels\,

 

Have you tried to toggle the timebase directly on the scope to see if that works, taking LabVIEW out of the picture for the moment?

Regards,

Hassan Atassi
Senior Group Manager, Digital Support
0 Kudos
Message 3 of 10
(6,276 Views)

Hi,

 

I tried this:

I entered 50ms in the timebase, the scope was waiting and when I changed the timebase directly from the scope to 100ms it triggerd...

 

Ariel.

0 Kudos
Message 4 of 10
(6,257 Views)

Hi Arielsl\

 

Are you changing the time base directly on the scope, or in LabVIEW.  If you are using LabVIEW, try to change the timebase directly on the scope. Lets try to isolate the problem to see if it is with LabVIEW or the scope. 

Regards,

Hassan Atassi
Senior Group Manager, Digital Support
0 Kudos
Message 5 of 10
(6,237 Views)

Hi Hassan,

 

Yes I changed the time base directly on the scope...

0 Kudos
Message 6 of 10
(6,218 Views)

Hi arielsl\

 

Based on what you are saying, it seems that the issue is with the Tektronix scope and not with LabVIEW as the problem is occurring even when you change the timebase directly on the scope.  I would try contacting Tektronix for assistance.  If you have any more questions feel free to post back!

Regards,

Hassan Atassi
Senior Group Manager, Digital Support
0 Kudos
Message 7 of 10
(6,193 Views)

Thanks for your answer.

But It happens to me with another scope to...

 

Maybe I know what is the problem...

In the "Wait For Trigger.VI" in "Read (Single Waveform).VI" the vi send ":TRIG:STATE?" to the instrument and then it reads.

When It reads something else then "ready", the vi finishes and LabVIEW read the waveform that on the scope's screen (even if there's nothing).

While I change to 100ms from the scope, the scope is "Armed", and that's what  "Wait For Trigger.VI" reads, thus it's finishes and  the read vi read the waveform.

To overcome this I changed  the Wait For Trigger.vi that it continues running until it gets something else then "Armed" and "Ready".

But then I get this error:

 

Error -1074000000 occurred at Tektronix TDS 200 1000 2000 Series.lvlib:Error Query.vi
Possible reason(s):
Instrument reports:
410,"Query INTERRUPTED; "
0,"No events to report - queue empty"
Complete call chain:
     Tektronix TDS 200 1000 2000 Series.lvlib:Error Query.vi
     Tektronix TDS 200 1000 2000 Series.lvlib:Read (Single Waveform).vi
     Tektronix TDS 200 1000 2000 Series Edge Triggered Acquisition.vi

 

Error -1074000000 occurred at Tektronix TDS 200 1000 2000 Series.lvlib:Error Query.vi
Possible reason(s):
Instrument reports:410,"Query INTERRUPTED; "0,"No events to report - queue empty"


Complete call chain:     Tektronix TDS 200 1000 2000 Series.lvlib:Error Query.vi     Tektronix TDS 200 1000 2000 Series.lvlib:Read (Single Waveform).vi     Tektronix TDS 200 1000 2000 Series Edge Triggered Acquisition.vi

 

I have to inform you that what I did works, I don't know why I get this error.

How can I cancel that error?

 

Ariel.

0 Kudos
Message 8 of 10
(6,181 Views)

Hi arielsl\,

 

Take a look at this Knowledge Base article on how you can ignore an error: http://digital.ni.com/public.nsf/allkb/BF72229C53F7633386256EDD0069331B?OpenDocument.  I hope this solves the issue!

 

 

Regards,

Hassan Atassi
Senior Group Manager, Digital Support
0 Kudos
Message 9 of 10
(6,133 Views)

Thank you,

It helps...

 

Regards,

Ariel.

0 Kudos
Message 10 of 10
(6,108 Views)