Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

HP 4192A NI GPIB-USB

Sehr geehrte Damen und Herren,

ich benutze HP 4192a Impedance Analyzer, der über NI GPIB-USB-HS mit dem Computer verbunden ist. Ich verwende das Standartprogramm zum Messen.
Leider entsteht der Fehler "Error Code 25: Com port in Use", weil ein anderes Gerät bei der Messung ein gleiches SubVIProgramm "Open_Com.vi" und den gleichen Com-Port (Com1) benutzt, denn es ist direkt mit dem Com-Port (RS 232) verbunden.

Wenn ich die Com-PortNummer beim Hauptprogramm (SWEEP) für HP 4192a ändere, entsteht ein neuer Fehler "Error Code 65533: Com port in Use".

Wie kann ich gleichzeitig diese Geräte benutzen?

Vielen Dank im Voraus.

0 Kudos
Message 1 of 12
(7,823 Views)
Maybe there's a problem with the translation but I don't understand your initial reference to the GPIB-USB-HS and then the use of com ports.
0 Kudos
Message 2 of 12
(7,805 Views)

Dear all,

I use HP 4192a Impedance Analyzer which connects with a computer by NI GPIB-USB-HS and an original programm for a measure.
Unfortunately there is an error "Error Code 25: Com Port in Use" because an other equipment uses for a measure a like program "Open_Com.vi" (Close_Com.vi) and a like Com-Port (Com1), this equipment connects direct with a Com-Port (RS 232) by a wire.

If I change the Com-Port-Number in an original program (SWEEP) for HP 4192a, there is a new error "Error Code 65533: Com Port in Use".

How can I use these equpments at the same time?

Thank you very much.

0 Kudos
Message 3 of 12
(7,771 Views)

Neither 25 or 65533 are NI error codes. What programming language are you using?

 

There should be no com port at all associated with the 4192 if you actually are using the GPIB-USB-HS. I would suggest posting your code.

 

0 Kudos
Message 4 of 12
(7,769 Views)

I use LabVIEW for a measure and all equipments works by a LabVIEW

0 Kudos
Message 5 of 12
(7,765 Views)

And why haven't you posted any code? As I said, I don't understand where you are getting these custom error codes and I still don't understand your reference to a com port for the 4192.

0 Kudos
Message 6 of 12
(7,762 Views)

Error appears as I start the LabVIEW by the second program or by the LabVIEW program of HP 4192a as I press a button "SWEEP" (this is a original LabVIEW program of HP). I don't use another program only LabVIEW !

 

I think that I must change somehow a virtual Com port by HP 4192a because the other equpment connects with a computer direct by RS 232 so this equpment can use only a Com port 1.

0 Kudos
Message 7 of 12
(7,748 Views)

I'm sorry but you are still not making any sense. An instrument that uses the GPIB-USB-HS has absolutely nothing to do with a com port, virtual or otherwise. Since you are unwilling to attach your code or explain anything sufficiently, I'm going to leave this thread for someone else to try and understand. Good luck.

0 Kudos
Message 8 of 12
(7,738 Views)

Thank you for your answers.

 

But the original LabVIEW program (SWEEP) for HP 4192 uses sub VI programs "Open_Com.vi" and "Close_Com.vi" where is openning a com port 1.

 

I know that GPIB works by USB but this program for HP 4192 uses a virtual com port.

0 Kudos
Message 9 of 12
(7,732 Views)

You keep referring to some program for the 4192 but won't attach it.Smiley Mad I have no idea where you got this program and you have not provided that vital piece of information. How can anyone determine what is wrong with the program if you don't provide the code? The only code from NI for the 4192 does not use any serial port. Either attach the code or stop asking for help.

0 Kudos
Message 10 of 12
(7,725 Views)