Hi,
I am currently programming a 7344 motion control board in Visual C++.
Right now I am using the function flex_wait_for_move_complete function but it causes an exception error when passing the pointer, moveComplete, into the function ( it is the last argument).
According to the prototype, u16* waitComplete is a returned pointer the function returns. 1 if move is complete, 0 if move is not. Maybe I am referencing it and using it the wrong way.
In my function
void moveSingleAxis(..)
{
u16* moveComplete = (u16*)1;
//some code
status = flex_wait_for_move_complete(boardid, NIMC_AXIS1, NIMC_AXIS_CTRL, 10000, 20, waitComplete);
//status is used for error checking, but irrelevant to my problem
}
If I make the pointer to 0 or NULL, flex will error and say pass in null pointer . If I make the pointer to any other number it causes null reference exception error. Any help? thanks!
-Mike