Hi,
I have a .net application that reads/writes ports in my ni6501 device.
I set some ports on port 0(door lock and powering on some devices), run my test and reset my ports.
For some reason, this is not working as expected, mainly resetting is not working and seems something may be reinitializing everything.
I am using 1 task for inputChannel and 1 task for OutputChannel in my device class.
Each task has input and ouputchannels defined.
I have GetState and SetState methods in my device class, where I set only the necessary bits, masking others and using WriteSingleSamplePort.
Each pin setting is a step and I initialize a device class instance for the operation.
Am I doing this correctly, any advise what may be going on? Can I get an example of a set bits, test, retest bits code?
Also, I have a read and a write in the same task on the same port, will this break something?