From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a DLL

I used a DLL to get ScanWorks' API into TestStand. I put in the parameters for this one function and just want to know if this is the correct format as I have not used a DLL before.

The functions parameters are also attached below.

 

The issue I think I have is that when I try to input the incorrect String parameter of a hardware that is not available or listed like "UB-10", it does not output any error when it should. I am not sure if TestStand is suppose to send a error message or will it be in ScanWork's test results?

Can anyone guide me toward the correct solution or confirm I am on the right track?

Download All
0 Kudos
Message 1 of 4
(2,523 Views)

Hi,

TestStand won't know that it's an incorrect reference. If the datatype matches what is expected, then that is all TS will know.

 

If the value of that does not match something inside the dll, then the dll itself needs to provide the error information.

 

Apart from that, you seem to be on the right track. I am surprised that the function doesn't return an error if it can't find the hardware, but as you've mentioned, that's something that ScanWorks should have sorted.

 

Nico

--------
Nico
Systems Engineer

Certified TestStand Architect Certified LabVIEW Architect

0 Kudos
Message 2 of 4
(2,481 Views)

Does anybody have this ScanWorks API document? I can't find it anywhere

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 3 of 4
(1,918 Views)

Disregard, the easiest way to get the info is to use the Help window in the ScanWorks GUI and search "API".

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 4 of 4
(1,878 Views)