LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SERIAL COMMUNICATION

Hi everyone! My name is kanu and I want to give some commands to the controller using LABVIEW. I can't figure out how to send a macro serially to the controller?

0 Kudos
Message 1 of 5
(2,949 Views)

Hi kanu,

                            first of all you need to check in what format of serial data your controller will receive ?

I mean to say baud rate, parity, start bit, timeout, stop bit etc.

Let me know afterwards

 

Thanks

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 5
(2,873 Views)

hi ranjeet!

the controller which i am using supports the baud rate format.

 

thanks in advance! 🙂

0 Kudos
Message 3 of 5
(2,865 Views)

You obviously do not understand.  There is no such thing as a buad rate format.

 

There are several settings for the hardware level of the serial port.  Buad Rate, number of parity bits, stop bit, start bit, and types of handshaking are some of these hardware settings.  Check out the wiki artical on serial ports for more information on these settings:http://en.wikipedia.org/wiki/Serial_port

 

You controller should have a list of instructions.  These instructions should be written out of the serial port.  If the controller is sending information back, this information can be read.  But it all depends on the instructions defined by the controller.  Check out the Example Finder in LabVIEW and search for "Serial Read Write" for an example of communication code.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 5
(2,814 Views)

Hi buddy,

                        What i mean to say is when you are communicating from controller, inside controller there is a UART for serial communication. This devide will work on some settings like baud rate, data bit,stop bit, start bit etc.

 

First you need to figure it out then accordingly you can send or receive data.

 

After you complete this let us know.

 

here is tutorial 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 5
(2,784 Views)