public void Run() { Visa.Open(ConnectionStr); Visa.Send("Output:SYNC On"); Visa.Send("Output1 ON"); Visa.Send("Output1:Load INF"); Visa.Send("SOURCE1:Function Sin"); Visa.Send("SOURCE1:Freq 100"); Visa.Send("SOURCE1:Volt:Offset 4.7"); Visa.Send("SOURCE1:Volt:Unit Vpp"); Visa.Close(); }
public void Run() { Receiver.Start(); System.Threading.Thread.Sleep(3000); Visa.Open(ConnectionStr); Visa.Send("Output:SYNC On"); Visa.Send("Output1 ON"); Visa.Send("Output1:Load INF"); Visa.Send("SOURCE1:Function Sin"); Visa.Send("SOURCE1:Volt:Unit Vpp"); Visa.Send("SOURCE1:Volt:Offset 4.7"); Visa.Send("SOURCE1:Volt 0.787"); //주파수 검사 SetFreq(20); SetFreq(40); SetFreq(80); SetFreq(100); SetFreq(160); SetFreq(315); SetFreq(630); SetFreq(1250); SetFreq(2500); SetFreq(5000); //진폭 검사 Visa.Send("SOURCE1:Freq 100"); SetAmp(50); SetAmp(100); SetAmp(200); SetAmp(500); SetAmp(1000); //회전수 검사 SetFreq(20); SetFreq(30); SetFreq(60); SetFreq(90); SetFreq(120); Tabular.SaveXLS("DAQ & Omap Template.xlsx", "D:\\문서\\Result.xlsx"); Visa.Close(); Receiver.Stop(); }