NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

error: "variant is not an array"

I'm getting an error

variant is not an array

when I run a dll in my TestStand sequence. I'm using the correct prototype:

long function(long)

so why is it asking me for an array? I tried to make a local array and pass it to the function

returnval = function(nums[0])

but it gave me the same error. What should I do?

Marek D
0 Kudos
Message 1 of 2
(3,637 Views)
Hello Marek,

You didn't mention when you get this error. You could try to place breakpoints in your DLL and check if the error is occuring inside your code, or in the prototype.

Also, you need to make sure that in TestStand at the DLL call you correclty specified the prototype. Making sure that you matched the data type and number of arguments.

You may also take a look at the example found at \Examples\AccessingArrays\PassingArrayParametersToDLL

Maybe you can provide some more information about the actual variable you are using, ex.: Locals.MyArray[0]

Regards,

Roberto P.
Applications Engineer
National Instruments
www.ni.com.ask
0 Kudos
Message 2 of 2
(3,637 Views)