LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Analyzer labview program

I gave it a try and it still isn't working 

0 Kudos
Message 51 of 75
(1,951 Views)

Wire a true constant to Append to File input of your Write Spreadsheet File.  Not False.

0 Kudos
Message 52 of 75
(1,938 Views)

it does it but it only displays in one of the columns it doesn't append it to all the columns

0 Kudos
Message 53 of 75
(1,932 Views)

I have already explained to you what you need to do back in message #40. To repeat:

 

"Because of the way you want to have the columns you would need to initialize the 2D array as a 2D array of strings. You'd want one additional row for the number of rows portion of the 2D array size (right now it's set to be the same as the number of points). In the loop you would append the row of headers to the 2D array that gets build out of the individual 1D arrays. Try it - it's not that hard"

0 Kudos
Message 54 of 75
(1,923 Views)

So you are trying to rewrite your entire file on every iteration of the For Loop?

 

Then you need to move your Write to Spreadsheete File for the header inside the For Loop.

0 Kudos
Message 55 of 75
(1,920 Views)

Ravens Fan, the fundamental problem is the way he wants the output file to look like. He wants the data to be output horizontally instead of vertically. If it were the latter it would be real easy. Message #17 contains the output file format.

0 Kudos
Message 56 of 75
(1,916 Views)

You're probably right.  The requirements he's looking for have twisted and turned so much through 6 pages of messages, it's no longer clear what he wants.

 

Seeing the last message of "it still isn't working", without details, I'm guessing what the problem is.  And seeing he's trying to put headers into a file, but then immediately overwriting by having a False going into the Append? input was a huge red flag.

0 Kudos
Message 57 of 75
(1,902 Views)

Smercurio fc do you have any tips on how I can solve my problem in Message #45. It seems like it runs the correct amount of times but when I try to display it, it only displays the amount in "Sweep X" it seems like everything in the nested for loop gets overwritten. Thanks 

0 Kudos
Message 58 of 75
(1,891 Views)

You have a false wired into the "Append to file" terminal.  That means that all of your data is going to be overwritten.  You need to have a true constant there so that in each loop iteration, it appends the data to the file.

National Instruments
Applications Engineer
0 Kudos
Message 59 of 75
(1,855 Views)

Scott I attached the output i'm getting, It's not making sense. 

0 Kudos
Message 60 of 75
(1,849 Views)