Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I retrigger AO Waveform Gen., using VB 6.0?

Hi,

I have an incoming analog wave, connected to PFI0
Now, every time my in incoming signal reaches a certain value I would like to output a wave.
So far I could only trigger it once.

I am using a PCI-6110 card and VB 6.0

At the moment the code lookslike this:

With CWAO1
.Device = 1
.Channels.RemoveAll
.Channels.Add 0
.UpdateClock.Frequency = SampleFreq
.NUpdates = BufLen
.Infinite = False
.NIterations = 1
.AllocationMode = cwaoHostMemory
.ProgressEnabled = False
.StartCondition.Type = cwaoDigitalPFI
.StartCondition.Source = "PFI0"
.StartCondition.Mode = cwaoRising
.AutoSelectProgressInterval = False
.Configure
.Write WholeBuffer
.Start
End With

Any suggestions or help would be much
appreciate. Thanks!

Dirk
0 Kudos
Message 1 of 2
(2,626 Views)
Dirk;

That unfortunately can't be done, with a hardware timed accuracy, by using just one DAQ device.
You will need to use a TIO board, together with the 6110 you already have.
The TIO board will be configured to do a retriggerable finite pulse train generation, and the trigger pulse will be the signal called AI Start Trigger coming from the 6110 board. You will need to route the AI Start Trigger from the 6110 to one of the RTSI lines, and route that same line to the gate input of the first counter of the TIO board. Then, the output of the second counter, the counter that generates the finite pulse train, will need to be routed to be the AO Update clock of the 6110.

You will also need to set the number of pulses of the finite pulse train generation to b
e the exact number of points you need the Analog Output channel to output.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,626 Views)