02-11-2010 02:00 PM
Hi.
I try make a comunication RS232 with Labview with Flexis freescale's microcontroller, the comunication is made, but the data becomes how a string data, and try connect it with a termometer but send me a error menssage, weel the problem is that i can't convert the string data to numeric data.
Please help me.
sorry with my english but i only speak spanish
Solved! Go to Solution.
02-11-2010 02:08 PM
02-11-2010 02:12 PM
02-11-2010 02:13 PM - edited 02-11-2010 02:15 PM
That vi requires a string input. And your string is empty. This is why you get an error. You can not convert an empty string into number.
P.S. If the string is empty because of that I lack of some hardware to acquire the data, then I apologize.
02-11-2010 02:25 PM
02-11-2010 03:11 PM
There is a decimal string to number function that you might try.
If the string is just the digits of a decimal number representing the temperature, that should take care of it.
Hope that helps
Hummer1
02-11-2010 03:28 PM
If you actually have a string such as '24' then your VI will work perfectly fine. You will only have an error if you have an empty string or the string is a different format. In other words, the function you are using is correct.
Do everyone a favor and create a string indicator on the output of the VISA Read. Run the VI. If there is something in the string indicator, select from the Edit menu, Make Current Values Default. Save the VI and post it.
02-12-2010 12:38 PM