I have problem reading from a Data set. It is Error 706
The program that I am running performance many measurements and store the measurments in a record and saves the record in to a data set file TemperatureXX.rtf. The program creates one of these “data set”-files for each temperature measurement I choose to do.
When all measurements are done the temperature data sets are read and the program builds one record and saves this record in to a final data set.
The problem I have is that sometimes the program cannot read one(or several) of the temperature data sets, it varies which data set that are the problem one, sometimes it can be the first created other times one in the middle or the last one. The program returns an empty datasets which after a junction becomes a "nil". This causes the program to skip the creation of the big data set.
The temperature data set file, which cannot be read in Vee, can be open with WordPad and I cannot see any difference between the file which cannot be read and the files which can be read.
I have tried to open the file in WordPAb and save it with a new name without any luck.
I am using Vee 9.2.13522.0 (Mar 22, 2010) on windows 7
1 Have any one else the same problem?
2 Are the any characters/signs which are forbidden to use in a data set.
3 Is there any why to detect that the data set is corrupt when it is written? And then try to re-write the data set?
4 Is there a maximum length of the data set that is allowed?
Hard to say what the problem could be without the code or a screenshoot. First guess would be a programming error due to FromDataSet control-pins for FileName (and/or Rewind)
When the error occurs no "empty dataset" is output, there is some other problem here.
I have found the error (With help from Agilent Thanks a lot )
In the program I read out data from instruments. If the data from the instrument is not a valid number, then I force a text "NaN" to be set instead of the corrupted number. This makes the data in the record to be both Real64 numbers and Text at the same position.
Everything is fine when the Data Set is saved
But when the Data Set is read it first read which format everything shall be in and if the first position is text then numbers will cause a problem and vice versa
Solution is to make everything to text format. E.g. Real64 -15.23 is formated to Text "-15.23" then all data is stored in the same format