08-02-2013 12:28 PM
Hello,
I have a labview program that measures the current vs voltage for a field emission device. The problem that I'm having is I recive the error 85 message whenever my current measurment reaches 4 digits, for example, 1000 uA. I've read that the error 85 means the scan from string function is reciving the wrong type of data, so my question is: how can I modify the scan from string function to accept up to 4 digit numbers? My block diagram is attached.
Thanks
Solved! Go to Solution.
08-02-2013 12:33 PM - edited 08-02-2013 12:39 PM
@Zebulan wrote:
Hello,
I have a labview program that measures the current vs voltage for a field emission device. The problem that I'm having is I recive the error 85 message whenever my current measurment reaches 4 digits, for example, 1000 uA. I've read that the error 85 means the scan from string function is reciving the wrong type of data, so my question is: how can I modify the scan from string function to accept up to 4 digit numbers? My block diagram is attached.
Thanks
If you specify '%f' as FORMAT STRING, you need not do any changes.
This error must be because of some string other than numeric is being input to the function. Make sure you put a probe and also be watchful for 'non printable' characters.
08-02-2013 12:36 PM
AHHHH. No error handling!!! You really should be passing your error clusters.
Anyways, you might want to set your format strings to be %f. The other alternative is to just use the Fract/Exp String to Number function.
08-02-2013 01:46 PM
Thanks for the reply. I have tried formatting the string with %f and had no success.
Also, what do you mean by "put a probe"? Are you refering to a physical measurement while I conduct my experiment or is this an option in LabView? If it's a physical measurement probe I don't think that's possible since the current I'm measuring has values in the micro amperes range.
08-02-2013 06:33 PM
@Zebulan wrote:
Also, what do you mean by "put a probe"? Are you refering to a physical measurement while I conduct my experiment or is this an option in LabView?
http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/using_the_probe_tool/
08-05-2013 02:14 PM
Thanks.
I solved the problem today, turns out I needed to add a string width to my "number to decimal string" functions.
I appreciate all your help guys!