LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Time Response Data VI

Solved!
Go to solution

Hi guys,

I am trying to use CD Get Time Response Data VI in my VI. When I choose the Input-Output Pair, I can obtain the response data determined by the input numerical value for the Ouput. However, I need more than one pair of response data. I try to use the Input-Output List, but there is no response data and time output from the VI with 1-D array of  numbers.

My question is how to use the CD Get Time Response Data VI with  the Input-Output List setup? Thanks.

0 Kudos
Message 1 of 9
(3,058 Views)

Hey Shapiro,

Have you seen the help document located here:http://zone.ni.com/reference/en-XX/help/371894F-01/lvctrldsgn/get_time_response_data/? Would you be able to provide more specifics about which part of the setup you are not clear on or what behavior you are seeing that you don't expect?

 


 

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 2 of 9
(3,044 Views)

Hi Kevin,

 

Thank you for your reponse. I have read the help document that you provided when programming. I attach a figure to show my block program here.

Figure.jpg

 

There are nine response data out of the Linear Simulation VI, and they are correctly shown in XY Graph. When I use the IO Pair, I can obtain the first column of the data. However, there is no data outputs from the IO List. How to setup the output list to the Get Time Response Data VI under IO List?

 

Thanks.

0 Kudos
Message 3 of 9
(3,028 Views)

Hey Shapiro,

I think the issue is that you need to populate both the input an output arrays with values. If you open up the IO List VI you will see that if either array is empty the VI won't return data.  Please let me know if you have additional questions with this.

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 4 of 9
(3,020 Views)

Hi Kevin,

I add another list 1-D array [0] to the input of the VI. I can get the output data now, but it seems that the output data is repeated once like in pair. So I need to use the Array Subset to obtain half of the data because of the repeated outputs. Is ther anything I missed during setup?

0 Kudos
Message 5 of 9
(3,008 Views)

Hey Shapiro,

Can you provide an example of the format of the output data and your complete VI? I am not sure without seeing the code why this may be occurring. 

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 6 of 9
(2,997 Views)

Hi Kevin,

 

Thank you for your help. I have attached a VI file with this reply. You can find that the size of the response data is doubled. The real output data of the SS VI should be nine channels instead of eighteen based on the C and D matrix.

 

Best,

Jiazeng

0 Kudos
Message 7 of 9
(2,990 Views)
Solution
Accepted by topic author Shapiro

Hey Shapiro,

I think the issue is that you have two 0 elements in the top array so you will be outputting that data set twice. Let me know if this does not fix the issue for you.

 

 

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 8 of 9
(2,979 Views)

Thank you Kevin. I redefine the input list and it works now.

0 Kudos
Message 9 of 9
(2,977 Views)