ALTAIIRE,
In you main while loop, first read your port, check the value read and see
if any line has changed from the value you last read from or wrote to the
port. You can store the last value read or written into a shift register.
If the value read from the port has changed then update your control by
writing to a local variable of the control. If the value has not changed
do not write to the local variable. If the control has changed, but not
because the port change wrote to the local then write to the port. If that
condition is not met then do not write to the port. If you follow these
steps then you should be able to avoid a "race condition". Be careful though
because a "race condition" could make your port lines flicker like a christmas
tree
🙂-Jim
If
you VI doesn't work email it to me and I will help you out.
"ALTAIIRE"
wrote:
>>Hello,>I want to show on a screen 8 Digital values representing the state
of my>PCI6527 port. I need also to change the state of a digital output when
I>click on it.>On the LABVIEW examples, I only found examples to read OR
to write, BUT no>read/Write at the same time.>If somebody have a solution,
it would be great!>>Thanks.