Here is the code for the main part of the program I am running:
flex_reset_pos(boardID,1,0,0,0xFF);
flex_load_velocity(boardID,1,1000,0xFF);
flex_load_target_pos(boardID, 1, 10000, 0xFF);
flex_blend(boardID, 1, 0);
Sleep(1);
for (i = 0; i < 2000; ++i)
{
flex_read_pos(boardID,1,0xFF);
flex_read_adc(boardID,0x51,0xFF);
flex_communicate(boardID, NIMC_READ_RDB, 3,
&resource1, &comm1,val,0xFF);
flex_communicate(boardID, NIMC_READ_RDB, 3,
&resource2, &comm2, &adcvalues[i],0xFF);
positions[i] = (val[0] << 16) + val[1];
if (i > 0)
{
if (positions[i] == positions[i-1])
break;
}
}
This program is the only program running on my system. There are no on-board programs running either. Any ideas on how I can get
data from the board quicker. Thanx.
--Firoz