NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Handling events of ActiveX controls in TestStand!rol

Hi,

I want to use the Microsoft WINSOCK control with existing ActiveX Automation Adapter of TestStand. These control generates an event in case of incomming data.

Question:
Is there any way to treat the events of such controls in TestStand (same problem with MSCOMM control) or can this only be realized by polling the size of incomming buffer?
In case of answer two, i would be interested in any realized example.

Regards,
Sunny
0 Kudos
Message 1 of 4
(3,593 Views)
Hi Sunny,

Currently, you cannot call ActiveX controls using the ActiveX Automation Adapter in TestStand. To do this, you would need to call a code module that was set to display/utilize the control, and retrieve all of the events generated by the control. TestStand can only currently call ActiveX servers (either DLL or EXE) that support the IDispatch interface. Hope this answers your question.

Regards,

Bob
Message 2 of 4
(3,593 Views)
I have a simple dll that I wrote with MFC that uses CSocket. This client application works well with MFC servers only.

I can e-mail code and dll if interested.

Steve
Message 3 of 4
(3,593 Views)
Hi Steve,

Now i'm restarting my activities concerning the described problem.
I would really appreciate if you could sent me
the described code to get an idea of your solution!

The server in my case is a running LabVIEW vi listening to one specified TCP/IP port for XML Files (as string).

Regards,
Sunny
0 Kudos
Message 4 of 4
(3,593 Views)