08-08-2006 12:25 PM
------------------------------------------------------------------------------------------------------------------------------
void
__cdecl main(void){i32 status=0;
u8 boardID=1; //PCI 7350 board
u8 program=1;
if(status == NIMC_noError){
//Begin on board program storage
status = flex_begin_store (boardID, program);
printf(
"\n On Board Program Storage started\n");}
if (status == NIMC_noError){//Do the sequential moves
status = doMove1(boardID);
if (status)ErrorHandler((u16)status, 0, 0); //do Move1 loads the trajectory parameters and runs the "flex_start" function.status = doMove2(boardID); if (status)ErrorHandler((u16)status, 0, 0); //do Move2 loads the trajectory parameters and runs the "flex_start" function.
}
//////End program storage/////if(status == NIMC_noError){
status = flex_end_store (boardID, program );
printf(
"\n On Board Program Storage completed\n");}
/////Now run the stored program/////if(status == NIMC_noError){
status = flex_run_prog(boardID, program);
printf(
"\n Running the program now\n");}
printf(
"\n\nFinished.\n"); }//end main------------------------------------------------------------------------------------------------------------------------------
The program compiles, but when I try to run it, I only see 1 printf, that is the first printf statement " On Board Program Storage started". I want to be sure that the program will be able to make all the moves on-board. Can someone please comment or suggest any improvements?
Thanks,
-Karan
08-09-2006 02:21 AM