Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Errors when connecting RS232-USB to LabView through NI MAX

Hello,

 

I am currently trying to operate a Lumencor laser array through LabView. As of right now I am using a FDTI RS232-USB adapter. In NI MAX, I am able to identify my device (COM-3, see attached screenshot). However, when trying to communicate with the device over LabView I either cannot obtain a connection, or get an error back (also attached). The port settings I am using on NI MAX are the following:

 

Baud Rate: 9600

Data Bits: 8

Parity: None

Stop Bits: 1

Flow Control: None

 

When attempting to manually communicate with the device using the VISA Test Panel, I am able to write operation *IDN?\n but when I try to Read it returns a timeout error (Hex 0xBFFF0015). I've also attached the VI that is returning the error. Upon initial start up of LabView, I am occasionally able to detect the COM ports for ~2 seconds, but soon have the error returned to me. Could this be an issue with the driver setup, or am I missing a step in the communication between LabView and the instrument?

 

Thank you

Download All
0 Kudos
Message 1 of 4
(3,643 Views)

Here is the VI I am trying to run.

0 Kudos
Message 2 of 4
(3,642 Views)

 Hi wyattcurtis824,

 

You will want to get VISA Test Panels working before attempting to communicate in LabVIEW. You will need to know what kind of commands your device is expecting. The “*IDN?\n” is for SCPII compliant devices so you can only expect that command to work if your device is SCPII compliant. Once you know the command set for your, integrating it into LabVIEW should be a lot easier.

Nolan H.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(3,596 Views)

Can you provide a link to download the Lumencor's instrument driver subVIs? Once you can detect the port in Max, LabVIEW wont care whether the physical connection is USB to serial or real serial. In addition, are you able to communicate with your device in another environment such as Putty?

Certified LabVIEW Architect (CLA), LabVIEW 2015.
0 Kudos
Message 4 of 4
(3,498 Views)