NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Embedding Type Libraries in a LabVIEW DLL for use in TestStand

I know that if I install Microsoft Development Technologies Build Tools, I can select the "Include a type library for TestStand or Call Library Nodes" option in the LabVIEW build specification for a DLL. This option enables TestStand to automatically recognize DLL function parameters. It works fine with simple data types such as numerics, booleans, or strings. However, when I try to use more complex types, such as an error cluster or a VISA resource name, TestStand throws the error "This function does not have parameter information in the DLL or uses types not recognized by TestStand." Is it possible to configure the DLL build in a way that allows TestStand to automatically recognize more complex data types like clusters?

 

I know that it is possible to pass a cluster from/to a VI compiled into a DLL, but can TestStand detect the type on its own and prepare the parameters for me?

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 1 of 3
(254 Views)

Guess you’ve tried having this structure type-def’ed in TestStand and configure the cluster-passing accordingly?

 

0 Kudos
Message 2 of 3
(206 Views)

Well, an error is predefined, so I don't think so. It seems that this feature is either poorly implemented or there are some technical limitations for such auto-detection. However, it would be sufficient for it to automatically set the C struct (for clusters), and the type would need to be selected by the user. Similarly with arrays.

I noticed that it can recognize simple basic types on its own. Try arrays or clusters, and it gives up. Furthermore, even if you want to configure a function call that only has simple types, if there is at least one function with a cluster in the DLL, it will also give up.

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 3 of 3
(185 Views)