Jump to content
  • 0

Reading data files with *.wdd format from WebDAQ-504


Sajad

Question

Hello,

I am doing measurements with WebDAQ-504 and the data files are stored in *.wdd files. I came across the following webpage and realized that the wdd files store the data in json format: https://kb.mccdaq.com/KnowledgebaseArticle50726.aspx

I tried reading the wdd file using the json module in python but I get the following error message related to encoding format: 'utf-8' codec can't decode byte 0xc5 in position 2: invalid continuation byte

I appreciate it if someone helps with reading the wdd file and convert them to json, numpy array, panda data-frame, or other well-known formats. 

P.S.: I have tried converting the data files to csv format. However, a limited number of samples can be converted each time, and for long measurements it needs to be repeated so many times. So, converting all samples to json is prefered.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 1
On 9/20/2022 at 12:27 PM, Jeffrey said:

Hello @Sajad

Measurement Computing provides you with 2 options to convert WebDAQ data files (.wdd) to csv:

Conversely, 

the link you provided (

)

offers you the option to create your own app.  Perhaps you didn’t quite understand the knowledgebase article?  The file is divided into three sections and only one of them is json format.  There is a fixed size binary header (not json), followed by a json header (the size of the json header can vary and is defined in the last 4 bytes of the binary header), followed by binary data until the end of the file.

Note that the Newtonsoft.Json nor built-in json package of Python, when used by itself will not work as it does not handle the other 2 sections of the .wdd file.

There is also a REST api that allows you to access the data as it is collected by the WebDAQ.  More information on this is located  https://www.mccdaq.com/downloads/WebDAQ/REST-API/1.0.0/

Thanks,

Jeffrey

Is a similar converter utility available for Linux?

Link to comment
Share on other sites

  • 0

Hello @Sajad

Measurement Computing provides you with 2 options to convert WebDAQ data files (.wdd) to csv:

Conversely, 

the link you provided (

21 hours ago, Sajad said:

)

offers you the option to create your own app.  Perhaps you didn’t quite understand the knowledgebase article?  The file is divided into three sections and only one of them is json format.  There is a fixed size binary header (not json), followed by a json header (the size of the json header can vary and is defined in the last 4 bytes of the binary header), followed by binary data until the end of the file.

Note that the Newtonsoft.Json nor built-in json package of Python, when used by itself will not work as it does not handle the other 2 sections of the .wdd file.

There is also a REST api that allows you to access the data as it is collected by the WebDAQ.  More information on this is located  https://www.mccdaq.com/downloads/WebDAQ/REST-API/1.0.0/

Thanks,

Jeffrey

Link to comment
Share on other sites

  • 0

Hi Jeffrey, Is this still the case - No Linux converter? The .wdd format is presenting some challenges when converting and any additional info beyond the linked info would be helpful. Any scripts utilized that could be shared. Perhaps the converter built on the device itself (accessible via the UI) could be shared as that should be a script that is run on the device itself ?  https://kb.mccdaq.com/KnowledgebaseArticle50726.aspx?_ga=2.231930456.659366427.1690296752-1110839529.1679674608 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...