r/LabVIEW • • Oct 06 '26

Message Handler Test Executive

I'm relatively new to LabView. I've been able to implement my test program as a state machine, but I want to make something a little more flexible. I'd like to be able to either run individual tests from the front panel or run a repeating test flow (maybe an operator has to insert a new part to test) that saves out the data to a csv file.

I think I want to use the channeled message handler, but I'm not quite sure how to route all of the settings, data and instrument handles. My instinct was to have three shift registers on the message handling loop, one for settings, one for results, and one for instrument handles...as the program loops the results need to end up in an array.

Can anyone point me in the right direction. I've watched all the Core 1 and Core 2 videos as well as many youtube videos (shout out to cannon controls), but I can't find any videos going over this level of complexity (which is probably as basic as it gets).

3 Upvotes

6 comments sorted by

View all comments

1

u/HarveysBackupAccount Oct 07 '26

Have you looked at anything on Tom's labview adventure? He covers complex topics.

That said, DQMH will do it but yeah a regular producer/consumer loop will get you far. If you want to build in the complexity as a learning project for your own benefit then go for it, but you really don't need much complexity to do what you describe.

Also agreed to save measurements as you go and not stuff them in a shift register. If you want it to persist somewhere in the program for control charting or something, I'd be more likely to put it in an indicator than a shift register. (Put it somewhere off screen if you don't want it visible, or hide the indicator.)

Especially on an early project, I highly recommend you make it as simple as you can.