11-12-2010 05:45 AM
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.
11-12-2010 06:52 AM
I'm sorry, I forgot to upload the VI.
11-15-2010 11:32 AM
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?
11-16-2010 11:00 AM
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.
11-17-2010 03:15 PM
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.
11-18-2010 10:41 AM
Hi Hassan,
Yes I changed the time base directly on the scope...
11-19-2010 10:20 AM
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!
11-19-2010 12:54 PM - edited 11-19-2010 01:03 PM
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
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.
11-22-2010 09:35 AM
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!
11-23-2010 07:46 AM
Thank you,
It helps...
Regards,
Ariel.