Industrial Communications

cancel
Showing results for 
Search instead for 
Did you mean: 

LOOPBACK TEST for RS232

Hi everyone

 

I try to connect a hardware by using the Rs232 port on CompactRIO 9025. But I want to be sure that the communication is working correctly. And then I will examine the codes that I wrote for the hardware.

 

For this I connect to the CompactRIO with Ethernet cable. And I connect a RS232 cable to the port on cRIO. I shorted 2-3 pins of RS232 cable and then I open VISA Test Panel in MAX.

 

When I query the *IDN?\n command, I get the error "VISA time out"

 

Also when I push the button "Read Status Byte" on the same tab, I get this error "Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state) "

 

So, any idea?

0 Kudos
Message 1 of 2
(2,908 Views)

As you have the Transmit (Tx) of the RS-232 communications port tied to its Receiver(Rx), all you should be looking for is the echo of what you want to transmit.  Send a character 'A' and verify that an 'A' was received.  It will not be able to respond to any other commands in this fashion.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 2
(2,858 Views)