Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronous NI PXI 4472 and 6602

Hi,
I am using 4472, and the timer 6602 as external clock, the output of 6602 is connected to channel(0) of 4472, I implemented the timing function of 4472 as following:
 
DAQmxCfgSampClkTiming(handle,"Dev1/a0", sample_rate, activeEdge,samplemode,sampPerChanToAcquire);
 
but  I got an error code about the terminal name ,"Dev1/a0", I don't know what is the problem,
also, I want to store the acquired data on disk, I couldn't find the appropriate function in NI-DAQmx C reference.
 
thanks for helping
Amna
0 Kudos
Message 1 of 2
(3,186 Views)

Hey Amna,

There are special channels for connecting an external signal as a clock for sampling an analogue input on your 4472. These are the PFI-lines on your card. So you need to wire the output from the 6602 to one of the PFI lines of your 4472 and configure your 4472 to take the signal on that specific PFI-line as for instance the sample clock.
You cannot take one of your cards analogue inputs (which are named "Dev1/ai0" and so on) for bringing your clocksignal into the card.

You'll have to search for the save data to disk function in your API. The NI-DAQmx C reference is only the driver for the data acquisitioning card and will not contain this information.

Regards,
WVH
National Instruments

0 Kudos
Message 2 of 2
(3,177 Views)