10-09-2012 02:07 AM
// te.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include "flexmotn.h"
int _tmain(int argc, _TCHAR* argv[])
{
u8 ADC=0x01;
i16 ai[16];
u8 boardID=1;
flex_set_adc_range(boardID,ADC,NIMC_ADC_BIPOLAR_10);
flex_enable_adcs(boardID,1,1);
aa:
flex_read_adc_rtn(boardID,NIMC_ADC1,ai);
printf ("\n%d",ai[0]);
Sleep(1000);
goto aa;
return 0;
}
Why i can't get currect voltage?
10-09-2012 02:55 AM
PCI-7342 visual c++
09-01-2013 01:10 PM
I think this coding can be used in Visual C++