Remark: Currently (2016/06/01) not working.
In this example I will show how to connect data from a DDS (Data distribution service for Real-Time Systems). Be aware, that this is very alpha
First of all you have to install the DDS Feature:
After that, you can download the MD PnP Software from here:
Start the application
Choose Domain Id 0 (or remeber the choosen value) and run "Start ICE_Supervisor".
You can now "Create an ICE Device Adapter"
And choose e.g. Simulated Pulse Oximeter. Call "Start Simlulated Pulse Oximeter" and call "Start PO_Simulator".
Now you will get to the main screen:
When you double click on Puls Ox (Simulated) you will see:
Now back to Odysseus:
Create a new Project and add the following script:
There are two important files:
They contain information necessary for DDS. You can download the files from the following locations:
Copy them to the workspace.
If you changed the domain, please update domain value in the options above.
Now run the query, and show as table. You should see something like:
As you can see, the values attribute contains a list, and the time attribute a tuple.
Storing to a relational database
If you want to store this data in a database this is not possible directly. You have to "flatten" the data. This can be done as follows:
table1_WithNumbers is only necessary if you want to keep the order of the measurements.
The output will be as:
Storing to a document store
You can store complex objects to a document store like MongoDB. For this, you have to convert the tuple to a KeyValueObject. This can be done with the TupleToKeyValueOperator.