Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Simultaneous waveform generation and data acquisition

Hi,
How can I synchronise analog waveform generation and analog data acquisition, using traditional NI-DAQ only ? I can't find anything in the user manual or in examples provided.
My device is a PCMCIA DAQ-Card 6062 E, under Windows XP ; and I work with Borland Delphi so please don't provide me Labview examples I can't open them.
Thanks !
0 Kudos
Message 1 of 4
(3,147 Views)
Greetings,

You will want to examine the following example:

C:\Program Files\National Instruments\NI-DAQ\Examples\Delphi\Synchronize\Synchronized AI AO Counter

Analog input operations and analog output operations can be synchronized by sharing a start trigger, clock, or both. The above example uses the AO Start Trigger as the AI Start Trigger. Thus, both operations will start at the same time.

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 4
(3,147 Views)
Hello,
Thanks for your answer, but all Delphi examples use ComponentWorks ActiveX controls and I'd like to perform these tasks using only NI-DAQ APIs.
I'm trying to use Select_Signal function and PFI's I/O, but I don't really understand NI's documentation..
0 Kudos
Message 3 of 4
(3,147 Views)
Unless you desire to provide the timing and/or triggering signals as outputs, you will want to use the RTSI bus to share these signals. You may want to consider one of the follow routes:

Using the output start trigger as the input start trigger:

Select_Signal (1, ND_RTSI_0, ND_OUT_START_TRIGGER, ND_LOW_TO_HIGH);
Select_Signal (1, ND_IN_START_TRIGGER, ND_RTSI_0, ND_LOW_TO_HIGH);

Using the input start trigger as the output start trigger:

Select_Signal (1, ND_RTSI_0, ND_IN_START_TRIGGER, ND_LOW_TO_HIGH);
Select_Signal (1, ND_OUT_START_TRIGGER, ND_RTSI_0, ND_LOW_TO_HIGH);

Using the output update clock as the input scan clock:

Select_Signal (1, ND_RTSI_0, ND_OUT_UPDATE, ND_HIGH_TO_LOW);
Select_Signal (1, ND_IN_SCAN_START, ND_RTS
I_0, ND_HIGH_TO_LOW);

ETC...

I hope this helps.

Spencer S.
0 Kudos
Message 4 of 4
(3,147 Views)