LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

output text file

Hello,

 

I have  a program that ouputs a text file to a notepad.  It is givig me some problems because I want the output to appear as 2 columns mutiple rows....inead of a lot of columns and 2 rows...

 

Any help wil be u

0 Kudos
Message 1 of 8
(3,575 Views)

What functions are you using?  Are you working with an array?

 

Transpose the array.  The Write Spreadsheet File function as an input to allow you to transpose the array.

Message 2 of 8
(3,573 Views)
I am using a TF boolean instruction in combination with an Array. I am pretty new to labVIEW and this is a program I am trying to optimize...and when I say I am trying I mean, I am REALLY trying because I have never really worked with LV before...So all the help is really appreciated and very wellcomed....
0 Kudos
Message 3 of 8
(3,527 Views)

It will be easier to help you if you post your code so the error can be spotted more readily.

 

If you post a screenshot, please do not post a bitmap, and do not rename a bitmap to change the extension so it gets uploaded. Resave the image as a PNG, or GIF.

 

Better yet: Use the Code Capture Tool.

Message Edited by smercurio_fc on 03-09-2009 08:18 PM
Message 4 of 8
(3,511 Views)

This is my program. If you run it and click on recall study and load one of the files that contain data, you will see different graphs appearing.

Go back to the main program window and click on "MPS" and at the bottom of the page, there is a button that says: "export to text file"

 

When you are running the program, this button outputs a 2 rows-multiple columns data into note pad.

We want to output 2 columns and multiple rows instead.....

 

Any ideas?

0 Kudos
Message 5 of 8
(3,485 Views)

How about using a 'Transpose Array' before you write it to the file?

 

Message Edited by Cory K on 03-10-2009 12:06 PM
Cory K
0 Kudos
Message 6 of 8
(3,482 Views)

There are too many subVI's for me to be able to sort through.  The Recall Mune Study really doesn't have a front panel, just a bunch of overlapping Superclusters.  So I don't know where MPS is on your front panel.

 

Go find the piece of code that actually writes out your data to the text file.  See how that is writing out the data.

0 Kudos
Message 7 of 8
(3,474 Views)

Hi Alfredo!

 

If you are using the Write To Spreadsheet File.vi, there is an input to transpose the data, make sure it is set to false and check if that solves your issue.

Have a great day!!

 

Oswald Branford

 

 

0 Kudos
Message 8 of 8
(3,443 Views)