public bool DirectWrite(GpibAgilent dev, string cmd) { if (!dev.GpibWrt(cmd)) { return(false); } return(true); }
public bool DirectRead(GpibAgilent dev, ref float rdata, string pow) { string strRx; string[] temp; if (!dev.GpibRd(out strRx)) { return(false); } strRx = strRx.Replace(" ", string.Empty); temp = strRx.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); //modify yjseon temp.CopyTo(measureVal, 0); //end modify rdata = (float)(double.Parse(temp[0]) * Math.Pow(10, double.Parse(pow))); return(true); }