data logging and monitoring - halvorsen.blog · data logging and monitoring with this data logging...

Post on 27-Jul-2020

20 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

DataLoggingandMonitoring

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.

GetHelp

Hans-PetterHalvorsen,M.Sc.

Monitoring

Hans-PetterHalvorsen,M.Sc.

OpenSeparateWindowsforChartingandData

ASeparatefull-screenWindowforPlotting

ATablewithHistoricalData

Configuration

Hans-PetterHalvorsen,M.Sc.

Whenyouhavemadenecessarychanges,youcanclick“SaveConfigurationData”

Whenyouhavemadenecessarychanges,youcanclick“SaveConfigurationData”

Ifyoudon'thaveaDAQdevice,youcangeneratesomeRandomDemoDataforTestPurpose

ThesettingsarestoredinaConfigurationFile

YoucanchangetheSettingfromtheGUIordirectlyintheConfigurationFile

Database

Hans-PetterHalvorsen,M.Sc.

SaveDatabaseConfigurationSettingtoFile

SQLServer• YoucanLogDatatoMicrosoftSQLServerDatabase,eitherLocallyorRemote.

• WiththisoptionyouneedtohaveaccesstotheDatabasefromthisComputer.

• IfyouwanttologdatatoaSQLServer,youcanuseanexistingSQLServerorDownloadSQLServerExpressforfree

SQLScript Database.sqlWhenyouhaveinstalledSQLServer,youneedtorunthe“Database.sql”ScriptinordertocreatenecessaryTables,etc.

ThenConnecttotheDatabaseandyouareready:

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/serverinyourLocalNetworkorintheCloud

Hans-PetterHalvorsen,M.Sc.

UniversityCollegeofSoutheastNorwaywww.usn.no

E-mail:hans.p.halvorsen@hit.noBlog:http://home.hit.no/~hansha/

top related