LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compactrio RS232 question

I have Compactrio 9074.  How do I setup the rs232 port setting.  I try to run"LabVIEW 2009\vi.lib\Instr\_visa.llb\VISA Configure Serial Port (Instr).vi" to setup the port I get a error. I would like to communicate over RS23 with the compactRIO.

 

Port name = RIO0::INSTR

 

error code  =  -1073807331

 

Error desciption

Error -1073807331 occurred at Property Node (arg 2) in VISA Configure Serial Port (Instr).vi

 

Possible reason(s):

 

VISA:  (Hex 0xBFFF001D) The specified attribute is not defined or supported by the referenced resource.

 

Sam
0 Kudos
Message 1 of 5
(5,180 Views)

Hi,

 

Could you please be a bit more specific on what have you accomplished so far? Have you written some VIs for the serial communication? Basically you will need to build up an interface to send messages between PC and cRIO. You need to develop VIs for both PC and cRIO to get your communication going on. Search the LabVIEW examples for serial communication to get started.

 

-Matti

0 Kudos
Message 2 of 5
(5,148 Views)

I have written LabVIEW for serial communication.  I have the Serial software that communicates between the instrument and computer.  I want to run the RS232 communication software on the CompactRIO.  I got everything working on the CompactRIO but the RS232 port.  The RS232 software is fine because I can run it on a computer talking to the instrument. 

 

LabVIEW has a RS232 configure serial Port.  If I call out the wrong port, I should and get an error.  If I call out the correct port, I should not get an error even if the instrument is not connected.  All I'm doing is trying to initialize the port configuration. 

 

On the compactRIO, I have NI-RIO 3.2.0(minimal) installed.  I'm trying to initialize the baud rate before I talk to the instrument.  Attached is the init vi I'm using.

 

Thanks for the response

 

Sam
0 Kudos
Message 3 of 5
(5,114 Views)

Hi,

 

Have you checked out what components are installed with the minimal setup of NI-RIO 3.2.0? You need NI-VISA and NI-Serial RT to work with serial communication.

About the attached VI, it seems that you have forgot to wire VISA resource name out. That will definitely lead to some issues later on in your software.

 

Hope this helps!

 

-Matti

0 Kudos
Message 4 of 5
(5,105 Views)

Thanks Matti,

 

I had to install NI-Serial RT.  The minium only installs NI-VISA.  Once I install NI-Serial RT I have a new port to select and it works.  The new port is ASR1::INSTR.

 

Thanks for the help.  This is the first time I have use NI Discussion Forum. 

 

Sam

Sam
0 Kudos
Message 5 of 5
(5,097 Views)