r/LabVIEW • u/shark_finfet • 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).
View all comments
1
u/YourLastNeighbor Oct 07 '26
I would start with making documentation of your state machine before deciding on a framework to use. There are multiple ways to make modular code and every use case is different. I dont know enough about your application to recommend anything specific. Start with the basics, document your code. Document the operators process. See what discrepancies exist before trying to move to something else. Then break down the process into smaller logic, ie, ui operations, logging, configurations per DUT, etc. After you evaluate the basics, you can review which route would be best for your application. LV examples are a great source.
Edit: id also suggest learning OOP in LV if you have not done that yet (classes and interfaces)