LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

basic stuff of event callback

Hi,

I just got to know the useful technique event callback with Labview. so I want to explore it further as a beginner.

I found the basic example at https://decibel.ni.com/content/docs/DOC-9161.

In seeing the attached example, I have a question in construction of the components in "Elasped Event Callback.vi".
There some control inputs (variables) and message box without any wiring or functional routine.
For example, "User Parameter" or "Event Data" is mandatory?

Can you tell me the rule of thumb in making the file?

Best,

Lee
0 Kudos
Message 1 of 8
(3,254 Views)

Sorry -- there was no message at the link you included ("The item does not exist. It may have been deleted.").

0 Kudos
Message 2 of 8
(3,197 Views)
The link has an extra period at the end. Just needs to be deleted.
0 Kudos
Message 3 of 8
(3,191 Views)

The controls and the connections to the pane must match the specific callback invokation.

The best way to start creating a callback VI is to right-click on "VI Ref" of the "Reg Event Callback" node and select "Create Callback VI".

 

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 8
(3,178 Views)
Dear all,

I just wrote the code for WebBrowser container in .NET.
I got to know I need to wait for sometime to finish loading of webpage.
I found "ReadyState" property was helpful but need to use "DocumentCompleted" event for my complicated work.
(http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.documentcompleted(v=vs.110)....

However, I am a beginner for the Event Callback technique.
I tried to realize it by using some temporal variable which was just initialized before using it.
But I believe there is a simple method to check if "eventstatus" is OK.

Can you suggest how to use callback event in simple or update my code?

labmaster
Download All
0 Kudos
Message 5 of 8
(3,106 Views)

@labmaster wrote:

I tried to realize it by using some temporal variable which was just initialized before using it.
But I believe there is a simple method to check if "eventstatus" is OK.

Can you suggest how to use callback event in simple or update my code?

I don't know if you would consider this simple, but you can create a user event in the caller and register for it, then pass the event reference to the callback VI as the user parameter and generate the event in the callback VI. This will give you an event in the main VI when the callback VI runs. Make sure you register for the user event before you start the callback VI to avoid a situation where you miss the event.


___________________
Try to take over the world!
0 Kudos
Message 6 of 8
(3,073 Views)
Thanks tst,
Hard to understand your suggestion for me but I would like to understand it.
Can you explain it in detail with an example? I couldn't find some good example in this field.
0 Kudos
Message 7 of 8
(3,038 Views)

Example_VI_BD.png


___________________
Try to take over the world!
0 Kudos
Message 8 of 8
(3,027 Views)