GVA SUPPORT

³äïîâ³äü íà çàïèòàííÿ ¹ 1362401247
Text:
	ԲΠ= Òû 2

 Çàïèòàííÿ:using System;
using System.Collections.Generic;
using System.Text;

namespace EXP
{
    partial class Form1
    //class user
    {
        static void UserStendInit()
        {
            //---------Students code----------------BEGIN
            //C.SetStend1();		
            C.SetStend2();
            //C.SetStend3();
            //---------Students code----------------END
        }
//++++++++++++++++++++++++++++++++++++++++++++++++++++++
        static void UserCrateInit()
        {
            // C.SetDAC(3);	        			//example
            //---------Students code----------------BEGIN

            C.SetDAC(1);
            C.SetADC(2);
            C.SetDAC(3);
            C.SetADC(4);

            //---------Students code----------------END
        }
//++++++++++++++++++++++++++++++++++++++++++++++++++++++
        static void UserConnect()
        {
            // Connect.Set(3, 1, 0, 3);			//example
            //---------Students code----------------BEGIN

            Connect.Set(1, 1, 0, 5);
            Connect.Set(2, 1, 0, 6);
            Connect.Set(3, 1, 0, 1);
            Connect.Set(4, 1, 0, 2);

            //---------Students code----------------END
        }
//++++++++++++++++++++++++++++++++++++++++++++++++++++++
        static void Experiment()
        {
           
            //---------Students code----------------BEGIN

            int v = 2047;
            Do(1, 0, 17, 50);
            Do(3, 0, 17, 50);
            Do(3, 0, 16, v);
            for (int i = 5; i <= 15; i++)
            {
                Do(1, 0, 16, i*100);
                Time.Pause(36);
                int res_0 = Do(2, 0, 0, 0);
                int res_1 = Do(4, 0, 0, 0);
                double res0 = res_0 / 2047.0;
                double res1 = (res_1) / 2047.0;
                double temp=78.0+res0*0.015;
                double R_x = 1000.0*res1/(5.0-res1);
                string buf = String.Format("{0:0.#######}\t{1:0.#######}", temp, R_x);
                C.write(buf);
            }

            //---------Students code----------------END
        }
        //++++++++++++++++++++++++++++++++++++++++++++++++++++++
    }
}


====================================	
Âàøà â³äïîâ³äü