09-19-2023 12:15 AM
Hello , I want to reset all my PXI SMUs using a single VI . i HAVE MADE A VI FOR THAT BUT THAT VI OPENS A SESSION FOR EACH CARD ,RESETS IT ,CLOSES IT .This takes a significant amount of time in a for loop . Can someone suggest a method where i open a session only once reset all cards ,and close it also at once ,thus saving time as I have 12 cards.
Thanks in advance.
Solved! Go to Solution.
09-19-2023 07:53 AM
You can use NI System Configuration API instead.
Help >> Find Examples... >> Hardware Input and Output >> System Configuration >> Reset All Devices.vi
You can add an expert filter to filter out the SMU.
09-19-2023 10:54 AM
You can parallelize the For Loop to speed things up.
The explicit reset seems redundant as the Initialize VI already has a boolean for Reset which you can set to True.
09-19-2023 11:18 PM - edited 09-19-2023 11:18 PM
Hi Santhosh,
Thanks .I have been to reduce the time from 62seconds to 27 seconds now with your method to parallelize the for loop . Is there any way to furthur reduce it . I will also try ZYOng method and update you all.
09-20-2023 02:14 AM
So Santhosh method was fastest among the two solutions I got.
09-20-2023 10:46 PM
Latest NI DCPower drivers support multi-instrument sessions, try formatting the instrument alias to be comma separated and include all the instruments you want to reset.