Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing cursor positions on Tek TDS3052 oscilloscope

Hello,

I'm trying to program a LabVIEW application using a Tektronix TDS3052 digital oscilloscope that I access via GPIB.

I have a got most of it running using the tkds30xx driver library that came with LabVIEW. However, I am missing one function: I need to query the user cursor positions set by the user on the scope. What I'm looking for is pretty much what the "TekTDS read cursors.vi" from the vi lib for the older Tek scopes does. I didn't find its equivalent in the TDS30xx lib, and unfortunately these routines cannot be intermixed.

Does someone know whether that function exists at all and, if yes, how to access it (where is it and what its name?)?

Thanks in advance for your help!

Best regards
K
ristian Laß
0 Kudos
Message 1 of 4
(4,351 Views)
Hello,

For horizontal cursors try:

CURS:HBA?

The instrument should give a response in this format:

Horizontal Pos1;Pos2;Delta;Selected Cursor;Units

For Vertical try these:

CURS:VBA:HDELT?
Returns horizontal difference
CURS:VBA:HPOS? x = 1 or 2
Returns value of vertical bar ticks
CURS:VBA:UNITS?
Return measurement units
CURS:VBA:VDELTA?
Returns value difference between the bars ticks

If you are using the IVI driver, use the write to instrument and read from instrument VIs. If you are using the LabVIEW native one, VISA write and read should do the trick. Hope this helps.
Message 2 of 4
(4,351 Views)
Hello,

Thanks a lot for your help! I'll give it a try.

Best regards
Kristian Laß
0 Kudos
Message 3 of 4
(4,351 Views)
Hello,

I succeeded using these GPIB commands. In addition, I tried to send the command "CURS:VBA?" and got a string containing almost all vertical cursor-related data in the following form:

"Unit";Vert. Pos 1;Vert. Pos 2;Horiz. Delta; Vert. Delta;Selected Cursor; Horiz. Po. of Act. Curs; Horiz Delta of Cursors

Just in case somebody might be interested in it.

Thanks again for your help!

Best regards
Kristian Laß
0 Kudos
Message 4 of 4
(4,351 Views)