09-30-2013 03:28 PM
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
10-01-2013 10:36 AM
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
10-01-2013 10:40 AM
Thanks Doug.
This is what I was expecting.
CT