12-10-2007 02:09 PM
12-11-2007 06:17 AM
12-11-2007 07:00 AM
12-11-2007 07:33 AM
For the minor case, the switch driver will maintain the relay state between runs of your program. You only need to rerun your program (if it crashes) but your program needs to not call setTopologyAndReset to allow the driver state to continue from where you left off. You can do this by just relying on the default topology as set in MAX and then removing the setTopologyAndReset call from your program.
For the major case, you need to maintain a cache of the relay state yourself and then reinstate it after the reboot, since the driver will open all for this case.
Brian
12-12-2007 09:09 AM
10-12-2012 12:54 PM
I am using the niSwitch <Initialize with topology.vi> driver which has the option to reset the PXI switch module. However, when I wire a False (no Reset) to the control, it gives me error -1074135021 stating that the device has to be reset when the VI is run.
I have an application where I need to open/close 1 switch but keep all the existing switches in their current states. I am looking for a way to resolve this.
10-12-2012 01:51 PM
palpro,
I couldn't reproduce this error, I think I need some more information.
Which version of the NI-Switch driver are you using?
Which switch module and topology are you using?
You should be able to initialize an NI-Switch session without resetting the switch as long as it is set to the same topology.
- Marshall