LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read from RS232 problems

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

0 Kudos
Message 11 of 21
(910 Views)

this is an printscreen of my terminal... I think "\n" is "0A" in hex

 

http://img829.imageshack.us/img829/4572/xyt7.jpg

0 Kudos
Message 12 of 21
(905 Views)

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

0 Kudos
Message 13 of 21
(899 Views)

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

0 Kudos
Message 14 of 21
(897 Views)

The while loop needs only the code which is inside the True case of the case structure.  It would look like this.

 

Lynn

 

While loop.png

0 Kudos
Message 15 of 21
(893 Views)

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

0 Kudos
Message 16 of 21
(885 Views)

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

0 Kudos
Message 17 of 21
(883 Views)

This was a very impressive thread, given that it seems the OP native language was not English.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 18 of 21
(879 Views)

Hi

 

yes.. I'm portuguese..

 

sorry my strange ingles

0 Kudos
Message 19 of 21
(874 Views)

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

0 Kudos
Message 20 of 21
(871 Views)