02-23-2010 02:55 PM
Hi guys,
I am trying to display a correct impulse response in Labview . The attachment is the VI code I used and its block diagram. This VI code performs the transfer function in the front panel when the time domain switch is off. This part is correct. When I displayed the impulse response with the XYgraph.vi, I got a problem.
For example, in the frequency domain, The initial conditions of the VNA were:
meas: S21
start: 1GHz
stop:5GHz
points: 1601
In the time domain, I should get the impulse response with the total length 400ns (1/((stop-start)/(points-1))). Without setting the range of impulse response, the default start and stop points are -20ns and 20ns respectively. Thus, I set the start point at 0s and the stop point at 400ns. However, the result only showed me 320ns. I found the problem is that when the time domain switch is on, Labview ignore the frequency start point and assume it is equal to 0 Hz. The calculation of the total length of the impulse response became (1/((stop - 0Hz)/(points-1)). I will appreciate that if you give me some suggestions to fix this problem. Thank you.
02-23-2010 03:20 PM
02-24-2010 01:59 PM
Hi,
First, when posting a sample VI, please just post the portion of the VI that is giving you problems. If you have a sample set of data too, that would be helpful. Lastly, keep in mind that if you are using an instrument driver, then most likely other users won't have those VIs so some description would be helpful.
From what I understand about your post, the data in the cluster is correct, but the graph is not what you expect, is that correct? From the code it was difficult to tell what you were plotting against what. Where do the time/data points come from? You should also consider using a chart instead of a graph, since charts have history, and graphs will only "remember" what is currently showing
03-01-2010 06:46 PM
Hi Marti,
Thank you for your advise. You are correct. The data in the cluster is correct, but the graph is not what I expect.
I already modified the Vi I used. I hope it is easy to understand this time. Please refer to the attached files. In 16362testing.vi, I use a case structure to decide whether the instrument running in time or in frequency domain. When the time domain switch is off, start and stop frequencies are inquired respectively so that each frequency point in X axis can be calculated. When the switch is on, each time point can be acquired.
However, I only consider the start time is at 0 s and the stop time is the length of one time period of an impulse response. I know this is not good approach. If I change start and stop time to some arbitrary numbers, the time axis will be wrong. For example, Assuming that frequency bandwidth from 1-4 GHz with 1601 points, based on the calculation in the VNA, one time period is equal to 533 ns (=1/((4 GHz -1 GHz)/(1601 - 1))). If I decide to show the impulse response from 0s - 400ns, I will get wrong time axis because the time interval is calculated by ((400ns - 0s)/(1600 - 1)). Do you have any suggestions??
By the way, would you please give some examples using chart, instead of XY graph?
03-02-2010 06:20 PM