Exemplo n.º 1
0
        public int GetPowerInfo(int channelIndex, out float[][] voltageInfo, out float[][] currentInfo)
        {
            TagPGVCParam PGVCParam = new TagPGVCParam();

            voltageInfo = new float[PGVCParam.wData.Length][];
            currentInfo = new float[PGVCParam.wData.Length][];

            int Res = SCPGCtrl.SCPGCommReadVCParam(Handle, out PGVCParam);

            for (int i = 0; i < PGVCParam.wData.Length; i++)
            {
                voltageInfo[i][0] = PGVCParam.wData[i].wVCh1;
                voltageInfo[i][1] = PGVCParam.wData[i].wVCh2;
                voltageInfo[i][2] = PGVCParam.wData[i].wVCh3;
                voltageInfo[i][3] = PGVCParam.wData[i].wVCh4;
                voltageInfo[i][4] = PGVCParam.wData[i].wVCh5;
                voltageInfo[i][5] = PGVCParam.wData[i].wVCh6;
                voltageInfo[i][6] = PGVCParam.wData[i].wVCh7;
                voltageInfo[i][7] = PGVCParam.wData[i].wVCh8;
                currentInfo[i][0] = PGVCParam.wData[i].wCCh1;
                currentInfo[i][1] = PGVCParam.wData[i].wCCh2;
                currentInfo[i][2] = PGVCParam.wData[i].wCCh3;
                currentInfo[i][3] = PGVCParam.wData[i].wCCh4;
                currentInfo[i][4] = PGVCParam.wData[i].wCCh5;
                currentInfo[i][5] = PGVCParam.wData[i].wCCh6;
                currentInfo[i][6] = PGVCParam.wData[i].wCCh7;
                currentInfo[i][7] = PGVCParam.wData[i].wCCh8;
            }
            return(Res);
        }
Exemplo n.º 2
0
 public extern static int SCPGCommReadVCParam(IntPtr lpComm, out TagPGVCParam pgVCParam);