Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 156 → Rev 157

/cvi/instr/MPOD/MPOD.c
161,9 → 161,9
double ret;
// double voltage;
double vSet=0;
int ch=0;
int ch=200;
int iret;
// int i, j;
int i, j;
char cret[2000];
 
HSNMP crate1;
172,12 → 172,20
return -1; /* out of memory */
 
MPOD_Start();
MPOD_Open(0,"arich-mpod1.kek.jp");
// MPOD_Open(0,"arich-mpod1.kek.jp");
MPOD_Open(0,"f9mpod.ijs.si");
crate1 = crateHsnmp[0];
printf("-----------------------------------------------------------------\n");
 
strcpy(cret, MPOD_GetString(0,"moduleDescription.ma0"));
/*
for (i=0;i<8;i++) {
setChannelSwitch(crate1, i, 0);
setOutputVoltage(crate1, i, 0.);
setChannelSwitch(crate1, 100+i, 0);
setOutputVoltage(crate1, 100+i, 0.);
}
*/
strcpy(cret, MPOD_GetString(0,"moduleDescription.ma2"));
printf("Module type: %s\n",cret);
iret=getMainSwitch(crate1);
190,9 → 198,10
iret=MPOD_GetIntCh(0,"fanNominalSpeed",0);
printf("Fan nominal speed = %i\n", iret);
 
ret=MPOD_GetDouble(0,"outputVoltage.1");
ret=MPOD_GetDouble(0,"outputVoltage.201");
printf("Output Voltage = %f.\n", ret);
 
setOutputVoltage(crate1, ch, 9000.);
// vSet = getOutputVoltage(crate1, ch);
vSet = MPOD_GetDoubleCh(0, "outputVoltage", ch+1);
printf("Output Voltage %i = %f.\n", ch, vSet);
/cvi/instr/MPOD/MPOD.prj
1,6 → 1,6
[Project Header]
Version = 1302
Pathname = "/c/SAMO/Programi/NI/cvi/instr/MPOD/MPOD.prj"
Pathname = "/c/home/cvi/instr/MPOD/MPOD.prj"
CVI Dir = "/c/program files (x86)/national instruments/cvi2013"
CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI"
CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2013"
34,7 → 34,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "MPOD.c"
Path = "/c/SAMO/Programi/NI/cvi/instr/MPOD/MPOD.c"
Path = "/c/home/cvi/instr/MPOD/MPOD.c"
Exclude = False
Compile Into Object File = False
Project Flags = 0
47,7 → 47,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "MPOD.h"
Path = "/c/SAMO/Programi/NI/cvi/instr/MPOD/MPOD.h"
Path = "/c/home/cvi/instr/MPOD/MPOD.h"
Exclude = False
Project Flags = 0
Folder = "Include Files"
59,7 → 59,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "net-snmp-config.h"
Path = "/c/SAMO/Programi/NI/cvi/instr/MPOD/net-snmp-config.h"
Path = "/c/home/cvi/instr/MPOD/net-snmp-config.h"
Exclude = False
Project Flags = 0
Folder = "Include Files"
70,7 → 70,7
Res Id = 4
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../../../../../../usr/lib/netsnmp.lib"
Path Rel Path = "../../../../usr/lib/netsnmp.lib"
Path = "/c/usr/lib/netsnmp.lib"
Exclude = False
Project Flags = 0
83,7 → 83,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "MPOD.fp"
Path = "/c/SAMO/Programi/NI/cvi/instr/MPOD/MPOD.fp"
Path = "/c/home/cvi/instr/MPOD/MPOD.fp"
Exclude = False
Project Flags = 0
Folder = "Instrument Files"
381,10 → 381,10
Include Path 1 Is Rel = True
Include Path 1 Rel To = "Project"
Include Path 1 Rel Path = "include"
Include Path 1 = "/c/SAMO/Programi/NI/cvi/instr/MPOD/include"
Include Path 1 = "/c/home/cvi/instr/MPOD/include"
Include Path 2 Is Rel = True
Include Path 2 Rel To = "Project"
Include Path 2 Rel Path = "../../../../../../usr/include"
Include Path 2 Rel Path = "../../../../usr/include"
Include Path 2 = "/c/usr/include"
 
[Create Executable]
391,19 → 391,19
Executable File_Debug Is Rel = True
Executable File_Debug Rel To = "Project"
Executable File_Debug Rel Path = "MPOD.exe"
Executable File_Debug = "/c/SAMO/Programi/NI/cvi/instr/MPOD/MPOD.exe"
Executable File_Debug = "/c/home/cvi/instr/MPOD/MPOD.exe"
Executable File_Release Is Rel = True
Executable File_Release Rel To = "Project"
Executable File_Release Rel Path = "MPOD.exe"
Executable File_Release = "/c/SAMO/Programi/NI/cvi/instr/MPOD/MPOD.exe"
Executable File_Release = "/c/home/cvi/instr/MPOD/MPOD.exe"
Executable File_Debug64 Is Rel = True
Executable File_Debug64 Rel To = "Project"
Executable File_Debug64 Rel Path = "MPOD.exe"
Executable File_Debug64 = "/c/SAMO/Programi/NI/cvi/instr/MPOD/MPOD.exe"
Executable File_Debug64 = "/c/home/cvi/instr/MPOD/MPOD.exe"
Executable File_Release64 Is Rel = True
Executable File_Release64 Rel To = "Project"
Executable File_Release64 Rel Path = "MPOD.exe"
Executable File_Release64 = "/c/SAMO/Programi/NI/cvi/instr/MPOD/MPOD.exe"
Executable File_Release64 = "/c/home/cvi/instr/MPOD/MPOD.exe"
Icon File Is Rel = False
Icon File = ""
Application Title = ""