08-30-2013 06:52 AM
08-30-2013 07:05 AM
A UART serial port is a UART serial port. It doesn't matter what you are talking to, as long as both sides are using the same configuration and your wiring is done correctly.
Make sure you have the same baud rate and the other settings the same in both LabVIEW and your microcontroller. After that, check your wiring. Then start looking at your microcontroller code.
08-30-2013 02:48 PM
08-30-2013 03:29 PM
08-31-2013 12:45 AM
The only thing needed here is keep your protocol simple and clear.
Something you should worry about is sending an acknowledgement (1 byte) or NOT acknowledgement (ack and nack) so that the sender knows that something is received that is understandable or that something is wrong.
In case of no ack and no nack you can expect that there is no communication.
Furthermore. send this (ack/nack) immediately when the message is understood or not understood, meaning that an error in executing the command must be handled in another way.
Maybe by returning error code possibly with a detailed explanation because there is plenty of time in case of an error and clear ommunication solves that in the fastest way.
09-09-2013 02:16 PM
How is your hardware interfaced? When I have done this in the past, I had to use a converter such as the MAX232 to convert the microprocessor 0-5V to +/-V found in computer serial ports.
11-26-2013 01:59 PM
hi if you are working with a microcontroller such 18F45550 this has a UART port can be directly connected, these outputs are specifically pins 25, 26 (Tx-Rx), these pin serial communication can be used for asynchronous transmission, the output these pins you can connect any USB-RS232 converter to connect to the computer.
Bearing this in mind when installing the converter please verify COM port is installed in the device manager, the same port must be the same as configured in your LabVIEW program (velicidad, bits, parity, etc.) to avoid any configuration error