LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Analyzer labview program

You need to have a source 2D array. Otherwise it's replacing empty space. Please look at the documentation on Replace Array Subset and look at the VI I wrote again.

0 Kudos
Message 31 of 75
(2,083 Views)

Never mind.

0 Kudos
Message 32 of 75
(2,075 Views)

It doesn't let me connect my array for Frequency to the initialize array function? I attached a copy of the program

0 Kudos
Message 33 of 75
(2,065 Views)

It doesn't let me connect my array for Frequency to the initialize array function? I attached a copy of the program

Download All
0 Kudos
Message 34 of 75
(2,065 Views)

You can't initialize an array with an array.

 

You can initialize an array with a scalar.  And if you want a 2-D array, then drag the lower edge of the Initialize array function down to add another index to wire up.

0 Kudos
Message 35 of 75
(2,055 Views)

When i run the program I'm not getting proper values it seems like it has to do with the shift register but im not sure. 

0 Kudos
Message 36 of 75
(2,022 Views)

You are initializing the 2D array with an integer datatype. That's not what I did in the code I sent you. As a consequence, the Replace Array Subset is coercing the floating point values to integers. Pay attention to those red dots, indicating coercion, and the colors of wires (blue = integer, orange = floating point).

0 Kudos
Message 37 of 75
(2,014 Views)

Do you know how i can add headers to each of the columns? 

0 Kudos
Message 38 of 75
(2,011 Views)

Another question i had is that everytime i run the program i have to constantly save it on the same file. Is there anyway I can just save it one time. 

0 Kudos
Message 39 of 75
(2,005 Views)

 


@arthur51189 wrote:

Do you know how i can add headers to each of the columns? 


 

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.

 

 


Another question i had is that everytime i run the program i have to constantly save it on the same file. Is there anyway I can just save it one time.

Use a shift register instead of a tunnel for the path.

 

0 Kudos
Message 40 of 75
(1,984 Views)