Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find out VISA-address of HMP4040 which does not get listed anywhere?

Hello everyone,

you guys are my last hope. I am studying Electrical Engineering and I have a project in which I have to automate a test sequence with some devices.

My idea is to write a Python script that communicates with the Devices with SCPI commands

 

I have 2 Keysight devices and one Power Supply from R&S "HMP4040". There are no problems with the Keysight devices and I can communicate freely with them

 

Only the HMP4040 shows trouble:

The power supply does not get shown in NI MAX or Keysight connection expert, which I need to find out the VISA address.

- Installed the VISA libraries from National Instruments, R&S and Keysight

- Installed the HMP4040 driver for the HO730 board (Device Manager in Attachements/ it shows the device in "USB-Controller")

 

I have read that I have to configure my settings so I can communicate via VISA but I cannot find any sources for help

The HMexplorer which has a SCPI-Terminal CAN communicate with it which is quite confusing for me. If I query *IDN? it does not show me a VISA-address, instead some information about the device (see attached)

 

Also have to add that I use a VM (VMWare Workstation Windows10 64Bit), no troubles with other devices, only the HMP4040

 

I hope you guys can help me out here!

Thanks in advance!

 

Download All
0 Kudos
Message 1 of 5
(3,114 Views)

Mixing VISA libraries can often cause issues.  I would uninstall the Keysight and R&S VISA.

 

You may also need to enable Tulip support.  In NI MAX, go to My System->Software in the tree and click on NI-VISA.  In the main window, click the "VISA Options" tab.  There is another tree in the window, in which you will find "Passports".  You will now see a list of check boxes.  Enable "NiVisaTulip.dll".


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(3,109 Views)

Thanks for the message.

First I deinstalled other libraries as suggested and after activating Tulip and restarting the device and NI MAX it still didn't show up

0 Kudos
Message 3 of 5
(3,078 Views)

As you can see from the device manager screenshot the Hameg device is  showing as com port 3. Try going in to NI Max and select.

 

Right mouse click on Device and Interface and selecting create new

Then select a COM port device and fill it in as com port 3. 

 

See what happens. You should see it enumerated in the tree and then you should be able to send commands to it like "*idn?"

As its a com port then you need to make sure any commands you send are terminated with a linefeed (it could be that it's carriage return or even cr and lf - need to check manual) but first try just Lf

Then also when reading you need to enable read until term char. The default term character in Visa is linefeed (lf)

 

see my screenshots. I dont have any serial devcies so can't go to the next step.

0 Kudos
Message 4 of 5
(3,071 Views)

So if this all works from python in the viOpen command you use the visa resource: "ASRL3::INSTR"

But remember the bit about terminating strings sent with Linefeed and reading back when linefeed detected otherwise you will get a timeout error

0 Kudos
Message 5 of 5
(3,068 Views)