LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems extending dynamic user events

Hello, we work with a german LabVIEW 8.2. We can successfully modify the sample "Programmatically Fire Events.vi" from labview\examples\general\dynamicevents.llb to add additional user events. Modifying the event structure nicely allows to select the old as well as the new user events. With "Dynamically Monitor VI's.vi" and its subVI "Wait for Events.vi" however we never were successful. We allways get a block diagram error, the register for events refnums are reported not to match. When we open the "Wait for Events.vi" just by itself, we can still see a lot of the four event structure, despite the events "should" be defined within "Dynamically Monitor VI's.vi". So personally I assume a data copy problem. A workaround might be to re-unite the code into one VI, modify it and to convert it back. But we havn't tried this up to now. Is this a known problem and are there any good workarounds? Regards, Martin
0 Kudos
Message 1 of 9
(4,011 Views)
Hi Martin,
can you attach your modified VI? And a screenshot of the error would be nice.
Thanks,
Rebecca Fox
Applications Engineer
National Instruments
Message 2 of 9
(3,971 Views)
Hello,
 
due to a glitch with our network while typing within the browser, it had
looked as if all the entered informations were lost. So for security
reasons we pushed two times "submit" in an empty looking webform.
This resulted in the creation of the messages 239953 and 239954
before we retyped a shorter version as message 239965.
 
Attached is an adapted "Programmatically Fire Events.vi", which is
not broken.
 
Attached are also the last attempts of "Wait for More Events.vi"
and "Dynamically Monitor More VI's.vi", but both are broken by
now. In the best state only one VI was shown beiing broken.
 
We played extensively with "Dynamically Monitor VI's.vi" and
"Wait for Events.vi" because they are well running examples.
But we found that their fixed patterns of parameters seem to be
built fixed within LabView.
 
E.g. if we connect within "Wait for More Events.vi" the "event reg.
reference" with the top left connection of "Register for Events",
the events will immediately drop back to the simple original scheme.
 
Trying to create a subVI looked successful. While making sure the
the selected elements resembled the wanted parameters, at least no
direkt error was seen. Actually "Wait for More Events.vi" was
created once this way.
 
So the best thing would be to have a more complete example of
"Dynamically Monitor VI's.vi" and "Wait for Events.vi". 🙂
 
Regards,
         Martin
 
 
0 Kudos
Message 3 of 9
(3,950 Views)
Hello,
 
go into "Wait for more Events.vi" choose the connector from "Register vor Events" and make a right click on it. Choose create a control and delete the old one. Than you should reconnect the controls for using it as a SubVI. Than both VIs are no longer be broken.
I´m not sure if this is wha you want. If there are additional questions than please post them!
 
Thanks,
Rebecca Fox
Applications Engineer
National Instruments
Message 4 of 9
(3,932 Views)
Hello,
 
I'm sorry to report that I can't 100% follow your instructions. So maybe
attaching your modified version of "Wait for More Events.vi" might help.
 
If I right click "Register For Events" I can create an event source control.
But e.g. the context help of the german LabView 8.2 says, that it doesn't
know anything about it. 🙂
 
I can connect e.g. a "Start Transmission Event" with the new control.
 
I have attached our still broken version of "Wait for more Events.vi".
 
Regards,
                 Martin
0 Kudos
Message 5 of 9
(3,927 Views)
Here the changed one.
Thanks,
Rebecca Fox
Applications Engineer
National Instruments
Message 6 of 9
(3,922 Views)
Hello,
 
I'm trying to find the subtle difference between your working approach
and mine. 🙂
 
If I just add the wire in "Wait for More Events.vi" from "event ref. reference"
to "Register for Events" I immediately get broken wires. I have attached
the graphic into the attached "Wait for More Events plus Graphic.vi".
 
Also adding your "New Wait for More Events.vi" into "Dynamically Monitor
More VI's.vi" works excellent.
 
With your version I can add or remove the wire in "event ref. reference"
wire without any hassels, just as it should be. 🙂
 
So now I would like to know how to do this kind of magic for myself. 🙂
 
Regards,
         Martin
0 Kudos
Message 7 of 9
(3,913 Views)

You are using a VI called "Register for Events" where you connect your refum. I don´t know why this refnum is not working. But I´ve made a right cklick on "Register for Events" on the connector for "event registration refnum" and chosse from context menu create->control.

This is how I´ve done it.

Thanks,

 

Rebecca Fox
Applications Engineer
National Instruments
Message 8 of 9
(3,898 Views)
Hello,
 
the case is closed indeed! That's great!! 🙂 🙂
 
Analog to e.g. string array subVI input or output parameters,
they have to be created with clicking on a specific terminal
of a function and then typing "add control". Only this generates
a really new and suitable control.
 
Keeping the existing control "event registration refnum" as it
was, simply preserved its built-in once copied original scheme.
 
Regards,
          Martin
0 Kudos
Message 9 of 9
(3,891 Views)