09-06-2016 02:56 PM
Here is my implementation: First I harvest the Event Structure Number and Name and stuff the resulting string into in an FG. You can see I also tried to dynamically harvest the Number, but did not succeed. It appears only to support the statically visible frame under development.
To Enqueue the events into the QSM the VI picks the reference of the control triggering the Event, and searches for it in the list of previously harvested Event Selectors and use the loop index when it finds it. This also works if you are using multiple controls in a single event case. If it doesn't find it in the list, it means that the queue has been stuffed from somewhere else than in an Event Case. For this reason, the VI lets you input either a reference or a string indicating the source of the Enqueueing.
In the False case above (Reference input) the reference is upcast to a generic control.
This is the first time I post VI snippets, I don't know if I did it right.
The resulting debug screen shows the Source of the Event in the left column and "Action" (or State) stuffed on the QSM in the right column.
The last entry above has no Event number because it has been stuffed on the Queue from somewhere else in the program, where you then enter the desired text described where it has been stuffed from.
09-07-2016 03:48 PM
Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner
09-05-2023 05:03 AM
Hello,
Can I download this script off somewhere, please?
09-05-2023 05:11 AM
Hi balint,
@balintkoszta wrote:
Hello,
Can I download this script off somewhere, please?
What is "this"?
Which "script" are you referring to?
When you talk about those snippets in previous messages: these are snippets! Download those snippets and drag&drop them into your block diagram… (Read the LabVIEW help on "snippets"!)
09-05-2023 06:47 AM
Hi GerdW,
I got it working, thanks for the info!
Many thanks,
Balint