LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Counter To Read Bit Stream (PXI 6229 DIO)

I am sending a packet of data of 8 bits into a counter PFI line using the PXI 6229 card.  Is there a way to read the bit pattern and return it back in hex using a counter buffer?  How would I go about doing that?

 

Example: Input = 10101111 binary => PXI 6229 Counter PFI Line => PXI Ctr Buffer Response = 0xAF

 

Thanks!

0 Kudos
Message 1 of 3
(729 Views)

You can use the counter to generate the sample clock for the digital input task and then read the data as U8. I think M Series Hardware-Timed DIO with Counter Clock Generation fits your requirement perfectly.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 3
(715 Views)

You would need a way to sync up the timing between the sender and receiver. 

 

Is there a clock signal that presents an edge only when the data signal has a valid bit value?   If so, a simple DI task that uses the clock as a sample clock would work nicely for the capture.

 

Is there a known transmission rate and some kind of start/stop indication, along the lines of RS-232?  Then you might get by with just a counter doing semiperiod measurement.   Or perhaps you'd use a counter to generate a sample clock for a DI task.

 

What scheme is available for syncing up the timing?

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy coming to an end (finally!). Permanent license pricing remains WIP. Tread carefully.
0 Kudos
Message 3 of 3
(695 Views)