05-27-2015 12:55 PM
mprusak,
Yes it should be doing the same thing.
Is the confusion that the "DAQmxSwitchSetTopologyAndReset" function call does not change the value of the topology that is configured it MAX?
The expected behavior of "DAQmxSwitchSetTopologyAndReset" is that for that instant, the current topology is changed to whatever you specify. The configured topology does not ever change unless you open the configuration menu in MAX. I believe the suggestion is that you should use "DAQmxSwitchSetTopologyAndReset" every time that you plan on using the switch so that each time you talk to the switch it is in the correct topology that you need.
You can verify that "DAQmxSwitchSetTopologyAndReset" function does as you expect by the following.
05-27-2015 01:06 PM
Thanks Frank! I was looking for the topology to change in the configuration menu, so that was throwing me off. I can verify that the call does change the topology by viewing the Test Panel, as you pointed out. Also, it does seem that this persists when MAX is closed and a new instance is opened again.