public static void ResetCluster()
        {
            XLDefine.XL_Status txStatus;

            xl_event_collection xlEventCollection = new xl_event_collection(4);

            xlEventCollection.xlEvent[0].tagData.can_Msg.id      = 30;
            xlEventCollection.xlEvent[0].tagData.can_Msg.dlc     = 1;
            xlEventCollection.xlEvent[0].tagData.can_Msg.data[0] = 0;
            xlEventCollection.xlEvent[0].tag = XL_EventTags.XL_TRANSMIT_MSG;

            xlEventCollection.xlEvent[1].tagData.can_Msg.id      = 10;
            xlEventCollection.xlEvent[1].tagData.can_Msg.dlc     = 1;
            xlEventCollection.xlEvent[1].tagData.can_Msg.data[0] = 0;
            xlEventCollection.xlEvent[1].tag = XL_EventTags.XL_TRANSMIT_MSG;

            xlEventCollection.xlEvent[2].tagData.can_Msg.id      = 20;
            xlEventCollection.xlEvent[2].tagData.can_Msg.dlc     = 1;
            xlEventCollection.xlEvent[2].tagData.can_Msg.data[0] = 0;
            xlEventCollection.xlEvent[2].tag = XL_EventTags.XL_TRANSMIT_MSG;

            xlEventCollection.xlEvent[3].tagData.can_Msg.id      = 40;
            xlEventCollection.xlEvent[3].tagData.can_Msg.dlc     = 2;
            xlEventCollection.xlEvent[3].tagData.can_Msg.data[0] = 0;
            xlEventCollection.xlEvent[3].tagData.can_Msg.data[1] = 0;
            xlEventCollection.xlEvent[3].tag = XL_EventTags.XL_TRANSMIT_MSG;


            txStatus = CANDriver.XL_CanTransmit(portHandle, txMask, xlEventCollection);
        }
        public static void SendInfo(uint mask, int speed)
        {
            XLDefine.XL_Status txStatus;

            xl_event_collection xlEventCollection = new xl_event_collection(4);

            xlEventCollection.xlEvent[0].tagData.can_Msg.id      = 30;
            xlEventCollection.xlEvent[0].tagData.can_Msg.dlc     = 1;
            xlEventCollection.xlEvent[0].tagData.can_Msg.data[0] = (byte)mask;
            xlEventCollection.xlEvent[0].tag = XL_EventTags.XL_TRANSMIT_MSG;

            xlEventCollection.xlEvent[1].tagData.can_Msg.id      = 10;
            xlEventCollection.xlEvent[1].tagData.can_Msg.dlc     = 1;
            xlEventCollection.xlEvent[1].tagData.can_Msg.data[0] = (byte)speed;
            xlEventCollection.xlEvent[1].tag = XL_EventTags.XL_TRANSMIT_MSG;

            xlEventCollection.xlEvent[2].tagData.can_Msg.id      = 20;
            xlEventCollection.xlEvent[2].tagData.can_Msg.dlc     = 1;
            xlEventCollection.xlEvent[2].tagData.can_Msg.data[0] = (byte)horn;
            xlEventCollection.xlEvent[2].tag = XL_EventTags.XL_TRANSMIT_MSG;

            xlEventCollection.xlEvent[3].tagData.can_Msg.id      = 40;
            xlEventCollection.xlEvent[3].tagData.can_Msg.dlc     = 2;
            xlEventCollection.xlEvent[3].tagData.can_Msg.data[0] = (byte)curr_time_hours;
            xlEventCollection.xlEvent[3].tagData.can_Msg.data[1] = (byte)curr_time_minutes;
            xlEventCollection.xlEvent[3].tag = XL_EventTags.XL_TRANSMIT_MSG;

            txStatus = CANDriver.XL_CanTransmit(portHandle, txMask, xlEventCollection);
        }