LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Analyzer labview program

 


@Scott W wrote:

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.


 

 

No, that will not work. You HAVE to look at the file output format he wants. This was posted all the way back in message #17. Because of this format, you either :

 

  • Do what I said in message #40 (I feel like a broken record)
  • Write out the headers based on the grid size, and then write out the ENTIRE 2D array of numbers after the loop.

The latter is easier in terms of coding, at the expense of memory. See attached modification of my example.

0 Kudos
Message 61 of 75
(2,059 Views)

How about for my problem in Message 45? 

0 Kudos
Message 62 of 75
(2,048 Views)

If this person is really having this hard of a time trying to get his VI to work with whatever file format he is asking for, maybe it would be easier if he just scrapped the whole idea of the file format he is trying to write, and come up with a better file format where it is easier to append the data as it is created.

0 Kudos
Message 63 of 75
(2,037 Views)

You think this would be an easier output

0 Kudos
Message 64 of 75
(2,026 Views)

First, write out the headers.

Then let the frequency be constant at its first point, do your loop to go through the 4 magnitude and phase calculations.  Write out the line appending to the file.

Then in your outer most loop, go to the next frequency, and then loop throught he 4 magnitude and phase calculations again.  Write out the line appending to the file.

 

 

Loop until you've swept through the frequencies.

0 Kudos
Message 65 of 75
(2,021 Views)

This is the output i get

0 Kudos
Message 66 of 75
(2,016 Views)

It looks like you didn't write out the frequency on each row.

0 Kudos
Message 67 of 75
(2,012 Views)

I don't understand why the frequency values would be displayed on the bottom

0 Kudos
Message 68 of 75
(2,006 Views)

Because you programmed it that way.

 

This is something you are going to have to debug yourself.

 

Put probes on your wires to see what values are in each wire.

 

Turn on Execution Highlight (the light bulb) to slow down the execution of your code and watch the data flow.

0 Kudos
Message 69 of 75
(2,002 Views)

Can u check my code? 

0 Kudos
Message 70 of 75
(1,994 Views)