I am using power monitor to test current, and I want to do some simple testing via automated commands Before test, I need to send some command to machine via usb, then the current test need remove usb(When connected to USB, the machine will be charged, affecting the results)
From the documentation, I found that USB PASSTHROUGH can be manually configured to be on or off to do this, then I tried to do this via cmd to auto do this, the cmd as below:
<code>PowerToolCmd.exe /USBPASSTHROUGH=ON /USB=ON /savefile=datafile.pt4 /trigger=DBA300A500TYC20000A500 /vout=4 /KEEPPOWER /NOEXITWAIT
</code>
<code>PowerToolCmd.exe /USBPASSTHROUGH=ON /USB=ON /savefile=datafile.pt4 /trigger=DBA300A500TYC20000A500 /vout=4 /KEEPPOWER /NOEXITWAIT
</code>
PowerToolCmd.exe /USBPASSTHROUGH=ON /USB=ON /savefile=datafile.pt4 /trigger=DBA300A500TYC20000A500 /vout=4 /KEEPPOWER /NOEXITWAIT
Then I got the issue:
It will get stuck on this page and not disconnect the USB