12.07.2015 Views

Modelo para trabalhos ABNT - Feevale

Modelo para trabalhos ABNT - Feevale

Modelo para trabalhos ABNT - Feevale

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

APÊNDICE G/*Aplicativo <strong>para</strong> seleção de ponto de teste*///Fábio Alano Hedler 2010#include #include #include #include #include void delay();using namespace std;int main(int argc, char *argv[]){char valor[1];char buf[256] = {0}, bufmulti [20], bufonte [20], medida[6],SCPIcmd[128];;ViSession defaultRM, Instrument,vif,vim;ViUInt32 actual;strcpy(valor, argv[1]);//------------------------------------------------------------------//Reset do contador//------------------------------------------------------------------strcpy(bufonte,"GPIB::005::INSTR");bufonte[18]=0;/*Abre sessão GPIB*/viOpenDefaultRM(&defaultRM);viOpen(defaultRM, bufonte, VI_NULL, VI_NULL, &vif);viPrintf(vif, "*IDN?\n");//Desliga a saída da fonteviWrite(vif, (ViBuf)"OUTP OFF", 8, &actual);//Ajusta tensãostrcpy(bufonte,"APPL P25V,12.00, 1.0");//Envia o comando <strong>para</strong> a fonte

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!