LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

OutputList Function

Has anyone successfully used the OutputList function? When I tried to use it in the interactive window I received a build error: "Type error in argument 7 to `OutputList'; found 'int' expected
'ItemOutputFunction'."

Arg 7 is the OutputStringItem() function which is recommended.

Thanks,

Glen...
0 Kudos
Message 1 of 2
(2,922 Views)
You are supposed to specify a function pointer in this parameter, which is actually just the function name. If you place the parentheses after the function name the parameter will be evaluated as its return type instead of the function pointer type. For example, use a call like the following:

int OutputList (List, Stream,
List_Prefix[],
List_Suffix[],
Item_Prefix[],
Item_Suffix[],
Item_Output_Function);

where Item_Output_Function is the function pointer (e.g. name of the function) to a function with the prototype:

int CVICALLBACK Item_Output_Function(FILE *stream, void *ptrToItem);

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 2
(2,922 Views)