Browse Month: May 2014

Announcing the Design Your Own DAQ Service

We love LabVIEW FPGA.

It takes LabVIEW to areas that very few other languages can go, let alone the fact that it works across all of the usual platforms as well.

For this reason we want to spread the love and help other people achieve incredible things with FPGAs. We have put together a package of work for people that want to take advantage of the capabilities of FPGAs with the time or money to learn the tools and develop the firmware in-house.

For a fixed price we will develop the firmware and a host API to allow the FPGA’s to be used like a standard DAQ card. If you are interested, or know someone that might be, take a look at www.wiresmithtech.com/services/custom-fpga

Whats more, before 20th June 2014 we can offer a 10% discount on the DYOD+ package.

Managing Large Data Sets in LabVIEW

Have you ever run out of memory in LabVIEW?

I gave a presentation at the CLD summit last week talking about some of the design considerations and a few ideas for techniques that can help when it comes to high throughput applications. If you click the cog you can also open the speaker notes which elaborate on some of the points.

The problem with long term waveform data storage

This was a key item that I didn’t manage to get to. Currently there are two prevalent techniques I would look at:

Relational Databases

These are your SQL based databases whether MySQL, MS SQL Server or similar.

The idea in these is that all of the data is stored in tables. The columns available are fixed in the design of the database and you add data by filling rows. The relational element comes from the fact that each row has a unique identifier which can be referenced in other tables.

Relational Model

The challenge with waveform data is understanding how this translates to a table.

You could store the entire waveform in a single field as a binary blob but this limits the searchablity (which I think is a word!).

Alternatively you must create a new row for every datapoint and each row would need a timestamp, seriously increasing the storage capacity and reducing the performance of the searches. This is before you get into working out the correct design to get optimum performance.

Datafinder

Datafinder is National Instruments’ solution to this. Datafinder is a file indexer. You store all of the files that you want to make searchable in a common place which Datafinder can index.

Through dataplugins, multiple file types can be supported but they all get translated to the TDMS style structure to make the properties searchable. You then use the toolkit for LabVIEW or DIAdem to mine through the data.

This has some appealing characteristics. It is ridiculously simple to set up compared to a database, just put your files in the right place. This also makes it quite flexible, being able to take data from different sources and still keep it easily searchable.

The main issue with this is the fact that it is file based, if the data is continuous across files and the section your interested in spans files then you have to code around this to load from multiple files.

However I am wondering whether there maybe a new kid on the block that could overcome some of these issues:

NoSQL and MongoDB

So I’m pretty sure every credible writer starts with a wikipedia quote:

NoSQL or Not Only SQL database provides a mechanism for storage and retrieval of data that is modelled in means other than the tabular relations used in relational databases. Motivations for this approach include simplicity of design, horizontal scaling and finer control over availability.

NoSQL – Wikipedia

In short NoSQL is one of those wonderful buzzwords which doesn’t mean anything specific, just different!

I was quite intrigued though by some of the different data models. The one that stands out is the document model used by MongoDB among others.

This means that instead of defining tables you add data as documents. These documents contain fields which can be indexed but it is quite flexible, different documents don’t have to exactly match in structure. At the very least this will match the structure of datafinder very nicely and could be a viable alternative where the file based management is unappealing.

My next step though is to investigate the capabilities of spreading data across documents. Most databases allow you to define database side functions about how to retrieve data. This is typically high performance and allows it to be used from any language that has a database driver. I’m planning to investigate whether this will allow for a structure that can retrieve continuous data out of files and make some of our “big data” challenges go away.

I know @petedunc has made a start on getting LabVIEW to talk to MongoDB. Has anybody out there tried these techniques? I’m open to any pointers. Or are there techniques I’m missing?

UK CLD Summit 2014

For the last two days I have been at the inaugural UK CLD Summit at the NI offices in Newbury (conveniently 15 minutes walk so no excuses not to!).

It was an excellent event where I still meet developers that I haven’t met before and catch up with those I do. My big takeaways were:

  1. Working through an MVC framework idea with a group of developers in the developer jam, inspired by multiple presentations on the subject. You can find the results on bitbucket which are still rough but watch this space, this is a project that I want to continue after the event with some community backing.
  2. I’m convinced about the idea of working with open document formats to reduce dependencies which Steve discusses in his blog post and covered in the Central South User Group.
  3. Monkey’s and Teddy Bears will help my business!
  4. I need to get better at talking to people between these events.

Whats more, it has continued to convince me that as a community we achieve so much more together than apart. Over various discussions the topic came up at how much we work from the ground up where many people have all off the pieces. It must be possible to increase productivity in LabVIEW if the community can bridge some of the gaps or just build on top of the existing offering from NI. I feel some rambling coming which I will save for another post for now!

For now it is great to get fellow LabVIEW geeks together, I look forward to the next time and I think others enjoyed it as much as I did. If you like the sound of it I would highly recommend finding your local user group, or start one if there isn’t one near you, all you need is a few LabVIEW engineers and a room to get started!

I will also post my presentation here in the next few days with some thoughts that I didn’t manage to get to on the day.


By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close