05-18-2023 12:11 AM
I am trying to use NI DC POWER RESET DEVICE.VI to reset my PXIe cards without using NI MAX but when i run the vi , the following msg pops up.
05-18-2023 08:18 AM
Please attach your code. We cannot debug an image. We can't even know what's wrong with your code without the block diagram.
You can also reset the device using the NI System Configuration API (the driver for NI MAX). See <LabVIEW>examples\nisyscfg\Reset All Devices.vi
You can use dcpowerscx as the filter experts.
05-19-2023 05:39 AM - edited 05-19-2023 05:40 AM
Sorry for the inconvience but the problem was I was not initializing the instrument handle that's why it was giving error .I have now initialozed it nidcpower initialize with channels and it is working fine but I can reset the cards one by one and when I try to implement it in python , sometimes it gives error like
"There is already a session open to the device from another process, or a calibration session is open. You must close the open session, exit the application holding the device, or release the device in the Soft Front Panel."
I am attaching both the implementations:
PYTHON CODE
05-19-2023 08:54 AM
Did you call niDCPower Close VI or my_session.close explicitly at the end of your code? LabVIEW might release the resource automatically for some drivers if it is a top VI. However, this feature is not available for text programming and you need to release the resource explicitly.