Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

reading the data from TDS210

Hi there,
I am running a program which controls a motor and a TDS210 sequentially. This program allows me to set up the oscilloscope with my desired parameters, then controlls a stepper motor which rotates a speaker. While the motor is running a beam pattern function is being sent to the oscilloscope. CH1 is my x axis and CH2 is my Y axis. My question is, how do I read the xy plot from the TDS 210 to my computer. Attatched you will find the program which runs the motor and the sub vi that goes along with it. That might be able to clear things up on what I am trying to do. Any help would greatly be appreciated.
0 Kudos
Message 1 of 22
(5,106 Views)
Hello Rcarr,
 
It seems like you attached the shorcuts to the VI's rather than the VI's themselves.
 
Before we get to that, are you using the LabVIEW plug and play driver to do your acquisition from the scope?
Regards,
Berk
Instrument Drivers / IVI
0 Kudos
Message 2 of 22
(5,103 Views)
It would be nice if you attached the actual VIs and not shorcuts to them.Smiley Wink
0 Kudos
Message 3 of 22
(5,100 Views)
Sorry about that:(. Here are the actual VI's, and I am using the tktds2xx driver.
0 Kudos
Message 4 of 22
(5,064 Views)
Hi Rcarr,
 
You also need to post the subVI's used in these VI's.  More specifically "communicationTKDS12(SubVI).vi" is missing.
 
 
Regards,
Berk
Instrument Drivers / IVI
0 Kudos
Message 5 of 22
(5,059 Views)
0 Kudos
Message 6 of 22
(5,055 Views)
Allright thank you!
 
Now, I don't see any data being read from the instrument, it seems like you are starting the acquisition but you aren't reading the waveforms.
I am a little unclear on how you have your x axis is on CH1 and y axis is on the CH2 of the scope, but I will assume that you properly connected appropriate signals to the input terminals of the scope.
 
You would read the data in the frame after the one with the timed loop correct?
 
To get the data of each channel you need to use VI's under the "Data" palette, more specifically for your task probably "Read Waveform to Array" vi is the most useful.
Using that vi you can get data from each channel and then build your XY graph using the data from the arrays.
 
I hope it helps, let us know if you have more questions.
 


Message Edited by BerkO on 04-18-2008 11:28 AM
Regards,
Berk
Instrument Drivers / IVI
0 Kudos
Message 7 of 22
(5,052 Views)
Yes I would like to read the data in the frame after the timed loop. Also channel one is the voltage sent from a potentiometer which is attatched to the motor and channel 2 is the beam pattern which is being picked up. Last but not least I am using the XY display and not the XT display of the function. I hope that helps. I will try what you have suggested.
0 Kudos
Message 8 of 22
(5,046 Views)
I am having a little trouble using the "read waveform to array". The plot that shows up on the front pannel is different from what is displayed on the oscilloscope. The oscilloscope displays a nice hill shaped curve, while the plot on the front panel of my program displays a jumbled mess. Is there a way to neaten that up. Thanks again for the help.

Message Edited by rcarr on 04-18-2008 02:25 PM
0 Kudos
Message 9 of 22
(5,030 Views)
Can you post a screenshot of the read code and the waveform plotting code please?
 
You need to join the data returned from the scope since each array is describing only one axis.  Therefore your XY graph most probably won't look like what the scope is showing you.  Cause the scope gets each channel and assumes those are amplitude values (Y Axis) and graphs them with it's own X steps.
Regards,
Berk
Instrument Drivers / IVI
Message 10 of 22
(5,026 Views)