Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Tri-State on 6221

I am interfacing a device that requires that its serial address be set by driving 4 pins low.  To unassert, I must set my outputs to Tri-state.

 

What I am doing is to create a digital output task comprised of 4 channels, set to "One channel for each line".  When I set the port, I first set the outputs with the DO Set port, then I use the ActiveChannels property to set only the subset of channels I need to triState.

 

What I have seen is this:  If I run a single VI that has no loop and just calls the task init + the tristate code, then ends execution, the tristate is set.  If I run this in a loop, without calling Clear Task or re-initializing the task, the first call works, but then subsequent calls do not.

 

What do I need to do to allow the port to be reset after setting tri-States?
0 Kudos
Message 1 of 2
(3,287 Views)
Whoops.  I was not un-setting the tristate on subsequent calls.  Haha.
0 Kudos
Message 2 of 2
(3,286 Views)