02-26-2015 11:13 AM
I haven't done much User Events.
According to the LabVIEW Help,
The input for the Create User Event function is an individual element or a cluster whose name becomes the name of the user event and whose data type defines the data type for the event.
In the VI I have inherited, the original programmer has wired a error in (no error) cluster to the Create User Event.
What does this do?
Solved! Go to Solution.
02-26-2015 11:23 AM - edited 02-26-2015 11:24 AM
@nyc_(is_out_of_here) wrote:
What does this do?
Allows somebody to send error information using a User Event.
02-26-2015 11:26 AM - edited 02-26-2015 11:27 AM
My guess would be that he is generating the event in the consumer loop. In this way if a error occurs in the consumer loop you can tell the producer to perform some kind of action. I was just experimenting with this design. edit: beat me to it. lol
02-26-2015 12:46 PM
@GovBob wrote:
My guess would be that he is generating the event in the consumer loop. In this way if a error occurs in the consumer loop you can tell the producer to perform some kind of action. I was just experimenting with this design. edit: beat me to it. lol
That is what he is doing. He is processing the error even in the producer loop and generating the error event in the consumer loop.
02-26-2015 12:47 PM - edited 02-26-2015 12:51 PM
@crossrulz wrote:
@nyc_(is_out_of_here) wrote:
What does this do?
Allows somebody to send error information using a User Event.
Thank you for the explanation. However, he isn't using any of that error information. He simply is wiring a True to stop the producer loop.
Can you explain why the Dynamic Events Terminal is not wired through?
02-26-2015 01:09 PM
nyc wrote:Thank you for the explanation. However, he isn't using any of that error information. He simply is wiring a True to stop the producer loop.
Can you explain why the Dynamic Events Terminal is not wired through?
So that allows the consumer loop to stop the producer loop in the event of an error. That's very smart on their part.
The Dynamic Events Terminal only needs wired up inside of the Event Structure if the registered event references get changed. By default, they keep their registered event references the same.
02-27-2015 12:20 AM