11-24-2020 01:41 PM
I am try to create the VIs for customer, So they can easily add experiment as many as they want.
Here My Experiment.vi file snap.
Below main. vi should be created by Customer in his project, they can create as many as Experiment.vi in parallel they want.
what are the change should i need to make in Experiment.vi so that i can detect the event of start/ stop experiment button from main.vi.
11-24-2020 02:06 PM
Hi Yash,
you should implement a proper QMH (queued message handler) or producer-consumer scheme from "main" VI to your "Experiment" subVI.
The current way of wiring a Start/Stop button to a subVI is limited to transfering just one value - THINK DATAFLOW!
11-24-2020 06:04 PM - edited 11-24-2020 06:04 PM
@GerdW
Thank for your direction. (queued message handler) is help me to figure out the issue.
I do have another question.
1) is Labview Provide the vis for UUID. i would like to give each experiment with unique Id, and I can use it while receiving the data.
2) is there any way I can transfer the object reference through message Queue. I would like to use that object reference to update the arrived data in application main loop.
11-25-2020 01:24 AM
Hi Yash,
Y@sh001 wrote:
1) is Labview Provide the vis for UUID. i would like to give each experiment with unique Id, and I can use it while receiving the data.
2) is there any way I can transfer the object reference through message Queue. I would like to use that object reference to update the arrived data in application main loop.
1. Not that I'm aware of. You can create your own subVI to generate such UUIDs…
2. You can send references using a message in the QMH - but I would prefer to send data back to the MainVI using another queue…
11-25-2020 10:54 AM
Thank you for your reply. I was thinking about another queue. I though labview provide the some efficient way to figure out the representation of data handling.
Thanks @ GerdW.
11-27-2020 08:26 AM
You really should look into the DQMH (Delacor Queued Message Handler). I think it would solve a lot of your problems, especially since it has a lot of scripting included to automatically build these VIs for you.
12-01-2020 06:18 PM
Thank you for your suggestion I will check DQMH (Delacor Queued Message Handler).