1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| public void Turn_off()
{
while(true)
{
System.Threading.Thread.Sleep(800);
hpib.WriteString("1MD?",true);
System.Threading.Thread.Sleep(50);
if(int.Parse(hpib.ReadString())==1)
{
System.Threading.Thread.Sleep(300);
hpib.WriteString("2MD?",true);
System.Threading.Thread.Sleep(50);
if(int.Parse(hpib.ReadString())==1)
{
System.Threading.Thread.Sleep(300);
hpib.WriteString("3MD?",true);
System.Threading.Thread.Sleep(50);
if(int.Parse(hpib.ReadString())==1)
{
break;
}
}
}
}
hpib.WriteString("1mf;2mf;3mf",true);
System.Threading.Thread.Sleep(50);
} |
Partager