04-26-2013 08:18 AM
Hey.
I've creating a labview program with a aduino microcontroller.
I've created a testprogram in the Arduino which sends 35Byte over to labview and should be plotted into a graph.
I've manage to send bytes into the Labview buffer, and read bytes as a string.
From the "read bytes" I've sends the string into a loop which divides the string and reads one byte at the time.(substring)
The problem is with converting substring into number.
"Decimal string to number" box doesn't gives out any data.
Added a picture to illustrate better..... Please help.
Can add whole Vi. If asked.
04-26-2013 08:21 AM
04-26-2013 08:21 AM
Add whole vi please, otherwise it is all conjecture in trying to help you.
04-26-2013 08:24 AM
Hey.
Thanks for quick reply.
here is the whole VI.
04-26-2013 09:17 AM
What is the data format you are sending? I don't think you are sending ASCII numbers (judging from the picture). So the Numeric String to Number is not going to work. You need to use the String to Byte Array. This will convert all of the bytes into numbers (unsigned 8-bit number to be mroe exact). You can do your graphing and calculations from there.
04-26-2013 10:06 AM
Your right I don't send ASCII.
Can you show me where to put the" bytes to array" module, and connect it to the graph?
I've just so much time on it, I can't see to find the right place it 🙂
thank you for the help.
Much appreciated.
04-26-2013 10:15 AM
xalonso wrote:Can you show me where to put the" bytes to array" module, and connect it to the graph?
Use the String to Byte Array instead of your entire FOR loop.