12-18-2017 08:30 AM
I am trying to control the "PXI_Trig0" using the ctr0 of a DAQ card PXIe-6366.
The trigger will be connected to the input trigger of the scope PXIe-5122 and starting the output generation a FGEN PXI-5412.
The problem is that after several tries the system complains that the PXI_Trig0 is in use when I try to start the crt0 (Error -89126) when this happens the only solution is to turn off the rack and boot again, doing so it works for a while but after some time debugging things the error pops up again.
Is there any way of reseting all the triggers of the rack?
Is there any way of visualize what triggers are reserved in each moment?
Thanks.
02-02-2018 07:14 AM
"Is there any way of reseting all the triggers of the rack?"
If the application doesn't properly clear the route before it closes, this can happen. Be sure your application undoes whatever routes it creates before it shuts down.
If this happens because an application is shut down unexpectedly, you can clear all outstanding routes on the PXI backplane by restarting the "PXI Resource Manager" service in the Windows Services Manager. Just bear in mind that this should really only be done as a debugging step, because it undermines routes and reservations that may be expected by other running applications. For production, update your application to clear the routes on exit.