LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tektronix tds1000 series oscilloscope easy set up

I was writing a test program in which needed to control the settings of a Tektronix TDS1012B oscilloscope.

 

I had the drivers downloaded from http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=9074 and they were very useful.

 

However to get the 'scope set to exactly what I needed was a bit tedious - setting the vertical range, the timebase, trigger, 1 or 2 channels displayed, maths ......

 

I needed an easier way, so I did some investigation of the vis in the library. It appeared that the scope was being controlled with VISA calls writing strings.

 

Now, this series of 'scopes (and others) has the facility to store the set-up to a USB memory, and when stored has the filename eg TEK0001.SET. (This is something I do already to set-up a number of 'scopes quickly and easily for other tests which aren't (yet) automated.) Usefully this is just a text file and can be opened in Notepad.

 

So, I thought, what if I copy the text of this file and use 'VISA write' to send it to the 'scope?

 

And it worked! The setting that I wanted were there. Note, however, that it can take up to 10 seconds for the scope to actually be ready for the next step, so add a suitable delay to cover this.

 

The procedure then... Set up the scope manually to the way that you want it using its front panel controls. Save the set-up to file. Open the file with Notepad. Copy the text. Paste the text into a string constant. Wire to a VISA write.

 

 

0 Kudos
Message 1 of 3
(4,896 Views)

Great Post Sebster!

 

However, I cant help but feel that it would get more exposure on the community pages. If you have not used "community" before, it is a place NI-staff and customers can go to post example code and helpful hints and tips. This particular post would fit very nicely!

 

http://decibel.ni.com/content/community/zone

 

Regardless of what you do next... thanks for sharing!

Rich Roberts
Senior Marketing Engineer, National Instruments
Connect on LinkedIn: https://www.linkedin.com/in/richard-roberts-4176a27b/
0 Kudos
Message 2 of 3
(4,855 Views)

Hi Rich,

 

Thanks, for the comments.

 

I hadn't used the community before, although I have now just published my first post with this one!

 

The reason I put it in the LabVIEW forum is that this was the first place I searched for 'Tektronix Oscilloscope' but couldn't find what I needed. And I thought "if I have looked here, someone else might", and now they may find the answer they are looking for  Smiley Very Happy

 

 

Sebster.

0 Kudos
Message 3 of 3
(4,849 Views)