日期:2014-05-17 浏览次数:20507 次
int _stdcall rd6sn_gethisdata_withinsert(u_int32_t pt, int starttime,int endtime,float *value,int type);
[DllImport(dll_name, EntryPoint = "rd6sn_gethisdata_withinsert")] public static extern int rd6sn_gethisdata_withinsert(UInt32 pt, int starttime, int endtime, ref float[] value, int type); DateTime dtend = DateTime.Parse("2012-5-7 10:30:00"); DateTime dtBegin = DateTime.Parse("2012-5-7 10:10:00"); DateTime DataTime1970 = DateTime.Parse("1970-1-1"); int begitime = (int)(dtBegin - DataTime1970).TotalMilliseconds; int begiendtime = (int)(dtend - DataTime1970).TotalMilliseconds; long[] vlueflqqq = new long[1]; float[] vluefl = new float[1]; DataPeek.DPG.DPGClass.rd6sn_gethisdata_withinsert(8024, begitime, begiendtime, ref vluefl, 3);