Jump to content

Recommended Posts

I often have to create interfaces for power supplies. I often use the QMH for my overall architecture.

 

I have created a QMH that controls multiple power supplies. It was designed in such a way that it takes a minute to add an additional power supply. Of course I am using Dynamic Dispatch to use multiple types of power supplies. It works quite well.

 

I am trying to get better at LVOOP and plug-ins. I was thinking of creating an abstract class that contains a QMH for just one power supply. Of course I would create children for several types of power supplies. My plan with the single QMH for each power supply would be to use it as a plug-in or use a sub panel so that all the QMHs are on one UI.

 

If anyone has any advice on the methodology please feel free to comment. Also I am new to LAVA so I hope I am not asking something that has already been solved.

 

 

Edited by RedAndGreen
Link to comment

Using a number of interaction queued message handlers (QMH) is quite a common architecture (sometimes known as “actor-oriented design").  There are multiple packages in the community that people have made available**, and I believe quite a few people have their own private implementations.   Personally, I usually have a separate QMH for each independent bit of hardware.   I have sometimes done an LVOOP driver (with child types) inside a QMH, which I think is what you are describing.

 

 

** Mine is Messenger Library (an introductory video); there is also the Actor Framework (part of LabVIEW), Delacor DQMH, and Aloha, just to name a few that are available on the LabVIEW Tools Network, and you’ll find a few other examples on LAVA such as Message Pump.

Link to comment
  • 2 months later...

Hi there,

This may be a little late but I wrote a blog post regarding the use of a HAL (Hardware Abstraction Layer) inside a QMH. OK, it's our own flavour of QMH which we call the DQMH but the post content is still valid for your use case. In addition the example I use is based around a Power Supply;

Here's the link 

http://www.walkingthewires.com/2015/10/21/hal-in-your-dqmh-2/

Hope it's useful

Chris

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.