01-06-2014 03:06 PM
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.
01-06-2014 08:16 PM
01-07-2014 09:46 AM
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.
01-07-2014 09:53 AM
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.
01-07-2014 09:59 AM
I use LabVIEW for a measure and all equipments works by a LabVIEW
01-07-2014 10:03 AM
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.
01-07-2014 11:44 AM
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.
01-07-2014 11:59 AM
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.
01-07-2014 12:07 PM
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.
01-07-2014 12:21 PM
You keep referring to some program for the 4192 but won't attach it. 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.