LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Seperate Data from received body

Solved!
Go to solution

Hi, I am inexperienced with labview and need some help.

 

I am reading sensor data on labview from a database. The data I am receiving is in json. I want to separate the data so i can manipulate the data and use for other tasks. i.e. draw a graph, other tasks of similar sort

 

attached is a sample program of part of the code. Please can someone assist. 

 

Thanks in advance 

0 Kudos
Message 1 of 4
(820 Views)

You need to specify the correct data structure.

The modified example uses JSONtext Toolkit for LabVIEW

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 4
(796 Views)

I am using 2015 version of LabVIEW, is it possible to provide a solution compatible with the older versions where I can plot the 'acc' results to a line graph

 

Sorry for the inconvenience.

0 Kudos
Message 3 of 4
(747 Views)
Solution
Accepted by topic author jephin27

As ZYOng said, the important part is to define a LabVIEW data structure according to the json data.

 

I do not have the JKI toolkit installed, you have to replace "timestamp" and "dataStored" with timestamps if you need them.

json_unflatten_snippet.png

0 Kudos
Message 4 of 4
(728 Views)