First page Back Continue Last page Graphics
Scaling the Measurements
- ScanEngine Explorer Script
- New Variable well init
- New Variable booster init
- >Assign RepeatTimer = 6
- Repeat
-
- >Assign IP = 192.168.2.252 //PIC board
- >Assign HTTPPage = jsdata.cgi
- >Assign HTTPSitename = "Well Monitor"
- >Assign HTTPUsername:Password = admin:pw
- Fetch
-
- If HTTPReplyCode == 200
- // process received data
- // normalize pump circuit current to amps
- Assign well = 0.007166667*Object.AdcValues0
- Assign booster = 0.007166667*Object.AdcValues1
- Else
- // no data received
- EndIf
- Define script variables for measured AdcValues for well and booster pump currents
- Scale the AdcValues to current in amps
- The measured values may be properly scaled to current (A), or apparent power (VA)
- With a web page scraping script defined for the name of our fetched page (jsdata.cgi), our script can reference (with “Object.” suffix) the scraped data