05-24-2024 03:15 PM
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?
05-25-2024 01:59 AM
Guess you’ve tried having this structure type-def’ed in TestStand and configure the cluster-passing accordingly?
05-25-2024 07:03 AM - edited 05-25-2024 07:03 AM
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.