Jump to content

Need help with event data returned form callback VI


Recommended Posts

Hi,

I have a callback VI which works with a communication activeX. The return data has one element with variant type. The display of variant element is:Value-> Array (Non Displayable). I want to get this data but I cannot. I did try to use Variant To Data VI or Variant to Flat String VI, but I still get nothing.

Do you have any idea?

Link to comment

When you wired the activeX refnum to the Register Event Callback node, did you try and create a Callback VI by right-clicking the VI Ref input and selecting "Create Callback VI"? Usually, LV can analyze the activeX event callback prototype and automatically create a properly formatted event callback VI with an appropriate control for the event data labeled "Event Data." If LV is still creating the variant this way, then the callback data is more complex. You're best bet then is to find the documentation for the activeX object you are communicating with. That will show you what type of data the event returns, and then you can create an equivalent LV prototype to cast the event data (using Variant to Data or perhaps Typecast).

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.