Q: When learning the example program about notifier under the example general of LABVIEW8.2, I found that a main VI passed a notification handle to the child VI. In the subVI I don't know how to set the notification reference handle. In the icons of the front panel of LABVIEW, there are only application reference handles, VI reference handles, control reference handles, event occurrence reference handles, and menu reference handles. I don't know how to set a notification reference handle or a serial port reference handle on the front panel of the sub VI.
Answer: Place the "Create Notifier" function in the program block diagram, use the shortcut menu to create an input control, and create a notifier control in the front panel. If you need to modify the data type, create the corresponding control in the front panel and drag it directly into the notifier control. Drag the Notifier control directly to the sub VI to achieve your purpose. Cited by this article: /article/201701/
Before this: I also encountered a similar problem. Always solve it!
After reading the above answer, I was slowly trying and finally found a solution!
As shown in the figure below:
I want to create a notifier reference handle for waiting for notifications, so that the reference of the previous VI can be connected to the VI inside this VI, but I have no idea how to start.
Because no reference handles related to notifiers are found in the control's handle reference list.
According to the above question and answer, I right-clicked and waited for the notification function. If I wanted to create an input control from it, it should be the notifier reference handle needed. But there is no option in the pop-up menu.
So, I clicked the tool on the connection, and in this state, I placed it on the "Notifier Connection Interface" of the waiting notification function, right-click, and a create item will be created in the shortcut menu. So, a notifier reference handle is created directly. As shown below the main program of the figure.
But what is created in this way is of string type, why?
Processing method: In the VI of the upper layer, create a function to get the notifier reference
Connect data types such as booleans to the Element Data Type pin. Then right-click the output pin of its notifier and perform the creation operation in the shortcut key. Then directly drag the generated Notifier reference handle to the front panel of the next level VI.
Maybe there are other ways to keep exploring!
This log needs to be remembered: Right-click on the pin and the shortcut menu will pop up, and there will be big surprises.