Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster of 875 booleans to file

I have a Cluster of 875 booleans.  How do you save that to a file ?  I tried flatten.vi and it just gives me these strange characters.
0 Kudos
Message 1 of 3
(2,687 Views)
When you flatten data to a string, the resulting string doesn't contain human readable characters.  The easiest way to do what you want would be to write the data to a datalog file.  This way you can write the cluster directly to the file without having to flatten it beforehand.  If you go into the example finder (Help->Find Examples) and search for datalog you will find an example called "Write Datalog File Example".  This will show you how to use a datalog file.
 
Also, why do you have 875 booleans in one cluster?  Are they in an array?  Usually it isn't a good idea to have that many elements in a cluster like that.
 
-Justin D
0 Kudos
Message 2 of 3
(2,678 Views)

Justin,

I have a Cluster of Booleans.  Its been sometime so I don't remember exactly WHY I used a Cluster.  I think it was because I wanted to give each Boolean a different property.  I use the cluster as a display panel on my test vi.  I read in 960 chs and display whether or not they are on.  Part of my requirement is to save the display at the time of the test.  I don't know why because I save the actual voltages in each ch.  Maybe I could recreate the display after its be saved based on the volts in each ch.  Its a long story but I went back and forth with National ( different App Engrs) on saving the data.   First as TDM files.  That didn't seem to work.  Then I tried saving it using the save the data to a spreadsheet vi.  That had limitations.  With each iteration I lose time because its a total re-vamping of my saving vi.  I'm real close.  I'll try your suggestion.

Just to let you know.  There is more to saving the data then just the 960 ch's.  There are things to save like PASS or FAIL, Operator Name, +/- limits, etc.

 

Thanks,

Clint E.

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