11-22-2011 02:31 AM - edited 11-22-2011 02:32 AM
hi guys,
I'm encountering some troubles with the functions save/load binary files :
I want to save a cluster and a numeric, in aim that the user can load different configurations.
I made a lot of researches about this subject, I set the "prepend array or string size" to true, I tried different configurations, but I still encounter this error 116.
enclosed are my two VIs
The numeric is well loaded, but the components of the cluster are wrong...
I think I should use the vi "set file position" but don't really know how...
thanks for help !
11-22-2011 05:22 AM
Hello,
I found this KB which deals with this error:
http://digital.ni.com/public.nsf/allkb/3F3140986E3AB3F4862574A4007809CA?OpenDocument
I think the point relevant to you is number 2: 'You are trying to read a cluster of multiple data types with the Read from Binary File VI. When writing and reading cluster data types, use the Datalog VIs, which are specifically designed for this purpose. These VIs still save the data as binary data.'
I hope this helps,
11-22-2011 07:31 AM
actually it was number one : I was saving a cluster and a number, but in the loading VI, I didn't pay attention to the type of the umber, which was double precision, whereas it was Unsigned word I saved, so I fixed the problem..
thanks a lot for help