NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling DLL with local arrays as arguments

Hi,

 

Is it ok call a dll and pass local array as an argument assuming that the function declaration matches TestStand's definition?

Inside my dll do I access them as Integers or Doubles?

 

Thanks

CT

0 Kudos
Message 1 of 3
(3,923 Views)

Yes, TestStand supports passing arrays directly into C functions. You need to make sure the prototype you specify in TestStand exactly matches your C prototype. If you specify that the array is an array of 32-bit integers on the TestStand side, then that is what you should access on the C function's side. In your screen shot, you show two array parameters, one is an array of doubles and one is an array of 32-bit integers. Whatever you specify it as on the TestStand side is what you should expect to get on the C function side. TestStand will do the conversion of the numbers for you.

 

-Doug

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

Thanks Doug.

 

This is what I was expecting.

CT

0 Kudos
Message 3 of 3
(3,899 Views)