Exporting Arrays


Bicky22

Recommended Posts

Hi everyone, 

 

Is there an easy way to export full arrays? I have always used the Export in the workspace to export variables, but I am having difficulty exporting full arrays. I have also used logging to send out batches of data, but in this case I would like the program to see the data before it is exported so it can analyze the data. This way the program can decide if it is good or bad, if good, export the data and delete the old data file. 

 

Thank you for your help in advanced

Link to comment
Share on other sites

Export sets will export arrays. Just don't put [0] in the expression so the whole array is included.  Alternatively, you can write any data in pretty much any format you want using the file. functions, but that is slightly more involved (requires script).

Link to comment
Share on other sites

Thank you for your help. 
 
When I don't include brackets in the expression, I only see the last value of the array in the export file. 
 
For example (i made this script so every number in the array was different. 0-99)
 
private.i=0
var.array=0
 
For( i=1, i <100, i++)
   array=i
   delay(.05)
endfor 
 
beginexport(testexport)

.

the export set exported the expression array (with no brackets). 

The only number I see in the file is 99.  I would like to see  0-99

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.