Hi den,
what means "write it only if is different by zero"? Do you want to read the data from the port and send some data when the value is not zero, or do you want to wait until data is in the buffer and send then some data?
How to synchronize VIs look in help of LV under "VI and Function Reference>>Advanced VIs and Functions>>Synchronization VIs and Functions". There will be some examples too.
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions