Showing results for 
Search instead for 
Did you mean: 

sychronization problem


how can i sychronize labview and PIC microcontroller?

i want to start program run on labview when i sent from PIC "start"

my "while loop" starts before i sent the string and that generate problems!

is there an idea?

0 Kudos
Message 1 of 3

Because you said " "while loop" starts before i sent the string...." I assume you allready have a communication between PIC and LV. 

So if you want to start a certain loop code after a string is received, you will need to poll the received string and compare it with the one you expect to run the code. use a shift register and a case structure to run the depending code, once the correct string was received.


if this doesn't help or if i missunderstood your question, please post again with a more detailed description.

0 Kudos
Message 2 of 3
I assume you are using the RS-232 protocol to communicate with the controller. Your program should be designed in such a way that you are initially polling the port for an input and after you recieve a command, run the rest of your application. Post your VI if you can, and we can make some suggestions.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 3 of 3