LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am working with LV 6.1 and I`d like to open a VISA session using a RS232-interface.I don`t know how to connect the ressource-name correctly.

I am working with LV 6.1 and I`d like to open a VISA session using a RS232-Interface. I don`t know how to connect the ressource-name correctly. I suppose, I have to open it with ASRL:: as ressource-name but running the VI, I got an error-message saying:
mistake -1073807343 when opening VISA. What is the correct declaration?
0 Kudos
Message 1 of 4
(2,620 Views)
When working with one of the COM ports on a PC, you need the port number in the VISA resource name. For example, COM 1 would be ASRL1::INSTR. The huge negative number error is a VISA open/read/write error.

Don't forget to close your VISA session when you're done.

Rob
0 Kudos
Message 2 of 4
(2,620 Views)
The correct VISA resource name for com port 1 is ASRL1::INSTR and not ASRL::INSTR. However, you shouldn't need to type anything in the resource name control. Click on the little down arrow oon the right of the control and you should get a list of all VISA resouirces found on the system. MAX typically assigns an alias to the com ports so you're likely to see COM1 instead of ASRL1.
Message 3 of 4
(2,620 Views)