Datalogging and Monitoring Pro User Guide

DataLoggingand
MonitoringPro
Hans-PetterHalvorsen,M.Sc.
DataLoggingandMonitoring
WiththisDataLoggingandMonitoring AppyoucanLogandMonitoring DatafromaDAQmxDAQDevicefrom
NationalInstruments.ExamplesofSuchDAQDevicesareUSB-6001,USB-6008, USB-6009,myDAQ,etc.
Youcanloguptill32Channels simultaneously (depending ontheDAQdeviceyouareusing).
LoggingOptions:
- LogDatatoFile(*lvm Files)
- LogDatatoMicrosoftSQLServerDatabase,eitherLocallyorRemote.Withthisoption youneedtohaveaccessto
theDatabasefromthisComputer.
- LogDatatoaremoteDataCloud Service
YoucanuseanexistingSQLServerorinstallanewSQLServereitheronthiscomputerorinanetworkorInternet.
MicrosoftSQLServerExpresscanbedownloaded forfreeonInternet.
DataMonitoring:
Youcanalsousethe"DataDashboardforLabVIEWApp"oniPadorAndroid devicesinordertoMonitortheData
youareLogging– eitherlocallyorviatheDataCloud Service
DataLoggingandMonitoringPro
PC
Tablet
WiFi
DAQmxDevice
Sensors
CloudStorage
Cloud
Database
DefaultChoice
Database
LocalDatabase
DataFiles
Database
Remote
Database
DataLoggingandMonitoringPro
PC
DAQmxDevice
Sensors
Localstorage
Database
PC
DAQmxDevice
PC
CloudStorage
frommultiple DAQ
Devices
DAQmxDevice
Localstorage
Sensors
Cloud
PC
Database
DAQmxDevice
Database
Sensors
Localstorage
Localstorage
Database
Database
Sensors
GetHelp
Hans-PetterHalvorsen,M.Sc.
Monitoring
Hans-PetterHalvorsen,M.Sc.
OpenSeparateWindows
forChartingandData
ASeparatefull-screen
WindowforPlotting
ATablewith
HistoricalData
Database
Hans-PetterHalvorsen,M.Sc.
SQLServer
• YoucanLogDatatoMicrosoftSQLServer
Database,eitherLocallyorRemote.
• Withthisoptionyouneedtohaveaccessto
theDatabasefromthisComputer.
• IfyouwanttologdatatoaSQLServer,you
canuseanexistingSQLServerorDownload
SQLServerExpressforfree
SQLScript
Database.sql
WhenyouhaveinstalledSQLServer,youneedtorunthe“Database.sql”Scriptin
ordertocreatenecessaryTables,etc.
ThenConnecttotheDatabaseandyouare
ready:
SQLServer
The«Database.sql»scriptcontains
Tables,StoredPocedures,Views,etc.
usedbytheClient.
TheDatabaseSettingsare
storedinaConfigurationFile
YoucanchangetheSetting
fromtheGUIordirectlyin
theConfigurationFile
Configuration
Hans-PetterHalvorsen,M.Sc.
DeviceSettings
TheDevceSettingsare
storedinaConfigurationFile
YoucanchangetheSetting
fromtheGUIordirectlyin
theConfigurationFile
TagSettings
TheTagSettingsarestoredintheDatabase
LoggingSettings
TheLoggingSettingsare
storedinaConfigurationFile
YoucanchangetheSetting
fromtheGUIordirectlyin
theConfigurationFile
WebService
Hans-PetterHalvorsen,M.Sc.
DataWebService
ThePortisdefault“8002”,butcanbechangedinaConfiguration File
<IPAddress>:<Port>/DataWS/<WebServiceMethod>
“DataWS”istheNameoftheexistingWebService
AvailableWeb ServiceMethods
• GetChannel?Channel={value}
– Gets the Current Valueforthe spesific Channel
• GetData
– Get the Current ValuesforAllChannels
WebServiceExample
<IPAddress>:<Port>/GetChannel?Channel=1
WebServiceExample
<IPAddress>:<Port>/GetChannel?Channel=2
WebServiceExample
<IPAddress>:<Port>/GetData
DataDashboardfor
LabVIEW
Hans-PetterHalvorsen,M.Sc.
DataDashboardforLabVIEW
• Youcanalsousethe"DataDashboardfor
LabVIEWApp"oniPadorAndroiddevicesin
ordertoMonitortheDatayouareLogging.
• 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,youcan
alsoLogDatatoaremote“DataCloudService”.
• Youcandownloadthe“DataCloudService” frommy
WebSite.
• Thenyoucaninstallitonacomputer/server inyour
LocalNetworkorintheCloud
• TheCommunicationbetweentheclientandtheData
CloudisdonebyaWebService API
DataCloudService
InadditiontoinstallingtheDataCloud
Service,theDataCloudStorage,whichisjust
aSQLServerDatabasewithTables,Stored
Procedures,Views,etc.
WhenyouhaveinstalledSQLServer,you
needtorunthe“Database.sql”Scriptin
ordertocreatenecessaryTables,etc.
Finally,youcanstarttheDataCloud
Service,whichisactuallyaLabVIEWWeb
Service.
Hans-PetterHalvorsen,M.Sc.
UniversityCollegeofSoutheastNorway
www.usn.no
E-mail:hans.p.halvorsen@hit.no
Blog:http://home.hit.no/~hansha/
Download PDF
Similar pages