08-04-2010 12:11 PM - edited 08-04-2010 12:12 PM
@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 :
The latter is easier in terms of coding, at the expense of memory. See attached modification of my example.
08-04-2010 12:21 PM
How about for my problem in Message 45?
08-04-2010 12:27 PM
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.
08-05-2010 12:32 PM
You think this would be an easier output
08-05-2010 12:56 PM
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.
08-05-2010 01:34 PM
This is the output i get
08-05-2010 01:43 PM
It looks like you didn't write out the frequency on each row.
08-05-2010 03:19 PM
I don't understand why the frequency values would be displayed on the bottom
08-05-2010 03:37 PM
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.
08-05-2010 04:38 PM
Can u check my code?