LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can run a command through hyperterminal but unable to communicate through rs232 using labview

Hi,

I am able to send command through Hyperterminal and getting response. But , while sending through rs232 in labview using the basic serial write and read vi given in examples and using the same settings for rs232 port, I am not getting any respose .  MY command is something like "r 0x40000000" in hyperterminal.

Any comments or suggestion would be helpful. Thanks in advance.

Rohit
0 Kudos
Message 1 of 8
(4,207 Views)
Do you need to terminate the commands with a carriage return/linefeed? Is this included in the "string to write"? Note that when you first open that VI the command is "*IDN?\r\n". The \r\n are carriage return and linefeed. The string control is set to display special characters in "\" mode. Are these still there with your command?
0 Kudos
Message 2 of 8
(4,199 Views)


I am able to send command through Hyperterminal and getting response. But , while sending through rs232 in labview using the basic serial write and read vi given in examples and using the same settings for rs232 port, I am not getting any respose .  MY command is something like "r 0x40000000" in hyperterminal.


Hello Rohit,

This could be many things.  I've had problems with serial devices in the past too.

A few things to check:  Make sure you've set your port communication the same way you have in Hyperterminal.  You can do this either programmatically or through the MAX utility.  Also, remember to check the way your string is formated.  You may need to have it formated to send HEX values. 




Message Edited by pallen on 06-08-2007 10:36 AM

---------------------
Patrick Allen: FunctionalityUnlimited.ca
Message 3 of 8
(4,196 Views)

Hi,

I am facing a similar problem.

I am getting this eror.

Error -1073807246 occurred at Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->Basic Serial Write and Read.vi

Possible reason(s):

VISA:  (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.

Can anyone please tell how to fix this??

Thanx.

0 Kudos
Message 4 of 8
(3,675 Views)

Is your port used by any other application ?

 

If not, this KB might help.

Message 5 of 8
(3,669 Views)

The problem is not similar and you should have done a search for the error code. Make sure you have any other program closed. The OS only allows one program at a time to access the port.

Message 6 of 8
(3,666 Views)

Well yeah sorry.... I had a labwindows code using the same com port.... 

Thanx a lot for the help. 🙂

And I ll make sure to do a search for the error code first.

Thanx again.

0 Kudos
Message 7 of 8
(3,649 Views)

One tip on searching for error codes in the forums.  Leave out the negative sign and just search for the number.  The search engine interprets the negative sign as a search modifier meaning look for posts that do not have the number as a part of it.  So you'd wind up with everything else in the forums except for the posts that would actually help you.

0 Kudos
Message 8 of 8
(3,646 Views)