Again, for 2.0 this works fine. Sending the sync string (~FF0000000000000) doesn't get a response back of 'sync'. I'm thinking the LIFA and LabVIEW code is ok, but I'm at a loss where to proceed into the Teensy 3 libs.
I'll simplify further a vi for the test case (later today, I hope), but thought I'd bring it up now just in case it's a "Oh!" moment...
Here's where it seems to break in the LabVIEWInterface.ino code. ~Line 114.
Regards, Mark
I'll simplify further a vi for the test case (later today, I hope), but thought I'd bring it up now just in case it's a "Oh!" moment...
Here's where it seems to break in the LabVIEWInterface.ino code. ~Line 114.
Code:
// Processes a given command
void processCommand(unsigned char command[])
{
// Determine Command
if(command[0] == 0xFF && checksum_Test(command) == 0)
{
switch(command[1])
{
/*********************************************************************************
** LIFA Maintenance Commands
*********************************************************************************/
case 0x00: // Sync Packet
Serial.print("sync");
Serial.flush();
break;
case 0x01: // Flush Serial Buffer
Serial.flush();
break;
Regards, Mark