LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error in Visa configure serial port -1073807246

Hello,

I'm trying to open a two serial connections in my vi. The first one with a motor controller, and the second with a laser. When i connect the controller to COM1 and the laser to COM2, I allways get the same error when I try to set the connections: "Error -1073807246 occured at Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->getsSerialPort.vi"
Possible reason(s): "VISA : (Hex 0xBFFF0072) The ressource is valid, but VISA cannot currently access it."
However, when I ask "*IDN?" with the visa test panel on MAX before running the vi, everything is fine for both ports.

The tricky thing is that if I change the connections to have the laser on COM1 and the controller on COM2, it's running fine. Nevertheless, I'd like it to be independant of the port, as I want to run it on different computers.

Regards,
Thomas

PS: I'm using LabVIEW 8.2 with VISA 4.1

0 Kudos
Message 1 of 4
(3,260 Views)

Thomas,

Can you post a copy of your code?

0 Kudos
Message 2 of 4
(3,240 Views)
Sure, here you go. The first screeshot shows the main initialisation. The "tempo init"  vi just allows the user to choose which port to use for the devices. Then , the "motor port" subvi's on the upper part are provided by the manufacturer and are using a dll provided by the latter. The "get serial port" subvi on the lower part is shown in the second screenshot. The Z-TEC scope device is not giving any trouble.
Hope this will help, don't hesitate if you need more info.

Cheers,
thomas
Download All
0 Kudos
Message 3 of 4
(3,230 Views)
What does the vi that opens the motor port ( Open Port? ) look like?  It sounds like the motor port is defaulting to a particular COM port.
0 Kudos
Message 4 of 4
(3,209 Views)