Exemplo n.º 1
0
 static bool ConsoleEventCallback(int eventType)
 {
     if (eventType == 2)
     {
         SocketSrv.KillAll();
     }
     return(false);
 }
Exemplo n.º 2
0
        public Program()
        {
            server = new SocketSrv();
            camera = new Camera();

            string configFile = @"dalsa_config\500Hz_ex1800_gain_1_blk_1_tr_line1__debounce_100us.ccf";

            MyAcquisitionParams acqParams = new MyAcquisitionParams();

            acqParams.ConfigFileName = configFile;
            acqParams.ResourceIndex  = 0;
            acqParams.ServerName     = "Linea_M4096-7um_1";

            camera.InitDevice(acqParams);

            _save_dir = Program.GetDateTimeDash() + "-cam/";
            Directory.CreateDirectory(_save_dir);
            camera.SaveTo(_save_dir);
        }