7 class IOScheduler_Example
9 public static void IOScheduler()
35 triggerGenerator.Open();
38 digitalOutput.Open(0);
41 triggerGenerator.ConfigureSet(
"GenA_tLow=5ms GenA_tHigh=5ms");
42 triggerGenerator.ConfigureSet(
"TrigOut0_Mux=GenA");
59 ioScheduler1.SetOutputPulsTiming(8 * 1000, 2 * 1000);
66 const UInt32 StartDelay = 4;
67 const UInt32 StepMul = 2;
68 for (UInt32 i = 0; i < 5; i++)
73 ioScheduler0.PushValue(StartDelay + StepMul * i, 2);
77 ioScheduler0.PushValue(StartDelay + StepMul * i, 1);
80 ioScheduler1.PushValue(StartDelay + StepMul * i, 1);
86 UInt32 iFillLevel = 0;
89 iFillLevel = ioScheduler0.BufferFillLevel;
91 while (iFillLevel > 0);
98 catch (System.Exception e)
100 Console.WriteLine(e.Message);
104 Console.WriteLine(
"\nPress enter to proceed...");
105 System.Console.ReadLine();