LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving complex numbers?

Hello all,

I need to save a calibration file...simple enough, but my calibration file is an array of complex numbers. I tried to find the proper precession (ie. %.3f) but I couldn't locate the precession extension for complex numbers. When I try to save the array I loose all of my complex numbers...so how do you save an array with complex numbers?

Thanx

Azazel
Azazel

Pentium 4, 3.6GHz, 2 GB Ram, Labview 8.5, Windows XP, PXI-5122, PCI-6259, PCI-6115
0 Kudos
Message 1 of 5
(2,982 Views)
I think you have to separate out the real and imaginary and save a 2 column array.
Randall Pursley
0 Kudos
Message 2 of 5
(2,970 Views)
Hi,

You can try the attached VI which is a modified version of Write to Spreadsheet File function so that you can now write complex numbers to a spreadsheet or text file.

Regards,
Ankita
Message 3 of 5
(2,948 Views)
Hi,

how about using the XML functions? With this I found it very easy to save and recover any data I want... (look under advanced/data manipulation/xml)

Carsten
0 Kudos
Message 4 of 5
(2,935 Views)
Thanks all for the help, I went with the 2 column spreadsheet approach.

Azazel
Azazel

Pentium 4, 3.6GHz, 2 GB Ram, Labview 8.5, Windows XP, PXI-5122, PCI-6259, PCI-6115
0 Kudos
Message 5 of 5
(2,927 Views)