04-02-2012 11:54 PM
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.
Solved! Go to Solution.
04-03-2012 01:43 PM
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?
04-03-2012 03:27 PM
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.
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.
04-03-2012 04:36 PM
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.
04-03-2012 10:56 PM
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?
04-04-2012 12:54 PM
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.
04-05-2012 06:11 PM
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
04-06-2012 08:28 AM
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.
04-06-2012 10:32 AM
Thank you Kevin. I redefine the input list and it works now.