02-13-2008 06:31 AM
02-15-2008 08:32 AM
When you want save report as binary you must programm your own sequence for creating report. You can select it under report optons (use seq instead off dll). For that modify the reportgen_txt.seq you find in C:\Programme\National Instruments\TestStand 4.0\Components\NI\Models\TestStandModels
Second - the sequence self is now (since TS 4.0) possible to save in binary format. Other way could be open the Report *.txt with other program and save then in binary format and del the *.txt. In Report Options you can use "On The fly" then report saves while writing. See attached in *.doc the screenshots of new sequence file format and the location of the reportgen_txt.seq -> save it to new name and look at steps how to generate here the *.txt report and then use it for your own format in other language like Labview and CVI and give the values via adapters to the language and then save it as binary file.
Hope this helps
Best Regards
AE Munich (germany)
02-18-2008 01:22 AM
Hi Johann,
Thanks for your answer. But unfortunately it pointed not out what I really want to know. Or lets say what i want to discuss.
The major task is: Is there a way to safe a the complete ResultList (if you take a look into the TestReport-Callback it will be variable "Parameters.MainSequenceResults") as a binary-file without any modifiactions or generator/parser stuff.
The first aim of this procedure should be no loss of data by saving huge number of file drive space. The Second is saving execution time for generating the report file in the Testreport callback.
The last few "lunch-breaks" I have dealed with this question to figure out a useful solution.
I have found several things in TS4.0 that deal with this topic the serialization of data
One the one hand there is a Engine method "SerializeObjects" . I got this running (I hoped so) for binary data but for re-building
just for visualizing the data to an Operator. I found no running solution. On the other hand there is PropertyObject method
"Serialize" This stuff was working fine. But data always have been stored in INI-Format on file. So there was no great benefit
on file size.
While looking on the TS4.0 poster on the wall i was focused on PropertyObjectFile. And with it found a resonable solution for this task. It is simple. Create a PropertyObjectFile, do some settings like binary and path, get the parent PropertyObject from it, and ceate a new varaiable in the data folder. Now take the ResultList, clone and add it to your variable. The last step is saving.
A comparsion to the XML-Report (shipped with NI)
Binary <--> XML
Filesize: 23 kB <--> 2202 kB that is a reduction of filedrive space of over 95% !!!
Executiontime 160ms <--> 1960ms that means i have to spent only 8% of time as in XML
I have attached an example. It writes the report on Root C:\report.dat
For you and all other members feel free to test it and please tell me what you think about it.
If there is an other solution so lets discuss it.
Greetings
juergen
02-18-2008 07:03 AM
Hi - i tested your file and it works very well
yes - since teststand 4.x we have additionally activex objects specially for binary file possibility and that´s the way it used.
So thanks for your example and have a nice day
Best Regards
02-18-2008 09:39 AM
02-18-2008 10:16 AM - edited 02-18-2008 10:18 AM
02-18-2008 10:36 AM
02-18-2008 04:05 PM
02-19-2008 07:01 AM
02-19-2008 10:47 AM