06-12-2017 09:36 PM
Getting a 113 error while trying to read the FFT from a Tektronix TDS2014B. The VI I'm using comes from the LabVIEW 2016 Drivers page linked below. The answers I've been able to find say that the commands being sent to the scope are wrong, however, I have not changed anything in the VIs. The scope responds to most of the VI, autosets and then it goes back to viewing it as a waveform on the scope while giving me an error in LabVIEW. Can someone tell me what the right commands might be so that I can compare them to those given in the VI?
Solved! Go to Solution.
06-12-2017 11:55 PM
06-13-2017 05:55 AM
TDS2000 Series Programming Manual
06-13-2017 07:34 PM
Thanks for the programming manual. I thought it resolved the issue but unfortunately plugging the pdf into my VI didn't work (kidding). But the problem is that the command I'm giving it is "FFT:SOURCE CH1" which it says is not an identified command. This is consistent with the programming manual, however I can't seem to find any solutions to it. I'm using the VI called "Tektronix TDS 200 1000 2000 Series Acquire FFT Waveform.vi" from the following link. I apologize for claiming this was resolved when it was not.
06-13-2017 08:34 PM
06-14-2017 11:51 AM
Ok this looks like what the LabVIEW VI is doing, except I'm not sure if it was ever specifically "DEFINEd" anywhere. Were you able to look at the drivers and see the VI?
06-14-2017 01:08 PM
This is the command that is giving the error:
FFT:SOURCE CH1;:FFT:WIN HANNING;:SELECT:FFT ON;
There error says that FFT: is not defined. The following command is sent in a VI immediately after
:DATA:SOURCE MATH;:DAT:ENC RPB;WID 2; :WFMPRE:XZE?;XIN?;YZE?;YMU?;YOFF?;
06-14-2017 08:14 PM
06-15-2017 11:43 AM
That would seem like a different driver. This is from the "Plug and Play" link when downloading the TDS2014B driver on the Tektronix 2014B Driver Page. The name of the VI is "Tektronix TDS 200 1000 2000 Series.lvlib:Configure FFT.vi"
06-15-2017 07:40 PM
Yes - definitely a different driver, but presumably the right one. Does prefixing the FFT command with 'MATH:' work? I'm not clear on if you'd need to put it in each statement or just the first - you can skip repeated header sections if subsequent commands are from the same header, so maybe a combined string like
MATH:FFT:SOURCE CH<n>; WINDOW HANNING; :SELECT:FFT ON;
would work. However, I'm a little doubtful, since I also don't see anything in the programming manual to suggest that would be valid. Looking at the examples under MATH:DEFINE, I'd guess this would be a better bet...
MATH:DEFINE "FFT (CH<n>, HANning)"; :SELECT:MATH ON;