LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1 occurred at Scan From String (arg 1) in TKTDS1K2K Scale Waveform Array.vi->TKTDS1K2K Example.vi

Trying to communicate with TDS 2012 over GPIB port. I've downloaded the driver for 1K/2K series and I am getting error 1...any suggestions???
0 Kudos
Message 1 of 6
(5,004 Views)
Check to see if you've actually acquired a waveform. If Read Waveform to Array doesn't return a waveform with preamble data, the input to scan from string will be empty and you'll get the error.
0 Kudos
Message 2 of 6
(5,004 Views)

Hi,

I have just read the reply, but I get the waveform with preamble data, but still get the same error.  When arg 1 is written, what does it mean ?

Thankyou very much

 

Best regards

Daniel

 

0 Kudos
Message 3 of 6
(4,844 Views)
You should be able to single step through this VI with execution highlighting to see which Scan from String returns the error. At this point, you can compare the preamble string passed into this VI vs. the Match Pattern and Scan from String combination returning the error.
 
Another alternative, is to use a driver that we have newly developed for this series.  The Tektronix 100 200 2000 Series project-style driver is available in LabVIEW 8.0 and later and includes a redesigned API consistent with instrument driver templates and latest certification guidelines.  It also includes several more examples than the older driver:
 
0 Kudos
Message 4 of 6
(4,832 Views)
Hi!

Like the previous posters, it sounds like you're having an issue with scanning the preamble data.  When the default preamble data is parsed, it throws "Scan From String (arg 1) in TKTDS1K2K Scale Waveform Array.vi."  This happens because the default preamble data is invalid (it lacks one of the tokens).  Without seeing your instrument's returned preamble, it's difficult to guess at the problem.  However, the preamble should contain these 6 tokens:

:DATA:START
:WFMP:XZE
:WFMP:XIN
:WFMP:YZE
:WFMP:YMU
:WFMP:YOF

If any of these are missing, you'll see the error mentioned above.

If you're using the driver for the first time, I'd suggest starting with the "Getting Started" VI.  I tested this with a TDS 2002 over GPIB and both example VIs worked fine.

If you keep running into this problem, please post some code or screenshots where this is occuring.  This would help much in diagnosing the problem.

Thanks!
0 Kudos
Message 5 of 6
(4,823 Views)

hello, I know this is a really old post but I am currently using a TDS2012 scope and am having am getting the same error.  It is happening at the WFMP:XIN command.  I tried using hyperterminal to figure out the situation, however, the command won't let me change the value.  I am trying to gather a waform and then eventually take the FFT of the data.  I need to be able to change the sample rate.  Any help on this would be greatly appreciated.  I am using RS-232

 

 

Download All
0 Kudos
Message 6 of 6
(4,293 Views)