Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't get ch2 to work with tktds1k2k for Tek TDS 1002.

Why won't the tktds1k2k "Getting Started vi" display ch2? I modified it so that the Vertical.vi gets the same channel source as the "Read wvfrm to array vi". I am using a tds1002. When I set the source to ch2, the Read waveform to array vi times out. It works fine with source set to ch 1. I am using LabView 6.1 and GPIB-USB-B.
0 Kudos
Message 1 of 4
(3,740 Views)
Hey Ed,

Looking at the code for the Getting Started vi it doesn't look like you should change any code for the example to work for channel 2. All you have to do is change the control on the front panel when you open the example from Channel 1 to Channel 2. The Source should look like the screen shot.

If the application doesn't work after making this change then I suggest you redownload the instrument driver incase some of the source files were modified or damaged.

http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/20152aede3a9e06786256bfe005ff2df?OpenDocument

I hope this helps out.

JoshuaP
National Instruments
0 Kudos
Message 2 of 4
(3,740 Views)
Thank you for the quick reply. Changing the Source control to Ch 2 on the Getting Started vi does not work. I believe the reason is easily seen by looking at the block diagram of the tktds1k2k Example vi. It is seen that the source input goes to the Config Edge Trig vi and the Rd wvfrm to array vi. Note that it does not go to the Vertical vi, so this vi only sets Ch 1 by default. I want the trigger selection to be separate from the channel selection. So I created another control for both the vertical vi and the rd wvfrm to array vi, and the original source control now only goes to the config edge trig vi. In order to do this I opened the Vertical vi and wired its source control to an unused terminal. Thus in the example vi the same control goes t
o this new input terminal on the vertical vi and to the source input on the rd wvfrm to array vi. It seems this should let me display either channel. But it doesn�t work when I try to display ch 2. I hope I am missing something easy.
0 Kudos
Message 3 of 4
(3,740 Views)
Hey Ed,

Looking through the code I see what you mean. I would suggest running NI-SPY in the back ground to see if you can tell what is going on. Perhaps there is another location that the code is defaulted to Ch1 or its possible the data is being parsed incorrectly after being read. Regardless, NI-SPY should be able to show you what is being transmitted in the back ground.

http://zone.ni.com/devzone/conceptd.nsf/webmain/C31BC5FB34DBC0EF86256ADF007B8A47?opendocument

http://www.ni.com/support/gpib/max/nispy.htm

I hope this helps out.

JoshuaP
National Instruments
0 Kudos
Message 4 of 4
(3,740 Views)