04-01-2010 01:27 AM
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?
04-01-2010 01:43 AM