LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ascii data from my serial port does not represent the data I am really receiving

Solved!
Go to solution

I see in your code that you have some 'String to Hex' function, might that functino remove the 1D or 1C?

Try placing an indicator after the read function. (set that indicator to hex display like Ben proposed)

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 11 of 18
(1,383 Views)

Ahhh is it in my ascii to hex sub vi? here is vertion two also for fix maybe? I wont know untill my boss gives me back the test hardware I was using...

 

Ascii to Hex v1.jpg

 Ascii Hex v2.jpg

 

 

__________________________________
| (^) (^) |
| ( o o ) |
| (") '''' (") Magic Code Bunny ^.^ |
| ( ) |
| (m)---(m) |
|_________________________________|
0 Kudos
Message 12 of 18
(1,380 Views)

TCPlomp wrote:

I see in your code that you have some 'String to Hex' function, might that functino remove the 1D or 1C?

Try placing an indicator after the read function. (set that indicator to hex display like Ben proposed)

 

Ton


Lol I was just about to ask about that sub vi

__________________________________
| (^) (^) |
| ( o o ) |
| (") '''' (") Magic Code Bunny ^.^ |
| ( ) |
| (m)---(m) |
|_________________________________|
0 Kudos
Message 13 of 18
(1,378 Views)
Solution
Accepted by topic author Mastergrammer

That upper version will throw away everything after the 4th byte.

In the second (v2) you should connect the 'hex' indicator to the output of the shift register. (no need for the array size)

 

TOn

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 14 of 18
(1,374 Views)

Thank you soo much for everyones help, you guys ar life savers! (as in the floatation divice not the candy, but that would be sweet 😄 )

 

__________________________________
| (^) (^) |
| ( o o ) |
| (") '''' (") Magic Code Bunny ^.^ |
| ( ) |
| (m)---(m) |
|_________________________________|
Message 15 of 18
(1,364 Views)

For future reference, the following thigns will help when asking questions here:

  • State your question in clear langauge
  • Provide some code samples
  • Mention which version of LabVIEW you use (version 6 is probably 10 years old)
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 16 of 18
(1,357 Views)
Sorry about that, the first thing i run into when I have a problem is, I don't know enough to ask a realevant question. Do you have any tips on forming good questions?
__________________________________
| (^) (^) |
| ( o o ) |
| (") '''' (") Magic Code Bunny ^.^ |
| ( ) |
| (m)---(m) |
|_________________________________|
0 Kudos
Message 17 of 18
(1,348 Views)

The first thing I would do is clean up my code, make it good readable from left to right. no Crossing wires.

 

As always there is the invaluable 'How to ask questions the smart way'

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 18 of 18
(1,334 Views)