public static void WritePMCDataTableInt(ushort handle, ushort startingAddress, ushort endingAddress) { FocasLibBase.IODBPMC2 f = new FocasLibBase.IODBPMC2(); f.ldata = new int[10]; f.type_a = 9; f.type_d = 1; f.datano_s = (short)startingAddress; f.datano_e = (short)endingAddress; for (int i = 0; i < 10; i++) { f.ldata[i] = 0; } var ret = FocasLib.pmc_wrpmcrng(handle, 8 + (20 * 2), f); }
public static List <int> ReadPMCDataTableInt(ushort handle, ushort startingAddress, ushort endingAddress) { FocasLibBase.IODBPMC2 f = new FocasLibBase.IODBPMC2(); FocasLib.pmc_rdpmcrng(handle, 9, 1, startingAddress, endingAddress, 8 + (20 * 2), f); return(f.ldata.ToList()); }