LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

saving a hash table

I have created a hash table and displayed it in a table. I would now like to save it to a  file and subsequently read it back in. I have not yet found a way to do this. Any suggestions would be appreciated.

0 Kudos
Message 1 of 3
(3,180 Views)

If data in your table are in a contiguous block you can use GetTableCellRangeVals to retrieve the whole block in a array in a single step; the array can be saved to disk with ArrayToFile.

The reverse process is FileToArray and SetTableCellRangeVals



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,172 Views)

Grazie, Roberto,

 

I will now say the only phrase I know in Italian: e pericoloso sporgersi. Smiley Wink As to my CVI question: I don't think I can directly save the hash table  but, since I display its contents in a table, I can save THAT table, write it to a file, read it back in and reinsert it in a hash table after I have read it. So I think that accomplishes what I want. It will be some time before I complete the code that does this, but I will let you know how it comes out. Thanks again for the prompt response.

 

Regards,

 

cegcs

0 Kudos
Message 3 of 3
(3,156 Views)