10-07-2009 07:01 PM
Hi,
I'm trying to modify an instrument driver in from an instrument control course tutorial. I followed the tutorial and I can't see any mistakes on my but when I run the instrument driver vi, I get an error 85 message saying that labview scan failed. Possible reasons, the input string does not contain data in the expected format. Please see attached VI. I will appreciate any help.
Thanks.
10-07-2009 08:36 PM
10-08-2009 08:48 AM
Hi Dennis,
The instrument is a NI instrument simulator v2.0. It is set in GPIB multi-instrument mode and the driver is for the oscilloscope simulator. The problem is that I can't tell which format is right or wrong since I followed the directions of NI Instrument control course manual. Perhaps somebody can try it with the same simulator and see if they can figure out why the error continues to occur.
10-08-2009 10:32 AM
10-08-2009 08:14 PM
Hi Dennis,
Sorry, I thought explaining what was happening the way I did would be enough. Anyways, the data at the input is pretty long but here is the starting section below. The only thing I noticed here is that the first data point has a different format than the rest.
8.8531e-17,
0.31395,0.62667,0.93691,1.2434,1.5451,1.8406,2.1289,2.4088,2.6791,2.9389,3.1871,3.4227,3.6448,3.8526,4.0451,4.2216,4.3815,4.5241,4.6489,4.7553,4.8429,4.9114,4.9606,4.9901,5,4.9901,4.9606,4.9114,4.8429,4.7553,4.6489,4.5241,4.3815,4.2216,4.0451,3.8526,3.6448,3.4227,3.1871,2.9389,2.6791,2.4088,2.1289,1.8406,1.5451,1.2434,0.93691,0.62667,0.31395,-1.4742e-14,-0.31395,-0.62667,-0.93691,-1.2434,-1.5451,-1.8406,-2.1289,-2.4088,-2.6791,-2.9389,-3.1871,-3.4227,-3.6448,-3.8526,-4.0451,-4.2216,-4.3815,-4.5241,-4.6489,-4.7553,-4.8429,-4.9114,-4.9606,-4.9901,-5,-4.9901,-4.9606,-4.9114,-4.8429,-4.7553,-4.6489,-4.5241,-4.3815,-4.2216,-4.0451,-3.8526,-3.6448,-3.4227,-3.1871,-2.9389,-2.6791,-2.4088,-2.1289,-1.8406,-1.5451,-1.2434,-0.93691,-0.62667,-0.31395,8.8531e-17,0.31395,0.62667,0.93691,1.2434,1.5451,1.8406,2.1289,2.4088,2.6791,2.9389,3.1871,3.4227,3.6448,3.8526,4.0451,4.2216,4.3815,4.5241,4.6489,4.7553,4.8429,4.9114,4.9606,4.9901,5,4.9901,4.9606,4.9114,4.8429,4.7553,4.6489,4.5241,4.3815,4.2216,4.0451,3.8526,3.6448,3.4227,3.1871,2.9389,2.6791,2.4088,2.1289,1.8406,1.5451,1.2434,0.93691,0.62667,0.31395,-1.4742e-14,-0.31395,-0.62667,-0.93691,-1.2434,-1.5451,-1.8406,-2.1289,-2.4088,-2.6791,-2.9389,-3.1871,-3.4227,-3.6448,-3.8526,-4.0451,-4.2216,-4.3815,-4.5241,-4.6489,-4.7553,-4.8429,-4.9114,-4.9606,-4.9901,-5,-4.9901,-4.9606,-4.9114,-4.8429,-4.7553,-4.6489,-4.5241,-4.3815,-4.2216,-4.0451,-3.8526,-3.6448,-3.4227,-3.1871,-2.9389,-2.6791,-2.4088,-2.1289,-1.8406,-1.5451,-1.2434,-0.93691,-0.62667,-0.31395,8.8531e-17,0.31395,0.62667,0.93691,1.2434,1.5451,1.8406,2.1289,2.4088,2.6791,2.9389,3.1871,3.4227,3.6448,3.8526,4.0451,4.2216,4.3815,4.5241,4.6489,4.7553,4.8429,4.9114,4.9606,4.9901,5,4.9901,4.9606,4.9114,4.8429,4.7553,4.6489,4.5241,4.3815,4.2216,4.0451,
10-08-2009 08:23 PM
And without seeing the actual string, how could anyone know what is wrong with the format?
Your format string is saying that there should be a '#' character before a numeric. Obviously there is not.
10-09-2009 06:45 AM
10-09-2009 06:51 AM
10-09-2009 09:27 AM
Dennis,
I removed the # from the format specifier in the first format into string function and I'm now getting the error code 85 on the last/3rd format into string function with the same error message that the input string isn't in the expected format. I probed the input and the values were similar to the data I posted earlier. Here are the first few points below:
.8531e-17,0.31395,0.62667,0.93691,1.2434,1.5451,1.8406,2.1289,
I really don't know how to make any changes or correction in that last function.
10-09-2009 09:38 AM