Example Code

File-Events Driven Producer Consumer

Code and Documents

Attachment

Hi Community,

I've not posted much content for a while, but if anyone has noticed, the last few examples I've made have all consisted of Producer-Consumer patterns because I'm a little crazy about them. This new example I'm uploading has taken this excellent design pattern and added a little twist; providing support for sequences of different files.

BD_Image.png

Continually loading files into my LabVIEW VIs so that it had a similar feeling to word processing software always represented a bit of a software engineering problem to me. This was mainly because I struggled to imagine how I could ensure the application would appropriately regardless of whether a file has been loaded or not. Hopefully this will serve as a good reference design if you would like your users to be able to continuously read from or write to multiple different files in a sequence.

The attached VIs are for LabVIEW 8.0. If you need them downconverting please let me know.

As ever... Any issues? Yell at me!


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors