Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I Can not read data from the TDS 1002 Oscilloscope with GPIB

Hi  folks,
Now I want to use the TDS 1002 oscilloscope to acquire data. My case is about as following:
I can use the oscilloscope to monitor the signal( a peak on the oscilloscope screen). And the peak position
is relatively fixed during one experiment. When I scan the the laser wavelength, the signal intensity/
peak area will change. Now I want to record the peak area and the relevant wavelength. Namely, in the XY
chart, the Y intensity is signal intensity/peak area, the X axix is the relevant wavelength/or the data point numbers
(We use a wavelength to record the wavelength, use RS232 port).
 
Now I have a new PCI GPIB 488.2 card and the TDS 1002 Oscilloscope. I want to display the timely signal appearing
on the oscilloscope on the computer and the relevant XY chart graph and save it to analysis.  I wrote a labview program which
can be used with the TDS 210 Oscillope and can not work with TDS 1002 oscillscope. When debug the program, no error appears.
When check the comunication bwtween the oscilloscope and the computer, no error appears. I still can not read data from the
oscilloscope. For different oscilloscope, the GPIB Read vi and GPIB Write vi is different or not? What is the problem? Please would you help me to figure it out. Thanks. By the way, I want to attach my program(write with labview 7.1), maybe you can help me to settle it.
0 Kudos
Message 1 of 10
(5,200 Views)
 

I tried to look at your programs but your style of programming makes it very hard to see what you are doing. You really need to read the shipping document called LabVIEW Style Guide, clean up your wires, use error in/error out connections for data flow, and get rid of the local variables and sequence structures. At the very least, I hope you have automatice error dialogs turned on because you don't have a single error out wired on any of the GPIB functions.

I doubt that the command set for the 210 is the same as the 1002. You should be able to confirm that by looking at the two different manuals. I do know that there are two different drivers. Why did you not use a driver? Go to https://www.ni.com/en/support/downloads/instrument-drivers.html and download the one for the instrument you want to use and save yourself some time and effort.  

Message 2 of 10
(5,182 Views)
There are existing drivers for the TDS1002 you can download from here http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=047216EC20B66FABE0440003BA7CCD...
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 3 of 10
(5,169 Views)
Thank you very much.
Now I still can not read the data from the TDS 1002 Oscilloscope.
Would you please help me to check this small program?
I just use it to read data from channel 1 of the Oscilloscope.
 
Best wishes,
 
Aruik
0 Kudos
Message 4 of 10
(5,152 Views)

You still haven't done much cleanup and you still are using a sequence structure and not proper wiring with the error clusters.

One thing that I noticed is that you send the *IDN? query but never do a read of that. If you are going to send a query, you have to read the results. You are also always asking for 14 bytes in your read. Are you sure that this number is correct for each and every query? I

And please, use the driver and the proper style of coding.

0 Kudos
Message 5 of 10
(5,148 Views)
This is what I am talking about making your VI easier to read and debug. The way that you use the sequence structure is inappropriate. You need to follow coding standards for the connector pane as well. Notice, too, that I used VISA.
0 Kudos
Message 6 of 10
(5,145 Views)

Thanks for the detailed answer.

1. I tried the program you attached here. The debuging shows the program is OK.

But all the read out values is always zero. It is not right. I don't know what is the reason.

2. I tried the " TKTDS1K2K Read Waveform to Array vi" which can show the oscilloscope screen signals on computer.

But I want to acquire the numerical data points (peak area) from Oscilloscope. How to do it?  By the way, On the screen, the X coordinate is point number (for example, if start point is 1 and stop point is 2500, the X range is 0-2500). How to change it into time scale.

Thank you very much!

Ariuk,

 

0 Kudos
Message 7 of 10
(5,129 Views)

If you noticed, what I posted was just a very cleaned up version of what you had programmed. I didn't say it would work, just be easier to debug. I'm glad you are finally using the driver and getting data. Look again at the driver and run the Getting Started Example. Look at how the x axis is in time. Look at the block diagram and open TKTDS1K2K Example and see how the information from TKTDS1K2K Read Waveform to Array.vi is passed to TKTDS1K2K Scale Waveform Array.vi to create the scaled graph. A nice thing about NI's drivers is that you can look at the diagrams and understand how to do things.

Once you run the scale waveform function, you have your data in a waveform data type. You can then apply any of the analysis functions to the data.

0 Kudos
Message 8 of 10
(5,123 Views)
How to produce a  .exe file ?
Due there are lot of persons to share only one computer.
I don't want other guys to change my program code.
How to use the files to produce an .exe file?
And if so, other guys can copy my file for use.
I don't want other guys to know the original codes.
0 Kudos
Message 9 of 10
(5,027 Views)

You use the application builder to create an exe. It comes standard with the professional version of LabVIEW. For the base and full versions, the app builder is an add-on that you can buy. With all versions, you also have the option of password protecting the block diagram.

Please post a new question when you change subject matters in future.

0 Kudos
Message 10 of 10
(5,022 Views)