Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

no ASRL functionality for DMM4050

When I plug in my Tektronix DMM4050 I see that is gets assigned a com port in Device Manager but no ASRL ID.

It doesn't show up under USB Test and Measurement devices either.

I use Tekvisa and also have NI tools installed. All my other equipment works fine, the main difference is that the working instruments use USB cables and the DMM4050 has a db9 to usb cable.

What it looks like is ASRL is somehow disabled.

Does anyone have any ideas?

0 Kudos
Message 1 of 6
(4,671 Views)

Do you have both NI-VISA and Tek-VISA installed?

 

http://digital.ni.com/public.nsf/allkb/E3B8CA02F49572A386256C1100007424

0 Kudos
Message 2 of 6
(4,661 Views)

Yes.

What's interesting is if I do a "visacmd.exe" it shows up as ASRL6::INSTR,

which makes sense since it's on com6.

But if I try a command like:

visacmd.exe /a=ASRL6::INSTR /c=*IDN?

it times out.

.

I've got the DMM set to RS232 mode, Baud = 9600, 8 Databits, No Parity, 2 stop bits, flow control= none.

So my com settings on my PC match what's in the DMM.

I've tried a few different commands but they all time out.

0 Kudos
Message 3 of 6
(4,658 Views)
You are obviously not sending a termination character. Why are you using TekVISA? Are you using any NI software or hardware? Installing NI-VISA doors not make sense if you're not and installing TekVISA does not make sense of you are.
0 Kudos
Message 4 of 6
(4,655 Views)

Agreed, I don't need the NI software at all and will remove it.

I'm using system calls to visacmd.exe from a Perl script.

The reason I'm using Perl is because there's a lot of parsing to do and I'm also able to chart my results into an excel spreadsheet using the Perl writeexcel module.

Can you please elaborate on termination character?

With my power supply this works fine:

visacmd.exe /a=USB0::0x05E6::0x2220::9010105::INSTR /c=*IDN?

 

0 Kudos
Message 5 of 6
(4,645 Views)
A termination character is what the manual says you must append to each command you send over a serial connection. It might be a cr, lf, or both. What you do with a usbtmc device is not relevant. That class handles command termination differently since it basically emulates gpib.

Since you are not using any NI hardware or software, you should find another place for your questions.
0 Kudos
Message 6 of 6
(4,642 Views)