Hello HeartShield,
I would like to first re-state your question, please correct me if this is not your question:
1. If Channel 0 (which contains Lines 0 to 7) is set ON by program#1 then Channel 1 (which also contains Lines 0 to 7) is set ON by program#2
then Channel 0 is set to OFF.
Here is what could be happening:
If you are writing less than a byte (8 Lines) to, say, Channel 0, then it will write out a entire byte anyways.
So if Channel 0 and Channel 1 overlap in Lines, and you write to part of Channel 0 then it will write out to the entire Channel 0
and possibly change the state of Channel 1.
Additionally, in MAX when you create the virtual channels for Labview. You can set the inversion state of digital lines, possibly Channel 1 has inverted logic from Channel 0.
Try the examples that ship with Labview for Traditional NI-DAQ, Write to 1 Dig Port.VI.
Save 2 copies of this program, program1 and program2.
Run these 2 copies and you should be able to write to the digital port from either program without a problem and demonstrate what I've said above.
This example program can be found: Run Labview->Help menu->Find Examples->Browse According to Directory Structure->daq->digital->
What NI hardware, version of Labview and version of Traditional NI-DAQ drivers are you using?
Thank you, have a great afternoon!
Best regards,
MatthewW
Applications Engineer
National Instruments