Interfaz de Usuario
Código
#include "Trayectoria.h"
static int panelHandle;
int SendAsciiString (int comport, char *send_ASCII);
int GetSerialMessage (int comport, char *readdata);
char readBuffer[256];
int main (int argc, char *argv[])
{
if (InitCVIRTE (0, argv, 0) == 0)
return -1; /* out of memory */
if ((panelHandle = LoadPanel (0, "Trayectoria.uir", PANEL)) < loopexit =" 0;" x="0;" error =" -1;" x="0;" begin =" Timer();" seconds =" 0.003;" inbuffer =" GetInQLen"> 2) {
ComRd (comport, readdata, InBuffer);
LoopExit = 1;
error = 0;
break;
}
SyncWait (Begin, Seconds);
}
if (x == 500)
break;
} while (LoopExit == 0);
return error;
}
static int panelHandle;
int SendAsciiString (int comport, char *send_ASCII);
int GetSerialMessage (int comport, char *readdata);
char readBuffer[256];
int main (int argc, char *argv[])
{
if (InitCVIRTE (0, argv, 0) == 0)
return -1; /* out of memory */
if ((panelHandle = LoadPanel (0, "Trayectoria.uir", PANEL)) < loopexit =" 0;" x="0;" error =" -1;" x="0;" begin =" Timer();" seconds =" 0.003;" inbuffer =" GetInQLen"> 2) {
ComRd (comport, readdata, InBuffer);
LoopExit = 1;
error = 0;
break;
}
SyncWait (Begin, Seconds);
}
if (x == 500)
break;
} while (LoopExit == 0);
return error;
}
INTERSANTE AHORA YO TENGO UN "ROBOPIC" EL CUAL DESEO APPLICAR TRAYECTORIAS PROGRAMABLES.ESTE ROBOT UTILIZA UN PIC16F887 Y MECOMUNICO VIA SERIAL CON EL PC. ES POSIBLE LOGRARLO .GRACIAS.
ResponderEliminar