Jump to content

Datasocket items

Recommended Posts

Hi all,

I'm looking for a method to programmatically get a list of all items on a Datasocket server. Does somebody know if this is possible?



Link to post
Share on other sites

I don't know of a way to enumerate the items. However you can bring up an interactive window programmatically. If you go to the datasocket pallete then you can run the VI called Datasocket Select URL.vi. This will allow you to choose a URL. I know this is not ideal but I see no other way.


Link to post
Share on other sites
  • 16 years later...

I'm working on a project with a similar need.
It isn't impossible, but the "enumerate the items at this DS URL" part is hidden from the programmer.

The datasocket ActiveX library can be called directly in whatever programming environment you want (LabVIEW, Visual Studio) by pointing at CWDSLib.  When you call CWDSLib's select(), a NInetbrowser (BROWSERLib) is built, the URLs are retrieved through NILogosxt prestidigitation, and then the browser is presented to the user.  I've spent a little time watching this with procmon, Ollydbg and wireshark, but haven't been able to put all the pieces together yet. 
In the end, I expect the process to be a series of hacky calls to nids.dll and nilxtcor.dll.

Link to post
Share on other sites

Join the conversation

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

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.