02-26-2010 02:46 AM
Hi guys, i need help in this VI that i attached. I'm doing a project using serial connection between PIC18f4520 and Labview 8.5. I am monitoring the voltage and current. In the Read String box, (eg. when i run the VI, it will display 4.19v 4194uA.) How can i link this result to display on the graph simultaneously as the value of the voltage and current will vary when i adjust the value of the potentiometer.Can i use scan from string to linkup or ? i need help . thx alot people.
02-26-2010 03:10 AM
You should be able to use String to Fractional number, as it'll stop at the first non-number character (v). That's assuming there's no space in the 4.23 else you'll need to remove those first.
/Y
02-26-2010 03:21 AM
Not to fractional, but to SI number. See attached VI.
If the voltage could also have an SI prefix you might have to split the string at the "V"character and treat both strings seperately.
It seems scan SI number doesn't like the unit, but only the prefix. E.g. 12u is correctly read as 12*10^-6, but 12uA returns 12.
Hope this helps.
03-02-2010 01:20 AM
Hi, from the picture i have attached below, how can i link my output onto Voltage, Current and Temperature ? It seems that it can only display on the read buffer box. After which i need to gather the output Temperature to display onto the gragh as i need to monitor the temperature. Another problem i face is that how can i fix the byte read at 21bytes because if it is more than or less than 21 bytes, it will display funny characters(see 2nd attached pic below).