From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write real and imaginary parts in text file

Hi all

 

I am a rookie in Labview and I have a question.

 

I want write a .txt file with 3 columns where:

 

first column is the frequency

second column is the real part of FRF, and

third column is the imag. part of FRF

 

Can someone help me?

 

Thanks

 

Carreira

0 Kudos
Message 1 of 5
(2,803 Views)

You want this:

spreadsheet.PNG 

 

Not this:

txt.PNG

 

Depending on your version of LabVIEW, the 'write to spreadsheet file' should be polymorphic

Cory K
0 Kudos
Message 2 of 5
(2,794 Views)

You can also remove the 'open/create file' function.

The 'write to spreadsheet file' will create a new file if it does not already exist.

Cory K
Message 3 of 5
(2,791 Views)

Thanks Cory K

 

I made the changes that you said, but the program still have error because "build array" output is a 2D array of 3 element cluster and the "write to spreadsheet file" input is a 2D array.

How can I make this conversion of data?

Im send my code for better understanding.

 

Carreira

0 Kudos
Message 4 of 5
(2,777 Views)
this may help:
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 5 of 5
(2,773 Views)