Ejemplo n.º 1
0
        public unsafe float[] TC08GetSingle(out bool ok)
        {
            short status;
            short overflow;

            ok     = false;
            status = Imports.TC08GetSingle(m_handle,
                                           tempbuffer,
                                           &overflow,
                                           Imports.TempUnit.USBTC08_UNITS_CENTIGRADE);
            if (status == PICO_OK)
            {
                ok = true;
            }
            return(tempbuffer);
        }
Ejemplo n.º 2
0
        public unsafe float[] TC08GetSingle2(out bool ok)
        {
            short status;
            short overflow;

            ok     = false;
            status = Imports.TC08GetSingle(m_handle,
                                           tempbuffer,
                                           &overflow,
                                           Imports.TempUnit.USBTC08_UNITS_CENTIGRADE);
            if (status == PICO_OK)
            {
                ok = true;
            }
            int j = 0;

            for (int i = 1; i < tempbuffer.Length; i++)
            {
                tempbuffer2[j++] = tempbuffer[i];
            }

            return(tempbuffer2);
        }