data logging and monitoring pro - halvorsen.blog · data logging and monitoring with this data...
TRANSCRIPT
DataLoggingandMonitoringPro
Hans-PetterHalvorsen,M.Sc.
DataLoggingandMonitoringWiththisDataLoggingandMonitoringAppyoucanLogandMonitoringDatafromaDAQmxDAQDevicefromNationalInstruments.ExamplesofSuchDAQDevicesareUSB-6001,USB-6008,USB-6009,myDAQ,etc.Youcanloguptill32Channels simultaneously (depending ontheDAQdeviceyouareusing).
LoggingOptions:- LogDatatoFile(*lvm Files)- LogDatatoMicrosoftSQLServerDatabase,eitherLocallyorRemote.Withthisoption youneedtohaveaccesstotheDatabasefromthisComputer.- LogDatatoaremoteDataCloud Service
YoucanuseanexistingSQLServerorinstallanewSQLServereitheronthiscomputerorinanetworkorInternet.MicrosoftSQLServerExpresscanbedownloaded forfreeonInternet.
DataMonitoring:Youcanalsousethe"DataDashboardforLabVIEWApp"oniPadorAndroid devicesinordertoMonitortheDatayouareLogging– eitherlocallyorviatheDataCloud Service
Database
Database
DataLoggingandMonitoringPro
DAQmxDevice
PC
Cloud
Database
DataFiles
LocalDatabase
RemoteDatabase
SensorsCloudStorage
Tablet
WiFi
DefaultChoice
Sensors
Sensors
Database
DataLoggingandMonitoringPro
DAQmxDevicePC
DAQmxDevicePC
DAQmxDevice
DAQmxDevice
Cloud
PC
PC
Sensors
Sensors
Localstorage
Localstorage
Localstorage
Localstorage
CloudStoragefrommultiple DAQ
Devices
Data-base
Data-base
Data-base
Data-base
GetHelp
Hans-PetterHalvorsen,M.Sc.
Monitoring
Hans-PetterHalvorsen,M.Sc.
OpenSeparateWindowsforChartingandData
ASeparatefull-screenWindowforPlotting
ATablewithHistoricalData
Database
Hans-PetterHalvorsen,M.Sc.
SQLServer• YoucanLogDatatoMicrosoftSQLServerDatabase,eitherLocallyorRemote.
• WiththisoptionyouneedtohaveaccesstotheDatabasefromthisComputer.
• IfyouwanttologdatatoaSQLServer,youcanuseanexistingSQLServerorDownloadSQLServerExpressforfree
SQLScript Database.sql
WhenyouhaveinstalledSQLServer,youneedtorunthe“Database.sql”ScriptinordertocreatenecessaryTables,etc.
ThenConnecttotheDatabaseandyouareready:
SQLServer
The«Database.sql»scriptcontainsTables,StoredPocedures,Views,etc.usedbytheClient.
TheDatabaseSettingsarestoredinaConfigurationFile
YoucanchangetheSettingfromtheGUIordirectlyintheConfigurationFile
Configuration
Hans-PetterHalvorsen,M.Sc.
DeviceSettings
TheDevceSettingsarestoredinaConfigurationFile
YoucanchangetheSettingfromtheGUIordirectlyintheConfigurationFile
TagSettings
TheTagSettingsarestoredintheDatabase
LoggingSettings
TheLoggingSettingsarestoredinaConfigurationFile
YoucanchangetheSettingfromtheGUIordirectlyintheConfigurationFile
WebService
Hans-PetterHalvorsen,M.Sc.
<IPAddress>:<Port>/DataWS/<WebServiceMethod>
DataWebService
“DataWS”istheNameoftheexistingWebService
ThePortisdefault“8002”,butcanbechangedinaConfiguration File
AvailableWeb ServiceMethods
• GetChannel?Channel={value}– Gets the Current Valueforthe spesific Channel
• GetData– Get the Current ValuesforAllChannels
<IPAddress>:<Port>/GetChannel?Channel=1
WebServiceExample
<IPAddress>:<Port>/GetChannel?Channel=2
WebServiceExample
<IPAddress>:<Port>/GetData
WebServiceExample
DataDashboardforLabVIEW
Hans-PetterHalvorsen,M.Sc.
DataDashboardforLabVIEW
• Youcanalsousethe"DataDashboardforLabVIEWApp"oniPadorAndroiddevicesinordertoMonitortheDatayouareLogging.
• https://www.ni.com/mobile/
AvailableWeb ServiceMethods
• GetChannel?Channel={value}– Gets the Current Valueforthe spesific Channel
• GetData– Get the Current ValuesforAllChannels
DataCloudService
Hans-PetterHalvorsen,M.Sc.
DataCloudService• InadditiontoLogDatatoaFileoraDatabase,youcanalsoLogDatatoaremote“DataCloudService”.
• Youcandownloadthe“DataCloudService” frommyWebSite.
• Thenyoucaninstallitonacomputer/server inyourLocalNetworkorintheCloud
• TheCommunicationbetweentheclientandtheDataCloudisdonebyaWebServiceAPI
DataCloudServiceInadditiontoinstallingtheDataCloudService,theDataCloudStorage,whichisjustaSQLServerDatabasewithTables,StoredProcedures,Views,etc.
WhenyouhaveinstalledSQLServer,youneedtorunthe“Database.sql”ScriptinordertocreatenecessaryTables,etc.
Finally,youcanstarttheDataCloudService,whichisactuallyaLabVIEWWebService.
Hans-PetterHalvorsen,M.Sc.
UniversityCollegeofSoutheastNorwaywww.usn.no
E-mail:[email protected]:http://home.hit.no/~hansha/