Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Documentation for DataSocket ActiveX control

I'm using the DataSocket ActiveX control in a VB6 application. I need to obtain *ALL* data values and not only the last published on DataSocket server.

I know I have to use "buffered" connection, but I wasn't able to find any documentation about this issue in the online help, samples and so on.
While browsing properties, methods and enums exposed by the control, I find many undocumented items, and their names suggest they may be useful for my application (i.e.: method SyncConnectTo).

Any help will be appreciated.
T.I.A.

CarloX
Carlo A.
Megaris




0 Kudos
Message 1 of 4
(6,484 Views)
Hi,

the following link refers to a web document that explains the fundamentals of DataSocket Programming.

http://zone.ni.com/devzone/conceptd.nsf/webmain/9149C3CA1B23B6C3862569920055F425?opendocument

There is a section that deals with Buffering more specifically.

From the Datasocket Server>>Tools>>Diagnostics you can configure the Buffer on the DS Server side.

You can find all this info in the online datasocket server help.

AlessioD
National Instruments
0 Kudos
Message 2 of 4
(6,483 Views)
Hello

I already know about that (brief) document, and I already experimented on DS server side buffering.
This is not enough for a reliable communication between my client and server applications.

So I am forced to use the undocumented client-side buffering features of DS ActiveX.
I used the cwdsReadBufferedAutoUpdate AccessMode parameter for method ConnectTo and the ClientBufferMaxPackets property.

As stated in my previous message, I also found the following interesting methods:


  • SyncConnect

  • SyncConnectTo

  • SyncDisconnect

  • SyncRead

  • SyncWrite



Are all these items unsupported, undocumented or whatever ?

Or discovering the pu
rpose and the right way to use them is left as an exercise for the (busy) programmer ?

There are no references to all the bold keywords in all NI docs in my knowledge, on paper, CDs and even online on this website.

These will be the first ones 🙂

Regards
CarloX
Carlo A.
Megaris




0 Kudos
Message 3 of 4
(6,483 Views)
CarloX,

we will need to discuss this issue more in detail. Please contact our Technical Support Department in Italy by either posting a question on

www.ni.com/ask

or you can reach us at +39.02.41.30.92.17

Regards,

AlessioD
National Instruments
0 Kudos
Message 4 of 4
(6,483 Views)