LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Micro-controller using Labview

Solved!
Go to solution

@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?

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 21 of 27
(1,434 Views)

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? 

0 Kudos
Message 22 of 27
(1,446 Views)

@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. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 23 of 27
(1,442 Views)

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.

0 Kudos
Message 24 of 27
(1,440 Views)

@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  

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 25 of 27
(1,437 Views)

yes those are ascii chars. I will try with \n and  \r and i will get back 

0 Kudos
Message 26 of 27
(1,410 Views)
Solution

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

0 Kudos
Message 27 of 27
(1,385 Views)