From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting instrument driver to DQMH

Hi,

 

Based on some previously posted topics I have decided to go deeper in DQMH. Currently I have a small project to automate measurements with a Keysight 34465A. A labview instrument driver is available, so the start is easy.

 

Once I have downloaded the driver I thought that - hey - this could be a good mini project for a DQMH module... and then I thought - wait a second - what is the benefit of doing that? I mean having the Tester VI is great so I can test if the module does what it has to do, but other than this, I cant really name a benefit. There will be no other user of the module than me, and if I move the subVIs of the driver to a DQMH then at the end I gotta call the dqmh modules pretty much the same as I call the driver VIs individually.

 

So now I'm somewhat concerned if creating a DQMH module for an instrument makes too much sense.

 

Let me know your thoughts.

0 Kudos
Message 1 of 3
(743 Views)

We've been developing around yet another custom QMH template for a few years now and I nearly *always* dedicate a loop to each instrument I need to communicate with.  Instrument communications and operations can be relatively slow, so it's nice to defer all that over to a parallel loop rather than making direct driver vi calls that slow down the main program logic.

 

Overall I've found it pretty useful to have dedicated MHL's for each instrument.  

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 2 of 3
(727 Views)

DQMH is a state machine, where you can make predetermined or dynamic state transitions to achieve your end goal. DQMH is pretty useful for any application that would require user interaction with a UI (not necessary but a UI will make things complex to warrant a state machine).

 

Measurement automation by itself does not require a state machine (maybe a simple one like an iteration state machine just to tidy up the BD) as you would have implemented the test methodology (which is predetermined).

 

You could use DQMH if you would like to make an interactable soft front panel for the instrument or an application where user interaction is required for measurement automation.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 3 of 3
(724 Views)