LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D array to text file WITHOUT using Write to Spreadsheet.vi

I have a 2D array, and I want to write to a text file WITHOUT using the Write to Spreadsheet VI.  I can't use this function, because it's not available on the PDA!
 
ANy ideas?  I would have to use the Write to text file, but it's not working because a text file can only take a 1D array.
 
thanks 🙂
Amal Patel
0 Kudos
Message 1 of 2
(4,589 Views)

That VI may not be available in the PDA module, but if you look inside it, you should see that it uses the Array to Spreadsheet String primitive, which should be available. If you want CSV, you need to use a comma as your seperator.

If for any reason that VI doesn't work, you can code it yourself by going over the array element by element and building a string out of it.

You really should check out those tutorials. Using the PDA module is not something I would suggest for people who don't LV, because it has quite a few bugs and missing things which you have to know how to work around.


___________________
Try to take over the world!
Message 2 of 2
(4,581 Views)