07-02-2013 04:29 PM
We are trying to understand exactly what characters the PIC is transmitting. In your printf statements you have "\n" shown. What is the decimal or hexadecimal value of the bytes transmitted when "\n" is sent?
Lynn
07-02-2013 05:35 PM
this is an printscreen of my terminal... I think "\n" is "0A" in hex
07-02-2013 06:03 PM
Yes. 0A hex is a line feed character.
Since you are sending line feeds at the end of each message, you should be able to remove the Bytes at Port property node and the case structure (keeping the code in the True case only). Also remove the Wait (ms). The VISA Read will wait until the line feed occurs.
Lynn
07-02-2013 06:09 PM
hi
thanks... you can put an image for I can see what I can make this?
sorry but I only start programing Labview on last mount...
best regards
07-02-2013 06:18 PM - edited 07-02-2013 06:19 PM
The while loop needs only the code which is inside the True case of the case structure. It would look like this.
Lynn
07-02-2013 06:49 PM
thanks for all your help...
I try this example and it continue don't work
see the printscreen: http://img825.imageshack.us/img825/2740/8f6e.jpg
stay correct?
I send you my file on attachement
07-02-2013 06:54 PM
Hi
stay work... thanks... now only need put only need put "timout" on VISA Serial, to "1000"
thank you very much for all your help..
best regards
07-02-2013 07:15 PM
This was a very impressive thread, given that it seems the OP native language was not English.
07-02-2013 07:28 PM
Hi
yes.. I'm portuguese..
sorry my strange ingles
07-02-2013 07:49 PM
I am glad you got it working.
I had not noticed that you had reduced the timeout to 10 ms. You do not need the Bytes at Port property node outside the loop. It does nothing and can be completely removed.
Lynn