GVA SUPPORT

³äïîâ³äü íà çàïèòàííÿ ¹ 1361799373
Text:
	ԲΠ= 3lab

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

namespace EXP
{
    partial class user
    //class user
    {
        static int Do(int N, int A, int F, int D_In) { return C.Do(N, A, F, D_In); } 
        public static void UserStendInit()
        {
            //---------Students code----------------BEGIN
            C.SetStend1();		
            //C.SetStend2();
            //C.SetStend3();
            //---------Students code----------------END
        }
//++++++++++++++++++++++++++++++++++++++++++++++++++++++
        public static void UserCrateInit()
        {
            // C.SetDAC(3);	        			//example
            //---------Students code----------------BEGIN
            C.SetStep(1);
            C.SetADC(4);
            C.SetCAS(3);
            C.SetDAC(2);
            //---------Students code----------------END
        }
//++++++++++++++++++++++++++++++++++++++++++++++++++++++
        public static void UserConnect()
        {
            // Connect.Set(3, 1, 0, 3);			//example
            //---------Students code----------------BEGIN
            Connect.Set(1, 1, 0, 10);
            Connect.Set(1, 2, 0, 11);
            Connect.Set(2, 1, 3, 0);
            Connect.Set(3, 1, 0, 1);
            Connect.Set(3, 2, 0, 2);
            Connect.Set(4, 1, 0, 3);

            //---------Students code----------------END
        }
//++++++++++++++++++++++++++++++++++++++++++++++++++++++
        public static void Experiment()
        {
            /*
            double T1 = Time.get();
            for (int n = 0; n < 10; n++)
            {
                Console.Beep(5000, 200);
                Time.Pause(1.25);
            }
            double T2 = Time.get();
            double dT = T2 - T1;
            Console.Beep(3000, 500);
            return;
            */


            // int u = Do(3, 0, 0, 0);
            // string buf = String.Format(" {0:0.###}\t{1:0.###}", U, I);
            // C.write(buf);

            //---------Students code----------------BEGIN
            int t = 0;
            bool a, b;
            for (int n = 0; n < 5; n++)
            {
                t = 0;
                a = false;
                b = false;
                Do(1, 0, 16, -10);
                Time.Pause(2);
                Do(1, 1, 16, 2);
                Time.Pause(2);
                Do(1, 0, 16, 15);
                Time.Pause(2);
                Do(3, 0, 16, 2);
                //for (int k = 0; k < 2047; k += 100)
                //{
                    Do(2, 0, 16, 2047);
                    //double U = 5.0 * k / 2047.0;
                    double U1 = Do(4, 0, 0, 0) * 5.0 / 2047.0;
                    //double I = 5.0 - U1 / (50);
                    Time.Pause(1);
                    if ((Math.Abs(U1)>0.10) & (Math.Abs(U1)<0.7)) a = false; else a = true;
                    //string buf = String.Format(" {0:0.###}\t{1:0.###}", U1, I);
                    //C.write(buf);
                //}
                //Do(3, 0, 16, 1);
                Do(3, 0, 16, 2);
                //for (int k = -2047; k < 0; k += 100)
                //{
                    Do(2, 0, 16, -2047);
                    U1 = Do(4, 0, 0, 0) * 5.0 / 2047.0;
                    Time.Pause(1);
                    if ((Math.Abs(U1)>0.10) & (Math.Abs(U1)<0.7)) b = false; else b = true;
                    
                    //double U = 5.0 * k / 2047.0;
                    //double U1 = Do(4, 0, 0, 0) * 5.0 / 2047.0;
                    //double I = U - U1 / (5500.0);
                    //Time.Pause(0.01);
                    //string buf = String.Format(" {0:0.###}\t{1:0.###}", U1, I);
                    //C.write(buf);
                //}
                Do(1, 1, 16, 2);
                Time.Pause(2);
                if (a & b) t = 9; else t = 0;
                Do(1, 0, 16, t+ 1);
                Time.Pause(2);
                Do(1, 1, 16, 16);
                Time.Pause(2);
                //t = t + 8;
                //if (t == 32) t = 0;
            }
            
            //---------Students code----------------END
        }
        //++++++++++++++++++++++++++++++++++++++++++++++++++++++
    }
}



====================================


 ANSWER ====================================

It's a real plesaure to find someone who can think like that


 END of ANSWER ====================================



 ANSWER ====================================

Grade A stuff. I'm <a href="http://ozoehfdrwjc.com">unaoisteunqbly</a> in your debt.


 END of ANSWER ====================================



 ANSWER ====================================

That's a smart answer to a diuffcilt question. http://nuokrlmsiev.com [url=http://dpiqbv.com]dpiqbv[/url] [link=http://vnoqnct.com]vnoqnct[/link]


 END of ANSWER ====================================



 ANSWER ====================================

Hats off to <a href="http://lkkwnajld.com">whveeor</a> wrote this up and posted it.


 END of ANSWER ====================================

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