thanks
Latest posts made by turboblade
-
Power Curve
I am currently using Mango as a SCADA interface with a number of Wind Turbines. I would like to be able to produce a Power Curve for each Wind Turbine. This is basically a graph showing discrete "Wind Speeds" along the x-axis, with corresponding average "Power Output" along the y-axis.
"Wind Speed" and "Power Output" are two values that are polled from each Wind Turbine every 10 seconds and logged in the database.
As I see it this is a four step process:
- Search the database for each occurrence of each discrete "Wind Speed" and record the corresponding date/time stamp
- Use these date/time stamps to lookup all of the "Power Outputs" that occurred against each "Wind Speed"
- Take an average of the "Power Outputs" against each "Wind Speed"
- Plot the "Power Output" averages against each of the discrete "Wind Speeds" on a graph
eg as shown below
This can be done manually using csv exports and lookup tables in excel. But does anyone have any ideas how this process could be automated by Mango.
Thanks
-
RE: Power Curve
I am currently using Mango as a SCADA interface with a number of Wind Turbines. I would like to be able to produce a Power Curve for each Wind Turbine. This is basically a graph showing discrete "Wind Speeds" along the x-axis, with corresponding average "Power Output" along the y-axis.
"Wind Speed" and "Power Output" are two values that are polled from each Wind Turbine every 10 seconds and logged in the database.
As I see it this is a four step process:
- Search the database for each occurrence of each discrete "Wind Speed" and record the corresponding date/time stamp
- Use these date/time stamps to lookup all of the "Power Outputs" that occurred against each "Wind Speed"
- Take an average of the "Power Outputs" against each "Wind Speed"
- Plot the "Power Output" averages against each of the discrete "Wind Speeds" on a graph
eg as shown below
This can be done manually using csv exports and lookup tables in excel. But does anyone have any ideas how this process could be automated by Mango.
Thanks
-
RE: MSSQL 2008
ok I will use it for now. Can you please explain how to copy my existing DGLux dashboard to a new Mango installation
-
RE: MSSQL 2008
Ok here I am now using a clean database and I am presented with the following error when I open the data sources page:
Server error: PreparedStatementCallback; bad SQL grammar [SELECT dp.id,dp.data,dp.xid,dp.dataSourceId,dp.name,dp.deviceName,dp.enabled,dp.pointFolderId,dp.loggingType,dp.intervalLoggingPeriodType,dp.intervalLoggingPeriod,dp.intervalLoggingType,dp.tolerance,dp.purgeOverride,dp.purgeType,dp.purgePeriod,dp.defaultCacheSize,dp.discardExtremeValues,dp.engineeringUnits,ds.name,ds.xid,ds.dataSourceType FROM dataPoints AS dp join dataSources ds on ds.id = dp.dataSourceId ORDER BY dp.deviceName, dp.name OFFSET ? ROWS FETCH NEXT ? ROWS ONLY]; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 'OFFSET'. Server error: PreparedStatementCallback; bad SQL grammar [SELECT id,xid,name,dataSourceType,data FROM dataSources ORDER BY name OFFSET ? ROWS FETCH NEXT ? ROWS ONLY]; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 'OFFSET'.
Also, when I open the beta alarms page I am presented with the following error:
Server error: PreparedStatementCallback; bad SQL grammar [SELECT evt.id,evt.typeName,evt.subtypeName,evt.typeRef1,evt.typeRef2,evt.activeTs,evt.rtnApplicable,evt.rtnTs,evt.rtnCause,evt.alarmLevel,evt.message,evt.ackTs,evt.ackUserId,evt.alternateAckSource,u.username,(select count(1) from userComments where commentType=1 and typeKey=evt.id) as cnt ,ue.silenced FROM events AS evt left join users u on evt.ackUserId=u.id left join userEvents ue on evt.id=ue.eventId WHERE evt.rtnTs IS NULL AND evt.rtnApplicable IN (?) AND evt.ackTs IS NULL AND evt.alarmLevel >= 1 ORDER BY evt.activeTs DESC OFFSET ? ROWS FETCH NEXT ? ROWS ONLY]; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 'OFFSET'.
-
RE: MSSQL 2008
ok another query. How can i copy my DGLux installation across from my other Mango GUID. I tried copying the entire DGLux folder to the ...\web\modules folder but now I have no DGLux at all in Mango.
-
RE: MSSQL 2008
OK i have been able to start a new install of mango successfully with an MSSQL database. The only problem now is the GUID doesnt match my license. How can I fix this? Hopefully i wont have to purchase a new license.
Also, would the MSSQL convert work for the already established Mango installation if I disabled the Watch List module or did this only work because it is a fresh install?
-
RE: MSSQL 2008
Thank you for getting back to me. What exactly is the watch list module used for?
Will I be able to transfer my dglux design across to the new database
-
RE: MSSQL 2008
Any further developments on this. I find it hard to believe
that MS sql has not been successfully used by anyone yet.I am currently running Mango from a virtual XP PC. Do you think this could cause issues?
-
RE: MSSQL 2008
There are a few third party options for converting MYSQL to MSSQL. But I assume this wont help since even a clean database isn't working properly.