How to use script methods
i want to track the power usage over last 7 days, so I made 7 virtual devices 9P1-P7), at midnight, I copy 6-77 5-6, etc. I then want to reset the accumulated value on ECM1240
I tried the following (assuming this works with the 1240):
I get this error:
424:Object required in line 10 More info: Object required
Can anyone tell me how to fix?
Regards
mark
i want to track the power usage over last 7 days, so I made 7 virtual devices 9P1-P7), at midnight, I copy 6-77 5-6, etc. I then want to reset the accumulated value on ECM1240
I tried the following (assuming this works with the 1240):
Code:
Sub Main hs.setdevicestring "P7", hs.devicestring("P6") hs.setdevicestring "P6", hs.devicestring("P5") hs.setdevicestring "P5", hs.devicestring("P4") hs.setdevicestring "P4", hs.devicestring("P3") hs.setdevicestring "P3", hs.devicestring("P2") hs.setdevicestring "P2", hs.devicestring("P1") hs.setdevicestring "P1", hs.devicestring("]6") hs.plugin("BLPowerMonitor").ResetEcm1220AccumulatedData() End Sub
424:Object required in line 10 More info: Object required
Can anyone tell me how to fix?
Regards
mark
Comment