Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Use array of variables to write digital port

I am trying to create a loop that sets the bits of a digital port ( DAQmx digital write VI) using

a different bit pattern each time through the loop. How can an array of variables be created that

the DAQmx digital write VI will accept and select the next variable as the loop progresses?

Thanks much for any help/suggestions...

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

You just need an array of numerics or a Boolean Array. Depends on the type of DAQmx Write you have selected. Here's an example based on the example called Write Dig Port.

 

Message Edited by Dennis Knutson on 11-13-2009 02:38 PM
Message 2 of 3
(3,417 Views)

Thanks Dennis. I appreciate the quick response, but I haven't had the chance to try your suggestion yet, and might not be able to for a week or so.

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