NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Ho to run LV-DLL in TestStand with bool-parameters?

Hello,
i´m using LabView 8.21 and Teststand 3.5. Currentlly i´m playing with the project-Explorer where i´m creating DLLs.
The first and easiest step was to create a new VI with string-in and string-out.
Then i added this vi to my project and created a DLL from it.
This DLL is called in TestStand where the parameters are automatically detected and everything works perfect.

But when i add an boolean-input and boolean-output und do exactly the same then Teststand says:
 "This function either does not have parameter-information in the DLL or uses types not recognised by teststand."

The type of the boolean is "LVBOOLEAN" in the created header-file.

What am i doing wrong? Why is this simple bool-value not working? If bool works not then i can never use the Labview-error-out-cluster inside a DLL?
Or is there an easy trick to solve this?

Thanks for your help
0 Kudos
Message 1 of 2
(3,110 Views)
Hi OnlyOne,

I just verified your issue and figured out that a boolean value cannot be transfered to a LV dll, because the datatype representation of a boolean is different in LabVIEW than in C.

The flexible Prototype adapter from TesStand can identify the functions of your LabVIEW dll when you use basic datatypes like scalars, pointer to scalars or C strings. That's the reason why it works in your "String dll".

When one uses LabVIEW specific datatypes there will no typelibrary provided and it's essential to define the prototype manual in TestStand. I found a link that provides some more information to that:

http://digital.ni.com/public.nsf/websearch/DBCE27265FFB554986256C9400026FE8?OpenDocument

One possibillity to transfer boolean values simply to a LV dll would be to use a numeric value, for example an integer and use a comparison like "!0" in the LV dll to determine if the status means "true" or "false".

Hope that helps to come along with your application,

regards,

Nikolai




0 Kudos
Message 2 of 2
(3,087 Views)