VDB Posted May 7, 2004 Report Share Posted May 7, 2004 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? Greetings, VDB Quote Link to comment
Michael Aivaliotis Posted May 8, 2004 Report Share Posted May 8, 2004 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. Quote Link to comment
the_mhudson Posted May 28, 2020 Report Share Posted May 28, 2020 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.