LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO/PC serial communication

Solved!
Go to solution

I'm struggling to get my cRIO-9076 to communicate to a PC via the cRIO's built-in serial port.  

 

My goal is to change the state of the DTR pin on the PC and have the cRIO recognize the change.  I believe the code I attached should accomplish that, but it doesn't.  I'm confident the VI that runs on the PC is functioning nominally and the issue lies with the cRIO or the way I am attempting to connect to it.  I also tried running some basic 'write from cRIO, read on PC' examples with no luck.  

 

NI-Serial RT 3.8.0 & NI-VISA 5.8 are installed on the cRIO.  

 

The PC and cRIO are connected via a 9 pin null-modem cable.  

 

Thoughts? 

Andrew
Download All
0 Kudos
Message 1 of 2
(2,388 Views)
Solution
Accepted by topic author arcranda

Since you said you are using a null modem cable to connect the PC with the cRIO, that means they are both wired as DTE devices for their serial ports.  DTR is the outgoing signal line.  What you need to do when you are monitoring that signal is to read the input on the other device which is the DSR line.

Message 2 of 2
(2,381 Views)