NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Evaluating .NET structure

Hi everyone !

I am using Teststand 2013 and I am successfully calling functions from the "FlashMagicPS" .NET DLL/API

(like Connect, ReadSignature, Program2, Verify and Disconnect)..

This all works fine (most if the time)

Now I wish to evaluate the return value for better security.

I get a pointer to a structure, which also includes the desired "status int"

Q: How to open the structure (in the .NET DLL) and how to access and evaluate the value ?

 

Thanks

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

I don't know this library, maybe you could share more details about it? Do you know the exact structure of return values?

Mateusz Owczarek

Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 2 of 4
(1,188 Views)

Hi.

I have a lot of calls like this:

greybeard_0-1603699928119.png

Each call returns -a pointer- to a structure in the dll:

greybeard_1-1603700002290.png

I wish to evaluate the "result" for positive (=good) or negative (=bad) numbers.

Thanks for any idea ...

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

Did you see and try these:

https://forums.ni.com/t5/NI-TestStand/Import-structure-from-a-DLL-CVI-compiled-into-TestStand/td-p/1...

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019WUeSAM&l=pl-PL

 

Maybe it will help?

 

Mateusz Owczarek

Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 4 of 4
(1,163 Views)