取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
31 条消息(共 75 条)
2,687 次查看

Never mind.

0 项奖励
32 条消息(共 75 条)
2,679 次查看

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

0 项奖励
33 条消息(共 75 条)
2,669 次查看

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

0 项奖励
34 条消息(共 75 条)
2,669 次查看

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 项奖励
35 条消息(共 75 条)
2,659 次查看

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 项奖励
36 条消息(共 75 条)
2,626 次查看

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 项奖励
37 条消息(共 75 条)
2,618 次查看

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

0 项奖励
38 条消息(共 75 条)
2,615 次查看

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 项奖励
39 条消息(共 75 条)
2,609 次查看

 


@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 项奖励
40 条消息(共 75 条)
2,588 次查看