06-20-2022 10:34 AM
@User002 wrote:
yes i changed the VI by looking at the @crossrulz`s video but the result is same. Can you please tell me what is the problem?
Honestly not without the device you are communicating with. I gather you programmed the microcontroller?
06-20-2022 10:35 AM
yes im sending command to the micro controller and receiving output back from it and no i did not send send a \n or \r at the end of data string.Do i have to use both \n or \r or any single?
06-20-2022 10:38 AM - edited 06-20-2022 10:39 AM
@User002 wrote:
yes im sending command to the micro controller and receiving output back from it and no i did not send send a \n or \r at the end of data string.Do i have to use both \n or \r or any single?
Well your termination character your microcontroller is sending has to match what your LabVIEW program is expecting or your LabVIEW program has to expect what your microcontroller is sending...
The default is a single Carriage Return.
06-20-2022 10:38 AM
yes im sending command to the already programmed micro controller and receiving output back from it which is working fine with putty (sending command and receiving exact output which i need ) and no i did not send send a \n or \r at the end of data string.
06-20-2022 10:41 AM
@User002 wrote:
yes im sending command to the already programmed micro controller and receiving output back from it which is working fine with putty (sending command and receiving exact output which i need ) and no i did not send send a \n or \r at the end of data string.
And it's more than just putting \ before an n or r it has to be the proper ASCII character
06-21-2022 12:09 AM
yes those are ascii chars. I will try with \n and \r and i will get back
06-22-2022 06:51 AM
hi everyone,
the problem solved. i inserted delay before read and also in delay in while loop because i was reading too fast.
Thank you