LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronous UART using PCI-6251

Hello

 

I am a beginner using LabVIEW and I need to create a synchronous UART using the PCI-6251, meaning, using one digital I/O to generate clock while another one shifts the data bit-by-bit. It has to work as a master in a half duplex mode. (LabVIEW always providing the clock but data flowing in one direction at a time).

 

Could someone help me?

 

Thanks!

0 Kudos
Message 1 of 2
(2,608 Views)

Hello, 

 

It looks like your application is similar to the one in this forum. However the hardware in the forum is an X-Series in which the digital I/O has a dedicated sample clock and the PCI-6251 is an M-Series which requires you to provide the sample clock.  In order to accomplish what you are describing you will need to create a counter output task to use as your sample clock for the digital output and also to export on a PFI line.  An example of using a counter to correlate the digital output can be found by opening LabVIEW and navigating to Help»Find Examples»Hardware Input and Output»DAQmx»Digital Generation and selecting the Correlated Dig Write With Counter.vi.

 

Thank you,

 

Justin P 

Justin
National Instruments
Product Support Engineer - Conditioned Measurements
0 Kudos
Message 2 of 2
(2,598 Views)