From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,544 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,523 Views)

Thanks Doug.

 

This is what I was expecting.

CT

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