LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reg Event Callback + Problem

Hello,
I have an interesting problem with Reg Event Callback in labview 7.

I have a device that I control through ActiveX objects.
It exists three kind of ActiveX object: Application, Project and Message.

The Application object handles two types of event: GeneralEvent and MsgEvent.
GeneralEvent is only the description of an event which occurs.
MsgEvent occurs when a Message is sent by the device to the computer,
and by the way it handles the reference of the message (rMsg) itself and
a boolean (bSuccess) to confirm that the message was well received.

When I asked to the device to send a message to the computer,
the GeneralEvent occurs and I have a message such as: "Message XXX well received".
But in the other hand the MsgEvent does not occur.
The Event Data of the CallBack vi is a cluster of a boolean (bSuccess) and a variant (rMsg).

So, in one hand I know that the message was well received, cause of the GeneralEvent,
and in the other hand I know that the MsgEvent occurs, because the MsgEvent is well handled with labview 6.
My questions are:
-when an event occurs, is labview checking if the Event Data are the same to given event,
and if not no event occurs? In other words, the reference can not be handle by a variant?
-Is there already a case like this one?
Cheers, Julien
0 Kudos
Message 1 of 2
(2,609 Views)
Hi,

i think in this http://forums.ni.com/ni/board/message?board.id=170&message.id=75114&requireLogin=False post you will find the answeres of your questions!

regards,
Thomas Sandrisser
0 Kudos
Message 2 of 2
(2,592 Views)