05-23-2023 10:46 AM
I'm getting error -29038 when I use "niSE Disconnect All.vi" to clear all channels of my MUX Virtual Expansion 128 channel mux with single channel exclusion. Each NI mux card is 64 channels, each card's com0 channel is physically connected together. When I open a virtual session, close 1 of 128 virtual channel, execute Disconnect All vi, the vi throws -29038 error on the second mux. (I closed a channel on the first mux but they are Virtual right).
Now it makes sense to me if I have channel exclusion on all channels of the virtual mux, at any time there is only 1 channel closed. This vi should close that channel on either mux since its Virtual mux if I have this correc.
niSE Disconnect All.vi
This is the error.
05-30-2023 11:16 AM - edited 05-30-2023 11:17 AM
OK, looks like the Virtual MUX is working as it should for "niSE Disconnect All.vi". If I run the VI exclusively "niSE Disconnect All.vi" is error free. If I open both a Virtual Session and a PXIe Alias name session (non-virtual) then "niSE Disconnect All.vi" will throw the error shown above. This makes sense since either session should be exclusively used.
But wait, I didn't get an error when commands to close/open a channel using a Virtual Session and PXIe VISA session are interchangeably used. Therefore, software rules of least privilege, is not enforced for this case. I was thrown a curve ball when "niSE Disconnect All.vi" VI errors obeys least privilege rules.