Passing Arrays

When passing arrays to PI-API functions, such as piar_compvalues, pass the first element of the array. For example:

status=piar_compvalues(pt,count,times[0],…

This differs from normal C syntax where only the name of the array is passed. The function declaration ensures that the address is passed rather than the value of the first element. It is possible to use 1-based arrays in Visual Basic, in which case the passed argument should still be the first element (e.g., times[1]).

Enabling Operational Intelligence