NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

DataSocket Step type

I have copied from the developer zone the DataSocket step type for TS. I'm not able to use it. After I enter the URL and Data field I become an error that says "Error executing substep 'Configure URL'. System Level Exception. Error code:-17502"
Can somebody help me? thanks a lot

Angel
0 Kudos
Message 1 of 16
(4,237 Views)
Hi Angel,

There was a bug in the code that only allowed the pathname for the UIR to be 100 characters. I fixed this and rebuilt the DLL and now everything seems to be working. I have rebuilt the DLL in CVI 7.0 and attached it. Let me know if it works.

Ryan
0 Kudos
Message 2 of 16
(4,231 Views)
Hi Ryan,
Could you please send a small TestStand sequence example where you write and read values with this step type?

Thanks

Angel
0 Kudos
Message 3 of 16
(4,231 Views)
Hi Angel,

Upon closer inspection, there seems to be some things wrong inside of the code. I will look at the step type and fix the errors that I find. When I am done I can send you an update.

Ryan
0 Kudos
Message 4 of 16
(4,231 Views)
Hi Angel,

Attached is an example (saved as TestStand 2.0 file) that uses the datasocket step type to read and write from the datasocket server. Note that the server must be running before you run this example. There are just a few problems with the error handling mechanism and I have fixed those. Please try it out and let me know what happens.

Ryan
Download All
0 Kudos
Message 5 of 16
(4,231 Views)
Hi Ryan,
This is very strange. Since I've installed this new DLL I cannot run the DataSocket server anymore. Everytime I try launch it appears an error. I attach you the error image.
0 Kudos
Message 6 of 16
(4,231 Views)
Hi Angel,

I ran the sequence file on my machine, with the DLL I sent you. Do you have the CVI 7.0 run time engine installed? What version of TestStand are you using?

Ryan
0 Kudos
Message 7 of 16
(4,231 Views)
Hi Ryan,
I have TestStand 3.0 and I've also have the CVI Run-Time Engine version 7.0.0.393. No matter if I don not open TestStand, everytrime I try to run DataSocket server it appears this message. I've also have a computer with TestStand 2.0.1 and I cannot run DataSocket server anymore. I will try to desinstall DataSocket and install it again to check if it works.

Angel
0 Kudos
Message 8 of 16
(4,231 Views)
Hi Angel,

I am not sure what happened. All I am attaching the changes I made to the code. You can view them in a text editor if you do not have CVI. All I did was make a change to the error handling routine, so I do not understand what corrupted the datasocket server. I cannot imagine that any changes I made to the file caused the break. I am rebuilding the DLL in release mode, so please try using this one. I also am attaching the UIR file used to build this dll which is now in version 7.0. Replace all files with the contents of the zipped folder (attached). Hope this helps. As I said, I ran it on two different machines over here and it works. Let me know what happens so we can get to
the bottom of the problem. Thanks!

Ryan
0 Kudos
Message 9 of 16
(4,231 Views)
I've been trying to get datasocket read/write steps to work under TestStand too. I downloaded the original posting, as well as Ryan's updates, but no luck. When I try the "Configure URL" edit step, I get a runtime error code -143, indicating an "ActiveX error". The error appears to originate in function "TS_ExprCtrl_Create()." When I try the 'datasocket write' step, I get a runtime error string "DS_SetDataValue: (return value == -2147024890). The handle is invalid". This error may be the result of the first error.

I'm running TestStand 3.1, CVI 7.1, on a Win 2K machine. Any help most appreciated. Kevin Redmond
0 Kudos
Message 10 of 16
(4,173 Views)