Subversion Repositories f9daq

Rev

Rev 159 | Rev 162 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 159 Rev 161
Line 1... Line 1...
1
#include "MPOD.h"
1
#include "MPOD.h"
2
 
-
 
3
#include "HVtest_ui.h"
2
#include "HVtest_ui.h"
-
 
3
 
-
 
4
#define HVSLOT 3
4
 
5
 
5
static int p1h, pID, rID, tfID;
6
static int p1h, pID, rID, tfID;
6
 
7
 
7
int CVICALLBACK refreshTimer (int panel, int control, int event, void *callbackData,
8
int CVICALLBACK refreshTimer (int panel, int control, int event, void *callbackData,
8
                              int eventData1, int eventData2) {
9
                              int eventData1, int eventData2) {
Line 12... Line 13...
12
 
13
 
13
int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
14
int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
14
                       LPSTR lpszCmdLine, int nCmdShow) {
15
                       LPSTR lpszCmdLine, int nCmdShow) {
15
 
16
 
16
  int mainonoff,onoff[4];
17
  int mainonoff,onoff[4];
17
  int ch=200,mo=2;
18
  int ch=100*HVSLOT,mo=HVSLOT;
18
  int iret;
19
  int iret;
19
  int i, j;
20
  int i, j;
20
  double ret;
21
  double ret;
21
  double vset[4],cset[4],vrise[4],vfall[4];
22
  double vset[4],cset[4],vrise[4],vfall[4];
22
  char cret[2000];
23
  char cret[2000];
Line 26... Line 27...
26
 
27
 
27
  if (InitCVIRTE (hInstance, 0, 0) == 0)
28
  if (InitCVIRTE (hInstance, 0, 0) == 0)
28
    return -1;    /* out of memory */
29
    return -1;    /* out of memory */
29
 
30
 
30
  MPOD_Start();
31
  MPOD_Start();
-
 
32
  MPOD_Open(0,"arich-mpod1.kek.jp");
31
  MPOD_Open(0,"f9mpod.ijs.si");
33
//  MPOD_Open(0,"f9mpod.ijs.si");
32
  crate1 = crateHsnmp[0];
34
  crate1 = crateHsnmp[0];
33
 
35
 
34
  iret=MPOD_GetInt(0,"moduleNumber.0");
36
  iret=MPOD_GetInt(0,"moduleNumber.0");
35
  printf("Module Number = %i\n", iret);
37
  printf("Module Number = %i\n", iret);
36
 
38