电力网信号源控制系统程序
电力网信号源控制系统程序;C++,{ m_dwTimeout = 5000; m_viSession = NULL; m_viDefRM = NULL;}CGpibInstr::~CGpibInstr() { m_viSession = NULL; m_viDefRM = NULL;} UINT CGpibInstr::GpibOpen(CString strIpAddr,UINT nGpibAddr) { ViStatus m_stat = 0; if(m_viSession != VI_NULL) { GpibClose(); } if (m_viSession == VI_NULL) { if (m_viDefRM == VI_NULL) { m_stat = viOpenDefaultRM(&m_viDefRM); if (m_stat != VI_SUCCESS) { TRACE("viOpen Default RM failed:%d\n",m_stat); return m_stat; } } char szResourceName[VI_FIND_BU FLEN];
用户评论