Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-Function-Ctr Retrigg Pulse Train Generation for AI Sample Clock.vi on USB-6221

I'm unable to get this shipping example to read any AI data on a USB-6221.

 

Does the 6221 have some limitations not noted in the example VI's documentation?    I'm using the default front panel settings, Counter Channel = ctr0, Clock Source = Ctr0InternalOutput, Trigger Source = PFI0.

0 Kudos
Message 1 of 6
(3,676 Views)

Hi RLD,

 

What signal are you using to trigger the finite acquisition on PFI0?  Did you check and make sure that trigger is firing?  Is there any errors thrown by the example when you run it?  The USB-6221 is listed as supported by this example, so no limitations exist in particular for that device and this example. 

Kyle A.
National Instruments
Senior Applications Engineer
0 Kudos
Message 2 of 6
(3,667 Views)

I'm running the example just as it loads, with all of the front panel controls in their default state.  Are you saying that that the PFI0 pin must be physically connected to an external trigger signal?  I was interpeting the instructions to mean that AI scans were being retriggered by an internal clock.

0 Kudos
Message 3 of 6
(3,662 Views)

The way this example works is that the CO Frequency task creates a finite retriggerable pulse train that begins when PFI0 has a digital rising edge.  If you wish to create this clock internally, I would imagine you could make an AO dummy task and use the AO timing engine to create a clock to use as the trigger source for the CO Frequency task.  Otherwise, this example is initially assuming you have an external signal triggering the AI collection, whether it be asynchronous or synchronous pulses.

Kyle A.
National Instruments
Senior Applications Engineer
0 Kudos
Message 4 of 6
(3,656 Views)

Alternatively, the Frequency Generator (FreqOut) could trigger the AI sample.  Couldn't it?  (Limited by the frequency range supported by the Frequency Generator function.)

0 Kudos
Message 5 of 6
(3,604 Views)

Hello RLD,

 

Just to clarify, are you looking to acquire x analog samples at one rate that are seperated by some delay at another rate? See below:

 

retrig.png

If so, you can certianly do so as you described and control the delay using your Frequency Generator (FreqOut).  You would simply need to create another counter task to control the frequency of your FreqOut and specify the trigger source on the counter in the example (the one that creates the clock for the analog input task) as /Dev1/FrequencyOutput, where Dev1 is your device alias in Measurement and Automation Explorer (MAX). 

 

If you are looking to do something different, please let us know and we will be happy to help out.

 

Regards,

Paul C.

 

0 Kudos
Message 6 of 6
(3,595 Views)