LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading RS232 Output

Hello !! 

 

I am try to program Digital Protactor PRO 3600 (In short Inclinometer) via Rs-232 Protocol. I had configured Port first , then switching OFF hansshaking  , then  fluhes input and ouput register. After all these steps i made RTS line low and then High  ( Digital protactor responds to PC when RTS is high only) . i am using Function COMRD but i am un able to read the output, every i get  "Zero value ". How i can use COMRD to read the output... i had also tried inp function in loop but not working as well....

 

Saqib Athar

0 Kudos
Message 1 of 2
(4,261 Views)

Hi Saqib51,

 

Please reference this function help explaining the ComRd() function. http://zone.ni.com/reference/en-XX/help/370051V-01/cvi/libref/cvicomrd/

 

Does the function return a timeout value? How many bytes are you specifying on each read?

Kevin S
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(4,213 Views)