LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I send AT commands by the serial port when the VISA VI's don't work?

 
0 Kudos
Message 1 of 9
(3,927 Views)
I tried my invisible ink remover but that didn't work Smiley Sad, so it looks like you need to reply to your post with the description of the problem, as it didn't make it through.
0 Kudos
Message 2 of 9
(3,922 Views)


@smercurio_fc wrote:
I tried my invisible ink remover but that didn't work Smiley Sad, so it looks like you need to reply to your post with the description of the problem, as it didn't make it through.


If his VISA installation is as present as his effort to explain his problem I do not wonder why it doesn't work.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 9
(3,915 Views)
I am using an adapter of RS-232 to Bluetooth, this adapter is setup using AT commands  by the serial port, if I use the hyperterminal of Windows I do not have problems to do it, but when trying to do it with the VÍs of visa in LABVIEW I do not have answer.
0 Kudos
Message 4 of 9
(3,910 Views)


@jose Pablo wrote:
I am using an adapter of RS-232 to Bluetooth, this adapter is setup using AT commands  by the serial port, if I use the hyperterminal of Windows I do not have problems to do it, but when trying to do it with the VÍs of visa in LABVIEW I do not have answer.


Ok lets start from beginning. YOu have verified that VISA is properly installed by checking in the Measurement & Automation Explorer that your serial port is properly recognized? In there you can also do some communication similar to what you can do in Hyperterminal.

Now about serial communication in general. Every serial device needs to know if a command it receives is finished or if it should wait for more parameters/characters etc. This is done with a termination character that has to be appended to every command. Most often this termination character is a carriage return, a line feed or a combination of these two.

Hyperterminal happens to send the carriage return and/or line feed character that results from hitting the return key to finish your command entry. LabVIEW sends out EXACTLY the characters you tell it to send. So in LabVIEW to get a carriage return or line feed or both send to the device you have to append them explicitedly to the string you send out. And NO having LabVIEW append those characters automatically is no good option since quite a lot of devices in test and measurement do not work all the same and having LabVIEW do this would make communication with those devices impossible.

You can either use the string constants from the string palette and append them to the string with the Build String node or you can enter those characters directly in a LabVIEW string control or constant by first selecting the control or constant pop-up menu and in there selecting '\' Codes Display. Then you can enter \r for carriage return and \n for line feed.

Rolf Kalbermatter

Message Edited by rolfk on 04-12-2006 10:15 PM

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 5 of 9
(3,896 Views)
Ok, I am going to try again adding these characters in the VISA VI's. thanks for your help.Smiley Happy
0 Kudos
Message 6 of 9
(3,883 Views)

@jose Pablo wrote:
I am using an adapter of RS-232 to Bluetooth, this adapter is setup using AT commands  by the serial port, if I use the hyperterminal of Windows I do not have problems to do it, but when trying to do it with the VÍs of visa in LABVIEW I do not have answer.

Yes, thie RS232 blutooth Serial adapter could setup using with AT comands by Serial port. but it make sure your syetem have

HyperTerminal configuration.Window XP or below have Hyper Therminal system.

you can through the ATcomands to change the Baud rate, stop bit,parity..ect.

 

If have quesiton for the useing of  bluetooth Serial adapter.welcome to contact us, thanks.

 

Best regards

 

Steven

0 Kudos
Message 7 of 9
(3,033 Views)

Why would you respond to a 6 year old thread?

 

I'm sure if he still needed help, he would have posted long since then.

0 Kudos
Message 8 of 9
(3,031 Views)

@Ravens Fan wrote:

Why would you respond to a 6 year old thread?

 

I'm sure if he still needed help, he would have posted long since then.


I just see this topical today.I hope maybe it is still usefull.

0 Kudos
Message 9 of 9
(3,028 Views)