01-19-2023 08:31 PM
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!
01-19-2023 08:59 PM
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.
01-19-2023 10:33 PM
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