NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

return array to teststand from dll

Hello,

 

I have created a very simple custom step type, which has a dll module. The dll has been compiled in LV2010. The function in the dll receives a "Config" cluster from TS, and returns an array of numbers.

 

The Config container is a custom data type, passing this to the DLL is working.

 

The returning array of numbers has also a custom data type, as it should be handles as a LabView array. In the custom step type I have added a "Response" variable of this custom data type. Additionally, I have added a local variable in the MainSequence of this custom data type.

 

Both custom data types I have created according to this knowledge base.

http://digital.ni.com/public.nsf/allkb/22BF02003B4588808625717F003ECD67?OpenDocument

 

And now comes the point: on the specify module page, I can select the TestStand variable, where the returning array should be written. It is working, if the returning array goes to the local variable. But it doesn't work, if the returning array will be passed to the Step.Response variable. The Step.Response variable has the same type, as the local variable. So why doesn't it work with the Step.Response??? In this case, the Step,Response array stays empty.

 

Attached you find a sequence with both working and not working steps.

 

Madottati

 

0 Kudos
Message 1 of 2
(4,361 Views)

Hi Madottati,

 

Looking at your project, I wasn't able to find the casue of trouble.

Could you please provide us your VI and LV project that you used to create the DLL?

Also if I add a new Custom Step, the return parameter that should be written to Step.Response is not defined in the function call.

Please describe the steps which are necessary to create the steps which are part of your exemplary project.

 

Regards

Christian

Christian
CLA, CTA, CLED
0 Kudos
Message 2 of 2
(4,181 Views)