Transfer More Than Text Message in Queue Between Loops in LabVIEW
As in one of my previous post: A Way to Improve User Experience in Complicated Applications in LabVIEW, I used two loops in my program. One loop works as user interface events interpreter and another loop processes test operations. I use a message queue to transfer user command from the user event loop to the test operation loop. Right now, a few test operations need to be performed with a set of voltage values to the same UUT, but the test routine is the same. I don’t want to create more cases to different voltages, I want to use only one case to process the same test routine.
Below is how I realize it. As in the following image shows:
I create a cluster which has a string data as the test command and a numeric array to store the test voltage value. I use this cluster as the element data type of the queue to transfer the test command and the test voltage from the user interface loop to the test operation loop. In the test case, test operation will be taken with specific voltage. It works quite well for me, and I needn’t create more cases in the test operation loop.
This is great code! Would you consider including it on our user-generated code site: ni.com/community?
@Todd
Thank you, Todd. I’ll try to include it on the code site after I improve the code.