LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exported data format

Solved!
Go to solution

Hello,

 

I'm trying to export an 2D array with a specified number of rows, and 4 columns from Labview to an excel file. The problem I'm having is that the indicated array format does not export properly to excel. What should be the fourth column of each row ends up below that row's second column. Basically I have this: 

Transient 1       Max Value       Min Value    

                       Pass/fail

Transient 2       etc....

 

And I want this:

Transient 1       Max Value       Min Value       Pass/Fail

Transient 2       etc.

 

I had this problem before getting the min value in the correct spot but the fix I used for that doesn't work for this because it must go through the within range node. I've tried delimiters and many other things but can't seem to crack it.

Specifically my program is taking readings from a scope (a max and min value) a certain number of times as specified by the user. Each reading is checked to make sure it is within a certain min and max value and declares pass or fail. When I look at the array indicator on the front panel it is displayed the way I want but when it exports it acts as indicated above. I'm using Tektronix scopes and Labview 2012.

Thank you for your help.

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

I'm not seeing this problem in your code. I simplified the diagram a bit. Could it be that you need to prvide a header for the fourth column? I went ahead and did this, but the result int eh excel file is the same for me.

_____________
Creator of the BundleMagic plugin for LabVIEW!
0 Kudos
Message 2 of 5
(2,533 Views)
Solution
Accepted by Vtem

The Textronix scopes use an End Of Line at a termination character.  So the data in the VISA Read has an EOL at the end.  Use a Trim Whitespace to remove these right after the VISA Read.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 5
(2,529 Views)

Good point. You can view these invisible characters by right clicking on a string indicator or contant and selecting "'\' Codes Display".

_____________
Creator of the BundleMagic plugin for LabVIEW!
Message 4 of 5
(2,510 Views)

this fixed it perfectly thanks guys.

0 Kudos
Message 5 of 5
(2,481 Views)