LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview serial communication with pic18f452

 

hello
 
Is there any specific way to write any command to the PIc microcontroller .....like some prefix or whatever(eg /n/r.....as I just want to send ' 2' to the pic but it is not getting it ...because if it would then it sureluy should do the specif job defined to it...please help am stuck my controller sends the data which is shown on the read window of the labview example.of basic serial read and write..but when i want to send the data to the controller notthing happens..... 
 
best regards
ali shaheen

 

0 Kudos
Message 1 of 5
(3,621 Views)

Presumably, you wrote the firmware for the pic. You should know the specific way. Is the '2' supposed to be in ASCII or hex? Is the supposed to be a termination character or not?

0 Kudos
Message 2 of 5
(3,607 Views)

hello

 

The  2 is an ASCII charater....and as soon as my controller should read the data from serial port it should move the stepper motor towards the specific direction...I had tried the example in labview regarding simple serial read write...so in the read window there is some data comming ...which means that it is reading from the controller but when i am trying to write to the controller there is nothing happening ....... so is there is any commands or termination letter should i use so that this writing operation could occur....and one more thing is this that......I AM SOOOORRRRYYY.....for the duplicate posts i had made...actually its my first time on this forum of NI..

 

best regards

ali shaheen

0 Kudos
Message 3 of 5
(3,570 Views)
Make sure your string control is set for \ Display and try \r or \n.
0 Kudos
Message 4 of 5
(3,544 Views)

salam/hello

 

thank you very much it worked...but i dont think that there is any need of ""\n'' or ''''\r''''

it was a problem with my circuit and i solved it....thank you very much for considering my problem ...

 

best regards 

alishaheen

0 Kudos
Message 5 of 5
(3,535 Views)