Example #1
0
        /// <summary>
        /// Get the string for log output.
        /// </summary>
        /// <param name="obj">Structure that you want to convert to a string</param>
        /// <returns>String for log output</returns>
        public static StringBuilder ConvertToLogString(LJV7IF_GET_BATCH_PROFILE_ADVANCE_RSP rsp)
        {
            StringBuilder sb = new StringBuilder();

            // Profile information of the profile obtained
            sb.AppendLine(string.Format(@"  GetBatchNo		: {0}", rsp.dwGetBatchNo));
            sb.AppendLine(string.Format(@"  GetBatchProfCnt		: {0}", rsp.dwGetBatchProfCnt));
            sb.AppendLine(string.Format(@"  GetBatchTopProfNo	: {0}", rsp.dwGetBatchTopProfNo));
            sb.Append(string.Format(@"  GetProfCnt		: {0}", rsp.byGetProfCnt));

            return(sb);
        }
Example #2
0
 internal static extern int LJV7IF_GetBatchProfileAdvance(int lDeviceId, ref LJV7IF_GET_BATCH_PROFILE_ADVANCE_REQ pReq,
                                                          ref LJV7IF_GET_BATCH_PROFILE_ADVANCE_RSP pRsp, ref LJV7IF_PROFILE_INFO pProfileInfo,
                                                          IntPtr pdwBatchData, uint dwDataSize, [Out] LJV7IF_MEASURE_DATA[] pBatchMeasureData, [Out] LJV7IF_MEASURE_DATA[] pMeasureData);