LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 116 when loading a binary file

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 !

Download All
0 Kudos
Message 1 of 3
(2,223 Views)

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,

 

 

Nick
Message 2 of 3
(2,206 Views)

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

0 Kudos
Message 3 of 3
(2,195 Views)