Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI 6289 counter output synchronization

I am trying to synchronize outputs on the PXI-6289 DAQ card. I am using the 32 Port1 lines as DIO lines, and they cannot be used for control lines. I use the 2 counters to output 2 clock signals, one at double the frequency of the other. These clock signals are then used to drive some logic on an external card which drive a series of latches. My issue however is that I need to synchronize the input/output of port 1 with the clock signals, so that all data is changing on the edge of the fast counter clock and the right data is sent to the correct latch.

 

Currently I am doing this by setting everything up to start on an edge trigger, which I trigger by driving one of the PFI lines, which is in turn routed to one of the trigger lines high, and then low. This works, but because I need to be able to do this in the kHz range, it is not fast enough. I have to reconfigure the card everytime I want to output/input some data, which ultimately leads to me getting an output rate of ~17-18Hz.

 

I have tried using Finite samples from the counters, but because I need 2 counters to achieve this on one output, it does not work for me. I have also tried using a pause trigger for the counters, but cannot get the edges to synchronize, so ultimately my data could be put out on any edge. Has anyone got any ideas of how I could over come this? I have 4 PFI lines left free now, lines 10,11,14 and 15. All other lines are used as clock outputs/ Latch control lines. 

0 Kudos
Message 1 of 3
(3,145 Views)

Havn't done that specifically, but I'd try to use the DIO as a waveform and use the counter as the sample clock (in LV, use a property node on the DIO and select sample clock). This worked to sync the DIO to an AI/AO (ai:sampleClock) for me.

 

Felix

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

Thanks for your help Felix. I have already set up the counter as the sample clock for the DIO, but I what I need is to be able to turn on and off this clock as very specific times. Unfortunately setting it to use a Finite number of samples utilises the other counter too, which I require as a seperate signal out. Therefore I am left trying to configure the Pause Trigger, but cannot get the exact control I  need over this signal.

0 Kudos
Message 3 of 3
(3,116 Views)