취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

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 포인트
61/75 메시지
2,919 조회수

How about for my problem in Message 45? 

0 포인트
62/75 메시지
2,908 조회수

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 포인트
63/75 메시지
2,897 조회수

You think this would be an easier output

0 포인트
64/75 메시지
2,886 조회수

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 포인트
65/75 메시지
2,881 조회수

This is the output i get

0 포인트
66/75 메시지
2,876 조회수

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

0 포인트
67/75 메시지
2,872 조회수

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

0 포인트
68/75 메시지
2,866 조회수

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 포인트
69/75 메시지
2,862 조회수

Can u check my code? 

0 포인트
70/75 메시지
2,854 조회수