Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Streaming serial data from PXIe-6535

I am trying to stream data from a single DIO line of a PXIe-6535. I want to stream the same data continuously, on a loop. I have set up a DAQmx channel to stream 'one channel for each line,' 'Continuous Samples,' and 'Digital U32 1Chan 1Samp.' I have also tried 'Digital Bool1Line 1Point.' My problem is that the uint32 configuration only appears capable of putting 1 bit from the int onto the line. For example, if I am trying to write an int onto port0 line2, (and I may be mistaken here), it can only put the third bit  of the int onto the line, and the rest of the data is lost. If I try the boolean output, the task only writes a single bool value to the channel, no matter how many times the DAQmx Write vi is called, and this does not generate an error.

 

For the uint32 case, am I missing something regarding the fundamental operation of the DIO? Is it really incapable of writing serial data?

 

For the bool case, and this may be a simple labview question, do I really have to start and stop the task between every single bit? Why wouldn't the bit just be written to the channel as it comes in to the DAQmx Write vi? I have not seen any example code of what I'm trying to do here.

 

Another odd point is that when using the single sample option, I have to pre-load the buffer with at least 4 samples before streaming. This is not clear in any documentation or tutorials that I have seen. 

0 Kudos
Message 1 of 3
(94 Views)

See Read or Write Digital Data in Integer Format in DAQmx

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 3
(65 Views)

Thank you for the link. That confirms what I observed in experimentation. My question is, how can serial data be written?

0 Kudos
Message 3 of 3
(56 Views)