LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help on Event Data Node

Solved!
Go to solution

How do you find help on the various members of the Event Data Node in an Event Structure.  For example, 'Time' seems to be a number of seconds past some reference, but I can't find any help on it.  Thanks in advance.

0 Kudos
Message 1 of 8
(5,500 Views)

It's the same as the output of "tick count".

The typical use would be to subtract a previous tick count to get the elapsed time between successive events.

0 Kudos
Message 2 of 8
(5,496 Views)

And yes, the help could be improved, see this old idea. 😄

Message 3 of 8
(5,489 Views)
Solution
Accepted by topic author AT1

The Help is there, but buried.  Consider a blank Event Structure, which looks like this:

Blank Event.png

Buried in the Help for Event Structures is this Note:  For more information about event data elements, click the Details link in the event descriptions for the ControlApplication Pane, and VI event class topics.  Notice the three links (to further Help).  Since Timeout is an Application Pane Event, I clicked that link to bring me to the Application Events Help Page, where under the first entry, Application Activation, there was a Details link.  Clicking that brought me this:

Application Activation Event.png

which says that the Time parameter is simply the Millisecond clock corresponding to the time that the Event occurred.

 

Yes, the information is there, and yes, Altenbach is right that it could be just a little more accessible ...

 

Bob Schor

Message 4 of 8
(5,456 Views)

From some casual testing, the time value from the event data node corresponds to the tick the event case actually executed, not from the tick that event got put into the event queue (they could differ greatly! :D)

 

EDIT: The time corresponds to the moment the event got triggered.

 

So the term "when the event occurred" is ambiguous, at least to me. (Does the event "occur" when the button is pressed or when the associated event case finally executes???)

0 Kudos
Message 5 of 8
(5,448 Views)

I'd argue that it should be when the event actually occurred.

 

1.  That is what makes sense when I read it.

2.  I can see value in knowing how long ago the event actually happened.

3.  There is no value in know when the event case started from that node because you can get that by just dropping an ordinary tick count function in the event case.

 

So if the tick count is based on when the event case started, I'd say that is at least a bug in documentation.  But in reality, I think it should be a bug in implementation for the reasons I listed above.

Message 6 of 8
(5,431 Views)

I agree with all three points.

 

Lynn

0 Kudos
Message 7 of 8
(5,378 Views)

It actually is the time the event was placed on the event queue. My testing was flawed.

0 Kudos
Message 8 of 8
(5,366 Views)