03-08-2014 05:32 AM
Hello everybody,
I have a problem with serial comunication - when I put '8', I receive some unusual characters like 'Ć', and then '8'. On the end - error. I did something wrong?
03-08-2014 06:47 AM
You should only open and close the serial port ONCE. Open and configure the serial port before the loop and close it after the loop. You can read and write inside the loop all you want then. I've seen weird situations where constantly configuring the port will give you weird random characters.
You should probably also use an Event Structure to control when the buffer is written. For instance, only write out of the serial port when you hit a "Send" button.
Are you using a loopback cable? Or are you trying to talk to an instrument that is just sending back the data you sent?
03-08-2014 10:17 AM - edited 03-08-2014 10:35 AM
Could you show me example of solution similar to my problem? I did as you tell, but still problems occur. Maybe not weird characters but slow transmission and I have to reset my program before sending one character. I'm using USB cable with RS-232 adapter. Microcontroler Atmega32A (pins TxD and RxD are in charge of data transmission)
03-08-2014 11:10 AM
I have already found a solution. Thanks for your help 🙂
03-18-2014 02:41 PM
@eadfaedwda wrote:
I have already found a solution. Thanks for your help 🙂
The best way to say thank you is with kudos.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord