youngwater
2008-07-27 19:40:07 UTC
Hello,
I am using PCI 6251 and SCB-68pin E series connections and Labview 8.I have got 2 analog input channels (I'll call them AI-1 and AI-2)
AI-1 is a chirped (FM modulated) sinusoidal. the frequency is chirped around 200kHz.
on (AI-1), I realised Retriggerable Acquisition by using an example program (NI-DAQmx:Retriggerable AI Using Counter and an Analog Trigger, Filename: <a href="ftp://ftp.ni.com/pub/devzone/epd/retrigg_ai_analogtrigger.vi" target="_blank">retrigg_ai_analogtrigger.vi</a>).
for the moment, the program does nothing about AI-2.
I would like to add the following functionality to this program:
-a sw trigger (or sampling clock?) is generated each time the (chirped) sinusoidal on AI-1 makes a rising-edge-zero-crossing.
-this trigger (or sampling clock) is used for sampling second analog input channel (AI-2). That is to say, ONE sample is taken from AI-2 each time the signal on AI-1 makes a rising-edge-zero-crossing.
- as the AI-1 is a chirped sinusoidal, the step intervals between successive sampling points on AI-2 will be unequal.
- these unequal sampling intervals and sampled data values are written into a file for further signal processing.
in order to clarify the application, I would like to express it as follows:
my signal on AI-2 is called U(t)
t(i): is the time at which the ith data point is taken
t(i)=t_0 + i * Delta
Delta: is the time interval between data points.
Delta is NOT equal for the samples.
I need two arrays written into a file:
U[t(i)]: data points
and
t(i)
in the application the data acqusition on AI-1 will be kept as a retriggerable controlled by an external trigger (trigger period is about 200ms)
I really can not see how the tasks defined above to be embedded into the program so that the acquisition on AI-2 will be contolled by the data of AI-1 in real time between two external triggers.
any help will be highly appreciated!!
thanks in advance.
regards,
I am using PCI 6251 and SCB-68pin E series connections and Labview 8.I have got 2 analog input channels (I'll call them AI-1 and AI-2)
AI-1 is a chirped (FM modulated) sinusoidal. the frequency is chirped around 200kHz.
on (AI-1), I realised Retriggerable Acquisition by using an example program (NI-DAQmx:Retriggerable AI Using Counter and an Analog Trigger, Filename: <a href="ftp://ftp.ni.com/pub/devzone/epd/retrigg_ai_analogtrigger.vi" target="_blank">retrigg_ai_analogtrigger.vi</a>).
for the moment, the program does nothing about AI-2.
I would like to add the following functionality to this program:
-a sw trigger (or sampling clock?) is generated each time the (chirped) sinusoidal on AI-1 makes a rising-edge-zero-crossing.
-this trigger (or sampling clock) is used for sampling second analog input channel (AI-2). That is to say, ONE sample is taken from AI-2 each time the signal on AI-1 makes a rising-edge-zero-crossing.
- as the AI-1 is a chirped sinusoidal, the step intervals between successive sampling points on AI-2 will be unequal.
- these unequal sampling intervals and sampled data values are written into a file for further signal processing.
in order to clarify the application, I would like to express it as follows:
my signal on AI-2 is called U(t)
t(i): is the time at which the ith data point is taken
t(i)=t_0 + i * Delta
Delta: is the time interval between data points.
Delta is NOT equal for the samples.
I need two arrays written into a file:
U[t(i)]: data points
and
t(i)
in the application the data acqusition on AI-1 will be kept as a retriggerable controlled by an external trigger (trigger period is about 200ms)
I really can not see how the tasks defined above to be embedded into the program so that the acquisition on AI-2 will be contolled by the data of AI-1 in real time between two external triggers.
any help will be highly appreciated!!
thanks in advance.
regards,