NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Dispatch from Sequence Context

Greetings,

I'm trying to write some code using CVI 5.0.1 and TestStand 1.0.2. I
have some functions that normally pass testData->seqContextCVI (sequence
context) to other functions so that interact with TestStand if needed.
Given that I only have the sequence context, can I use the
CA_GetDispatchFromObjHandle function from the ActiveX Automation
function panel provided with CVI 5.0.1 and still obtain the original
seqContextDisp that is passed to CVI from TestStand?
Also, when I'm done with the Dispatch do I need to free it and how?

Thanks,
Emile Semmes
--
/---------------------------\
| Emile Semmes |
| Tellabs Operations, Inc. \-----------\
| Test Development Engineer |
| BMG NPI Support |

| E-mail: Emile.Semmes@tellabs.com |
\---------------------------------------/
0 Kudos
Message 1 of 2
(3,243 Views)
Emile,

You actually don't need to get the dispatch pointer from the handle, you can just pass the sequence context (of type CAObjHandle) as is. The sequence context is just a 32-bit number. So long as there is a running sequence associated with this object, any references to it should be valid.

Regards,

Azucena Perez
0 Kudos
Message 2 of 2
(3,243 Views)