Data Logging and
Monitoring
Hans-Petter Halvorsen, M.Sc.
Data Logging and Monitoring
With this Data Logging and Monitoring App you can Log and Monitoring Data from a DAQmx DAQ Device from
National Instruments. Examples of Such DAQ Devices are USB-6001, USB-6008, USB-6009, myDAQ, etc.
You can log up till 32 Channels simultaneously (depending on the DAQ device you are using).
Logging Options:
- Log Data to File (*lvm Files)
- Log Data to Microsoft SQL Server Database, either Locally or Remote. With this option you need to have access to
the Database from this Computer.
- Log Data to a remote Data Cloud Service
You can use an existing SQL Server or install a new SQL Server either on this computer or in a network or Internet.
Microsoft SQL Server Express can be downloaded for free on Internet.
Data Monitoring:
You can also use the "Data Dashboard for LabVIEW App" on iPad or Android devices in order to Monitor the Data
you are Logging.
Get Help
Hans-Petter Halvorsen, M.Sc.
Monitoring
Hans-Petter Halvorsen, M.Sc.
Open Separate Windows
for Charting and Data
A Separate full-screen
Window for Plotting
A Table with
Historical Data
Configuration
Hans-Petter Halvorsen, M.Sc.
When you have made necessary changes,
you can click “Save Configuration Data”
If you don't have a DAQ device, you can
generate some Random Demo Data for
Test Purpose
When you have made necessary changes,
you can click “Save Configuration Data”
The settings are stored in a
Configuration File
You can change the Setting
from the GUI or directly in
the Configuration File
Database
Hans-Petter Halvorsen, M.Sc.
Save Database Configuration
Setting to File
SQL Server
• You can Log Data to Microsoft SQL Server
Database, either Locally or Remote.
• With this option you need to have access to
the Database from this Computer.
• If you want to log data to a SQL Server, you
can use an existing SQL Server or Download
SQL Server Express for free
SQL Script Database.sql
When you have installed SQL Server, you
need to run the “Database.sql” Script in
order to create necessary Tables, etc.
Then Connect to the Database and you are
ready:
Web Service
Hans-Petter Halvorsen, M.Sc.
Data Web Service
The Port is default “8002”, but can be changed in a Configuration File
<IP Address>:<Port>/DataWS/<Web Service Method>
“DataWS” is the Name of the existing Web Service
AvailableWeb Service Methods
• GetChannel?Channel={value}
– Gets the Current Value for the spesific Channel
• GetData
– Get the Current Values for All Channels
Web Service Example
<IP Address>:<Port>/GetChannel?Channel=1
Web Service Example
<IP Address>:<Port>/GetChannel?Channel=2
Web Service Example
<IP Address>:<Port>/GetData
Data Dashboard for
LabVIEW
Hans-Petter Halvorsen, M.Sc.
Data Dashboard for LabVIEW
• You can also use the "Data Dashboard for
LabVIEW App" on iPad or Android devices in
order to Monitor the Data you are Logging.
• https://www.ni.com/mobile/
AvailableWeb Service Methods
• GetChannel?Channel={value}
– Gets the Current Value for the spesific Channel
• GetData
– Get the Current Values for All Channels
Data Cloud Service
Hans-Petter Halvorsen, M.Sc.
Data Cloud Service
• In addition to Log Data to a File or a Database,
you can also Log Data to a remote “Data Cloud
Service”.
• You can download the “Data Cloud Service”
from my Web Site.
• Then you can install it on a computer/server in
your Local Network or in the Cloud
Hans-Petter Halvorsen, M.Sc.
University College of Southeast Norway
www.usn.no
E-mail: hans.p.halvorsen@hit.no
Blog: http://home.hit.no/~hansha/