/cvi/instr/AitSipmDAQ/Ait.cws |
---|
1,6 → 1,6 |
[Workspace Header] |
Version = 1302 |
Pathname = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/Ait.cws" |
Pathname = "/c/home/rok/AitSipmDAQ/Ait.cws" |
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" |
12,12 → 12,14 |
Number of Projects = 1 |
Active Project = 1 |
Project 0001 = "Ait.prj" |
Drag Bar Left = 192 |
Window Top = 174 |
Window Left = 106 |
Window Bottom = 1245 |
Window Right = 1531 |
Maximized = True |
Project 0001 Folder Source Files Collapsed = True |
Project 0001 FolderId 1 Collapsed = True |
Drag Bar Left = 428 |
Window Top = 41 |
Window Left = 19 |
Window Bottom = 760 |
Window Right = 1281 |
Maximized = False |
Maximized Children = True |
Max32 Number Of Errors = 20 |
Track Include File Dependencies = True |
30,9 → 32,9 |
Hide Windows = False |
Break At First Statement = False |
Sort Type = "File Name" |
Number of Opened Files = 8 |
Number of Opened Files = 11 |
Window Confinement Region Enabled = True |
MainColumnWidth = 175 |
MainColumnWidth = 411 |
FileDateColumnWidth = 70 |
FileSizeColumnWidth = 70 |
48,7 → 50,7 |
[File 0001] |
Path = "/c/home/CVI/instr/HISTO/H1D.fp" |
File Type = "Function Panel" |
Disk Date = 3568109474 |
Disk Date = 3604311472 |
In Projects = "1," |
Window Top = 268 |
Window Left = 131 |
58,7 → 60,7 |
[File 0002] |
Path = "/c/home/CVI/instr/HISTO/H2D.fp" |
File Type = "Function Panel" |
Disk Date = 3568109474 |
Disk Date = 3604311472 |
In Projects = "1," |
Window Top = 154 |
Window Left = 71 |
68,7 → 70,7 |
[File 0003] |
Path = "/c/home/CVI/instr/HISTO/H3D.fp" |
File Type = "Function Panel" |
Disk Date = 3568109474 |
Disk Date = 3604311472 |
In Projects = "1," |
Window Top = 230 |
Window Left = 111 |
78,121 → 80,158 |
[File 0004] |
Path = "/c/home/CVI/instr/MIKRO/MIKRO.fp" |
File Type = "Function Panel" |
Disk Date = 3510051229 |
Disk Date = 3604311476 |
In Projects = "1," |
[File 0005] |
Path = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitInterface.c" |
Path = "/c/home/cvi/instr/uSMC/uSMC.fp" |
File Type = "Function Panel" |
Disk Date = 3604311473 |
In Projects = "1," |
[File 0006] |
Path = "/c/home/rok/AitSipmDAQ/AitInterface.c" |
File Type = "CSource" |
Disk Date = 3568719878 |
Disk Date = 3570693835 |
In Projects = "1," |
Window Top = 192 |
Window Left = 91 |
Window Z-Order = 2 |
Source Window State = "1,427,427,427,7,27,27,0,0,80,0,704,0,0,0,25,589,0,592,16,349,683,1,13," |
Window Z-Order = 4 |
Source Window State = "1,1004,1004,1004,56,61,61,0,0,80,0,704,0,0,0,25,985,0,1004,56,349,683,1,13," |
[File 0006] |
Path = "/c/home/CVI/instr/MIKRO/MIKRO.c" |
[File 0007] |
Path = "/c/home/rok/AitSipmDAQ/AitGui.c" |
File Type = "CSource" |
Disk Date = 3510051229 |
Disk Date = 3604766340 |
In Projects = "1," |
Window Top = 33 |
Window Left = 10 |
Window Z-Order = 3 |
Source Window State = "1,757,757,757,23,35,23,0,0,68,0,1,0,1,0,25,740,0,774,39,349,587,1,0," |
[File 0008] |
Path = "/c/home/cvi/instr/MIKRO/MIKRO.c" |
File Type = "CSource" |
Disk Date = 3604311476 |
In Projects = "" |
Window Top = 31 |
Window Z-Order = 6 |
Window Z-Order = 9 |
Source Window State = "1,0,0,0,0,0,0,0,0,70,0,0,0,0,0,28,30,0,110,21,400,600,1,0," |
[File 0007] |
Path = "/c/home/CVI/instr/HISTO/H2D.c" |
[File 0009] |
Path = "/c/home/cvi/instr/HISTO/H2D.c" |
File Type = "CSource" |
Disk Date = 3568109474 |
Disk Date = 3604311472 |
In Projects = "" |
Window Top = 31 |
Window Z-Order = 4 |
Window Z-Order = 8 |
Source Window State = "1,302,302,302,2,26,2,0,0,70,0,0,0,0,0,28,204,0,256,16,400,600,1,0," |
[File 0008] |
Path = "/c/home/CVI/instr/HISTO/H1D.c" |
[File 0010] |
Path = "/c/home/cvi/instr/HISTO/H1D.c" |
File Type = "CSource" |
Disk Date = 3568109474 |
Disk Date = 3604311472 |
In Projects = "" |
Window Top = 64 |
Window Left = 26 |
Window Z-Order = 5 |
Source Window State = "1,275,276,275,0,0,0,0,0,80,0,0,0,0,0,25,240,0,264,17,349,683,1,0," |
Window Z-Order = 7 |
Source Window State = "1,275,276,275,0,0,0,0,0,80,0,0,0,0,0,25,51,0,63,2,349,683,1,0," |
[File 0009] |
Path = "/c/home/CVI/instr/HISTO/H1D.h" |
[File 0011] |
Path = "/c/home/cvi/instr/HISTO/H1D.h" |
File Type = "Include" |
Disk Date = 3568109474 |
Disk Date = 3604311474 |
In Projects = "" |
Window Top = 95 |
Window Left = 42 |
Window Z-Order = 8 |
Window Z-Order = 11 |
Source Window State = "1,75,75,75,15,23,23,0,3,80,0,0,0,0,0,25,54,0,75,15,349,683,1,0," |
[File 0010] |
Path = "/c/home/CVI/instr/HISTO/H2D.h" |
[File 0012] |
Path = "/c/home/cvi/instr/HISTO/H2D.h" |
File Type = "Include" |
Disk Date = 3568109474 |
Disk Date = 3604311472 |
In Projects = "" |
Window Top = 126 |
Window Left = 58 |
Window Z-Order = 7 |
Window Z-Order = 10 |
Source Window State = "1,93,93,93,14,22,22,0,3,80,0,0,0,0,0,25,73,0,93,14,349,683,1,0," |
[File 0011] |
Path = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitGui.uir" |
[File 0013] |
Path = "/c/home/rok/AitSipmDAQ/AitGui.uir" |
File Type = "User Interface Resource" |
Disk Date = 3568719878 |
Disk Date = 3604765737 |
In Projects = "1," |
Window Top = 40 |
Window Left = 11 |
Window Height = 349 |
Window Width = 683 |
Window Z-Order = 1 |
[File 0012] |
Path = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitGui.c" |
File Type = "CSource" |
Disk Date = 3568719878 |
In Projects = "1," |
[File 0014] |
Path = "/c/home/rok/AitSipmDAQ/AitMduManager.h" |
File Type = "Include" |
Disk Date = 3570693835 |
In Projects = "" |
Window Top = 33 |
Window Left = 10 |
Window Z-Order = 3 |
Source Window State = "1,668,668,668,35,39,39,0,0,68,0,1,0,1,0,25,637,0,645,19,349,587,1,0," |
Window Z-Order = 6 |
Source Window State = "1,32,32,32,29,60,29,0,3,90,0,0,0,0,0,25,20,0,32,60,349,763,1,0," |
[File 0013] |
Path = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitMduManager.lib" |
[File 0015] |
Path = "/c/home/rokd/qe2d/qe2d.c" |
File Type = "CSource" |
Disk Date = 3604384290 |
In Projects = "" |
Window Top = 64 |
Window Left = 26 |
Window Z-Order = 5 |
Source Window State = "1,42,42,42,11,18,11,0,3,80,0,0,0,0,0,25,30,0,42,18,349,683,1,0," |
[File 0016] |
Path = "/c/home/rok/AitSipmDAQ/AitMduManager.lib" |
File Type = "Library" |
Disk Date = 3568719878 |
Disk Date = 3570693835 |
In Projects = "1," |
[File 0014] |
Path = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitInterface.h" |
[File 0017] |
Path = "/c/home/rok/AitSipmDAQ/AitInterface.h" |
File Type = "Include" |
Disk Date = 3568719878 |
Disk Date = 3570693835 |
In Projects = "1," |
Window Top = 154 |
Window Left = 71 |
Source Window State = "1,14,15,14,5,26,5,0,0,0,0,0,0,0,0,0,11,0,14,15,349,771,1,0," |
[File 0015] |
Path Line0001 = "/c/Users/rok/Downloads/NativeExportsSample/AitSipmDAQDll/NativeExportsConsumerAp" |
Path Line0002 = "p/targetver.h" |
File Type = "Include" |
Disk Date = 3494852820 |
In Projects = "" |
Window Z-Order = 1 |
Source Window State = "1,0,0,0,0,0,0,0,0,163,0,0,0,0,0,43,0,0,0,0,400,600,0,0," |
[File 0018] |
Path = "/c/home/cvi/instr/uSMC/msvc/USMCDLL.lib" |
File Type = "Library" |
Disk Date = 3604311472 |
In Projects = "1," |
[File 0019] |
Path = "/c/home/rok/AitSipmDAQ/XYSCAN.uir" |
File Type = "User Interface Resource" |
Disk Date = 3604766561 |
In Projects = "1," |
Window Top = 95 |
Window Left = 42 |
Window Height = 206 |
Window Width = 683 |
Window Z-Order = 2 |
[Tab Order] |
Tab 0001 = "/c/home/CVI/instr/MIKRO/MIKRO.c" |
Tab 0002 = "/c/home/CVI/instr/HISTO/H2D.c" |
Tab 0003 = "/c/home/CVI/instr/HISTO/H1D.c" |
Tab 0004 = "/c/home/CVI/instr/HISTO/H1D.h" |
Tab 0005 = "/c/home/CVI/instr/HISTO/H2D.h" |
Tab 0006 = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitGui.c" |
Tab 0007 = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitInterface.c" |
Tab 0008 Line0001 = "/c/Users/rok/Downloads/NativeExportsSample/AitSipmDAQDll/NativeExportsConsumerAp" |
Tab 0008 Line0002 = "p/targetver.h" |
Tab 0001 = "/c/home/cvi/instr/MIKRO/MIKRO.c" |
Tab 0002 = "/c/home/cvi/instr/HISTO/H2D.c" |
Tab 0003 = "/c/home/cvi/instr/HISTO/H1D.c" |
Tab 0004 = "/c/home/cvi/instr/HISTO/H1D.h" |
Tab 0005 = "/c/home/cvi/instr/HISTO/H2D.h" |
Tab 0006 = "/c/home/rok/AitSipmDAQ/AitInterface.c" |
Tab 0007 = "/c/home/rok/AitSipmDAQ/AitMduManager.h" |
Tab 0008 = "/c/home/rok/AitSipmDAQ/AitGui.uir" |
Tab 0009 = "/c/home/rok/AitSipmDAQ/AitGui.c" |
Tab 0010 = "/c/home/rokd/qe2d/qe2d.c" |
Tab 0011 = "/c/home/rok/AitSipmDAQ/XYSCAN.uir" |
[Default Build Config 0001 Debug] |
Generate Browse Info = True |
/cvi/instr/AitSipmDAQ/Ait.prj |
---|
1,6 → 1,6 |
[Project Header] |
Version = 1302 |
Pathname = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/Ait.prj" |
Pathname = "/c/home/rok/AitSipmDAQ/Ait.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" |
9,7 → 9,7 |
VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" |
IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" |
VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" |
Number of Files = 9 |
Number of Files = 12 |
Target Type = "Executable" |
Flags = 2064 |
Copied From Locked InstrDrv Directory = False |
35,7 → 35,7 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "AitGui.uir" |
Path = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitGui.uir" |
Path = "/c/home/rok/AitSipmDAQ/AitGui.uir" |
Exclude = False |
Project Flags = 0 |
Folder = "User Interface Files" |
42,12 → 42,24 |
Folder Id = 0 |
[File 0002] |
File Type = "CSource" |
File Type = "User Interface Resource" |
Res Id = 2 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "XYSCAN.uir" |
Path = "/c/home/rok/AitSipmDAQ/XYSCAN.uir" |
Exclude = False |
Project Flags = 0 |
Folder = "User Interface Files" |
Folder Id = 0 |
[File 0003] |
File Type = "CSource" |
Res Id = 3 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "AitGui.c" |
Path = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitGui.c" |
Path = "/c/home/rok/AitSipmDAQ/AitGui.c" |
Exclude = False |
Compile Into Object File = False |
Project Flags = 0 |
54,13 → 66,13 |
Folder = "Source Files" |
Folder Id = 1 |
[File 0003] |
[File 0004] |
File Type = "CSource" |
Res Id = 3 |
Res Id = 4 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "AitInterface.c" |
Path = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitInterface.c" |
Path = "/c/home/rok/AitSipmDAQ/AitInterface.c" |
Exclude = False |
Compile Into Object File = False |
Project Flags = 0 |
67,36 → 79,48 |
Folder = "Source Files" |
Folder Id = 1 |
[File 0004] |
[File 0005] |
File Type = "Library" |
Res Id = 4 |
Res Id = 5 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "AitMduManager.lib" |
Path = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitMduManager.lib" |
Path = "/c/home/rok/AitSipmDAQ/AitMduManager.lib" |
Exclude = False |
Project Flags = 0 |
Folder = "Library Files" |
Folder Id = 2 |
[File 0005] |
[File 0006] |
File Type = "Library" |
Res Id = 6 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "../../cvi/instr/uSMC/msvc/USMCDLL.lib" |
Path = "/c/home/cvi/instr/uSMC/msvc/USMCDLL.lib" |
Exclude = False |
Project Flags = 0 |
Folder = "Library Files" |
Folder Id = 2 |
[File 0007] |
File Type = "Include" |
Res Id = 5 |
Res Id = 7 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "AitInterface.h" |
Path = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/AitInterface.h" |
Path = "/c/home/rok/AitSipmDAQ/AitInterface.h" |
Exclude = False |
Project Flags = 0 |
Folder = "Include Files" |
Folder Id = 3 |
[File 0006] |
[File 0008] |
File Type = "Function Panel" |
Res Id = 6 |
Res Id = 8 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "../../../../../../../home/CVI/instr/HISTO/H1D.fp" |
Path Rel Path = "../../CVI/instr/HISTO/H1D.fp" |
Path = "/c/home/CVI/instr/HISTO/H1D.fp" |
Exclude = False |
Project Flags = 0 |
103,12 → 127,12 |
Folder = "Instrument Files" |
Folder Id = 4 |
[File 0007] |
[File 0009] |
File Type = "Function Panel" |
Res Id = 7 |
Res Id = 9 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "../../../../../../../home/CVI/instr/HISTO/H2D.fp" |
Path Rel Path = "../../CVI/instr/HISTO/H2D.fp" |
Path = "/c/home/CVI/instr/HISTO/H2D.fp" |
Exclude = False |
Project Flags = 0 |
115,12 → 139,12 |
Folder = "Instrument Files" |
Folder Id = 4 |
[File 0008] |
[File 0010] |
File Type = "Function Panel" |
Res Id = 8 |
Res Id = 10 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "../../../../../../../home/CVI/instr/HISTO/H3D.fp" |
Path Rel Path = "../../CVI/instr/HISTO/H3D.fp" |
Path = "/c/home/CVI/instr/HISTO/H3D.fp" |
Exclude = False |
Project Flags = 0 |
127,12 → 151,12 |
Folder = "Instrument Files" |
Folder Id = 4 |
[File 0009] |
[File 0011] |
File Type = "Function Panel" |
Res Id = 9 |
Res Id = 11 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "../../../../../../../home/CVI/instr/MIKRO/MIKRO.fp" |
Path Rel Path = "../../CVI/instr/MIKRO/MIKRO.fp" |
Path = "/c/home/CVI/instr/MIKRO/MIKRO.fp" |
Exclude = False |
Project Flags = 0 |
139,6 → 163,18 |
Folder = "Instrument Files" |
Folder Id = 4 |
[File 0012] |
File Type = "Function Panel" |
Res Id = 12 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "../../cvi/instr/uSMC/uSMC.fp" |
Path = "/c/home/cvi/instr/uSMC/uSMC.fp" |
Exclude = False |
Project Flags = 0 |
Folder = "Instrument Files" |
Folder Id = 4 |
[Custom Build Configs] |
Num Custom Build Configs = 0 |
207,7 → 243,7 |
File Version Ex = "%f1.%f2" |
Internal Name = "Ait" |
Internal Name Ex = "%basename" |
Legal Copyright = "Copyright © 2017" |
Legal Copyright = "Copyright © 2018" |
Legal Copyright Ex = "Copyright © %company %Y" |
Legal Trademarks = "" |
Legal Trademarks Ex = "" |
431,19 → 467,19 |
Executable File_Debug Is Rel = True |
Executable File_Debug Rel To = "Project" |
Executable File_Debug Rel Path = "Ait.exe" |
Executable File_Debug = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/Ait.exe" |
Executable File_Debug = "/c/home/rok/AitSipmDAQ/Ait.exe" |
Executable File_Release Is Rel = True |
Executable File_Release Rel To = "Project" |
Executable File_Release Rel Path = "Ait.exe" |
Executable File_Release = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/Ait.exe" |
Executable File_Release = "/c/home/rok/AitSipmDAQ/Ait.exe" |
Executable File_Debug64 Is Rel = True |
Executable File_Debug64 Rel To = "Project" |
Executable File_Debug64 Rel Path = "Ait.exe" |
Executable File_Debug64 = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/Ait.exe" |
Executable File_Debug64 = "/c/home/rok/AitSipmDAQ/Ait.exe" |
Executable File_Release64 Is Rel = True |
Executable File_Release64 Rel To = "Project" |
Executable File_Release64 Rel Path = "Ait.exe" |
Executable File_Release64 = "/c/Users/rok/Documents/rok/lab/gamma_camera/AitSipmDAQ/Ait.exe" |
Executable File_Release64 = "/c/home/rok/AitSipmDAQ/Ait.exe" |
Icon File Is Rel = False |
Icon File = "" |
Application Title = "" |
/cvi/instr/AitSipmDAQ/AitGui.c |
---|
12,7 → 12,7 |
#include "H2D.h" |
#include "H3D.h" |
static int node[3]; |
typedef unsigned short ushort; |
typedef unsigned int uint; |
24,6 → 24,15 |
#include "MIKRO.h" |
#endif |
#define uSMC_USB |
#ifdef uSMC_USB |
# include "uSMC.h" |
# define uSMC_SERIAL_X "0000000000004925" |
# define uSMC_SERIAL_Y "0000000000006030" |
# define uSMC_SERIAL_Z "0000000000002894" |
const char serials[3][16]= {uSMC_SERIAL_X,uSMC_SERIAL_Y,uSMC_SERIAL_Z}; |
#endif /* uSMC_USB */ |
static int daq_on; |
static int plothandle[4]= {0,0,0, 0}; |
static int tfID; |
457,17 → 466,29 |
#ifdef MIKRO |
MIKRO_MoveTo(2,ix[1]); |
MIKRO_GetPosition(2,&n[1]); |
SetCtrlVal (xyscan, SCAN_YP, n[1]); |
#endif |
SetCtrlVal (xyscan, SCAN_YP, n[1]); |
#endif |
#ifdef uSMC_USB |
uSMC_MoveTo(node[1],ix[1]); |
uSMC_GetPosition(node[1],&n[1]); |
SetCtrlVal (xyscan, SCAN_YP, n[1]); |
#endif |
for (int i=0; i<nx[0]; i++) { |
SetCtrlVal (xyscan, SCAN_IX, i); |
ix[0]= x0[0]+i*dx[0]; |
#ifdef MIKRO |
MIKRO_MoveTo(1,ix[0]); |
MIKRO_MoveTo(1,ix[0]); |
MIKRO_GetPosition(1,&n[0]); |
SetCtrlVal (xyscan, SCAN_XP, n[0]); |
#endif |
#ifdef uSMC_USB |
uSMC_MoveTo(node[0],ix[0]); |
uSMC_GetPosition(node[0],&n[0]); |
SetCtrlVal (xyscan, SCAN_XP, n[0]); |
#endif |
if (enabledoutput) { |
fp = fopen(filename,"ab"); |
486,7 → 507,7 |
} |
} |
#endif |
int newfile=0; |
daq(&newfile); |
if (!daq_on) break; |
499,7 → 520,7 |
int main (int argc, char *argv[]) { |
short port; |
if (InitCVIRTE (0, argv, 0) == 0) |
return -1; /* out of memory */ |
if ((ait = LoadPanel (0, "AitGui.uir", AIT)) < 0) |
515,11 → 536,19 |
#ifdef MIKRO |
GetCtrlVal(xyscan, SCAN_PORT, &port); |
short port; |
GetCtrlVal(xyscan, SCAN_PORT, &port); |
if (MIKRO_Open (port)) MessagePopup ("Error", "Mikro Port Not found !\n Change in the GUI") ; |
MIKRO_Init(1,0); |
MIKRO_Init(2,0); |
#endif |
#ifdef uSMC_USB |
uSMC_Open(); |
for (int i=0; i<3; i++) { |
node[i]=uSMC_FindSerial(serials[i])+1; |
uSMC_Init(node[i],1); |
} |
#endif /* uSMC_USB */ |
RunUserInterface (); |
526,7 → 555,11 |
#ifdef MIKRO |
MIKRO_Close (); |
#endif |
#endif |
#ifdef uSMC_USB |
for (int i=0; i<3; i++) uSMC_PowerOff(node[i]); |
uSMC_Close(); |
#endif /* uSMC_USB */ |
DiscardPanel (ait); |
DiscardPanel (xyscan); |
return 0; |
717,7 → 750,17 |
if (axis == 1) SetCtrlVal (panel, SCAN_XP, n); |
if (axis == 2) SetCtrlVal (panel, SCAN_YP, n); |
} |
#endif // MIKRO |
#endif // MIKRO |
#ifdef uSMC_USB |
{ |
int n=0; |
uSMC_MoveFor(node[axis-1], direction*step ); |
uSMC_GetPosition(node[axis-1],&n); |
if (axis == 1) SetCtrlVal (panel, SCAN_XP, n); |
if (axis == 2) SetCtrlVal (panel, SCAN_YP, n); |
} |
#endif // MIKRO |
} |
break; |
738,8 → 781,12 |
#ifdef MIKRO |
MIKRO_MoveTo(1,n2); |
MIKRO_GetPosition(1,&n2); |
#endif |
#ifdef uSMC_USB |
uSMC_MoveTo(node[0],n2); |
uSMC_GetPosition(node[0],&n2); |
#endif |
SetCtrlVal (panel, SCAN_XP, n2); |
break; |
} |
757,6 → 804,10 |
MIKRO_GetPosition(2,&n2); |
#endif |
#ifdef uSMC_USB |
uSMC_MoveTo(node[1],n2); |
uSMC_GetPosition(node[1],&n2); |
#endif |
SetCtrlVal (panel, SCAN_YP, n2); |
break; |
} |
766,16 → 817,21 |
int CVICALLBACK GetCurrentPositionCB (int panel, int control, int event, |
void *callbackData, int eventData1, int eventData2) { |
int n[2]; |
switch (event) { |
case EVENT_COMMIT: { |
#ifdef MIKRO |
int n[2]; |
MIKRO_GetPosition(1,&n[0]); |
SetCtrlVal (panel, SCAN_XP, n[0]); |
MIKRO_GetPosition(2,&n[1]); |
SetCtrlVal (panel, SCAN_YP, n[1]); |
#endif |
#ifdef uSMC_USB |
uSMC_GetPosition(node[0],&n[0]); |
SetCtrlVal (panel, SCAN_XP, n[0]); |
uSMC_GetPosition(node[1],&n[1]); |
SetCtrlVal (panel, SCAN_YP, n[1]); |
#endif |
break; |
} |
} |
791,6 → 847,12 |
MIKRO_ReferenceMove(2); |
GetCurrentPositionCB(panel, control, event, NULL, 0, 0); |
#endif |
#ifdef uSMC_USB |
//SetCtrlVal(panel,P1_STAGELED,1); |
for (int i=0; i<3; i++) uSMC_ReferenceMove(node[i]); |
GetCurrentPositionCB(panel, control, event, NULL, 0, 0); |
//SetCtrlVal(panel,P1_STAGELED,0); |
#endif /* uSMC_USB */ |
break; |
} |
return 0; |
/cvi/instr/AitSipmDAQ/AitGui.h |
---|
1,98 → 1,98 |
/**************************************************************************/ |
/* LabWindows/CVI User Interface Resource (UIR) Include File */ |
/* */ |
/* WARNING: Do not add to, delete from, or otherwise modify the contents */ |
/* of this include file. */ |
/**************************************************************************/ |
#include <userint.h> |
#ifdef __cplusplus |
extern "C" { |
#endif |
/* Panels and Controls: */ |
#define AIT 1 |
#define AIT_OPENSCAN 2 /* control type: command, callback function: OpenScanCB */ |
#define AIT_RESET 3 /* control type: command, callback function: ResetCB */ |
#define AIT_EXIT 4 /* control type: command, callback function: ExitCB */ |
#define AIT_SETADCSUMGAIN 5 /* control type: command, callback function: SetAdcSumGainCB */ |
#define AIT_SETADCGAIN 6 /* control type: command, callback function: SetAdcGainCB */ |
#define AIT_SETADCINTEGRATIONTIME 7 /* control type: command, callback function: SetAdcIntegrationTimeCB */ |
#define AIT_SETADCTHRESHOLD 8 /* control type: command, callback function: SetAdcThresholdCB */ |
#define AIT_SETBIAS 9 /* control type: command, callback function: SetBiasCB */ |
#define AIT_STOP 10 /* control type: command, callback function: StopCB */ |
#define AIT_QUICKSETUP_3 11 /* control type: command, callback function: QuickCB */ |
#define AIT_PATHNAME 12 /* control type: string, callback function: (none) */ |
#define AIT_FILENAME 13 /* control type: string, callback function: (none) */ |
#define AIT_QUICKSETUP_2 14 /* control type: command, callback function: QuickCB */ |
#define AIT_PFREQ 15 /* control type: numeric, callback function: (none) */ |
#define AIT_QUICKSETUP_1 16 /* control type: command, callback function: QuickCB */ |
#define AIT_INIT 17 /* control type: command, callback function: InitCB */ |
#define AIT_READ 18 /* control type: command, callback function: ReadCB */ |
#define AIT_UPDATEPLOTS 19 /* control type: radioButton, callback function: (none) */ |
#define AIT_LOGY 20 /* control type: radioButton, callback function: (none) */ |
#define AIT_ENABLEDOUTPUT 21 /* control type: radioButton, callback function: (none) */ |
#define AIT_DEBUG 22 /* control type: radioButton, callback function: (none) */ |
#define AIT_START 23 /* control type: command, callback function: StartCB */ |
#define AIT_MAX 24 /* control type: numeric, callback function: (none) */ |
#define AIT_CH 25 /* control type: numeric, callback function: ChangeChannelCB */ |
#define AIT_ADCSUMGAIN 26 /* control type: numeric, callback function: (none) */ |
#define AIT_NEVE 27 /* control type: numeric, callback function: (none) */ |
#define AIT_ADCGAIN 28 /* control type: numeric, callback function: (none) */ |
#define AIT_ADCINTEGRATIONTIME 29 /* control type: numeric, callback function: (none) */ |
#define AIT_ADCTHRESHOLD 30 /* control type: numeric, callback function: (none) */ |
#define AIT_XYCUT 31 /* control type: numeric, callback function: (none) */ |
#define AIT_BIAS 32 /* control type: numeric, callback function: (none) */ |
#define AIT_GRAPHXY 33 /* control type: graph, callback function: (none) */ |
#define AIT_GETADCSUMGAIN 34 /* control type: numeric, callback function: (none) */ |
#define AIT_GRAPHSUM 35 /* control type: graph, callback function: (none) */ |
#define AIT_GRAPH 36 /* control type: graph, callback function: (none) */ |
#define AIT_GETADCGAIN 37 /* control type: numeric, callback function: (none) */ |
#define AIT_GETADCINTEGRATIONTIME 38 /* control type: numeric, callback function: (none) */ |
#define AIT_GETADCTHRESHOLD 39 /* control type: numeric, callback function: (none) */ |
#define AIT_BIASMON 40 /* control type: numeric, callback function: (none) */ |
#define AIT_DAQTRANSFERRATE 41 /* control type: numeric, callback function: (none) */ |
#define AIT_DAQTIMEMS 42 /* control type: numeric, callback function: (none) */ |
#define AIT_DAQBLOCKSIZE 43 /* control type: numeric, callback function: (none) */ |
#define AIT_CEVE 44 /* control type: numeric, callback function: (none) */ |
#define AIT_STDIO 45 /* control type: textBox, callback function: (none) */ |
#define AIT_TIMER 46 /* control type: timer, callback function: SetTimeoutCB */ |
#define AIT_TRGTYPE 47 /* control type: ring, callback function: SetDiscriminatorTypeCB */ |
#define AIT_RTIMER 48 /* control type: timer, callback function: (none) */ |
/* Control Arrays: */ |
/* (no control arrays in the resource file) */ |
/* Menu Bars, Menus, and Menu Items: */ |
/* (no menu bars in the resource file) */ |
/* Callback Prototypes: */ |
int CVICALLBACK ChangeChannelCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK ExitCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK InitCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK OpenScanCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK QuickCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK ReadCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK ResetCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetAdcGainCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetAdcIntegrationTimeCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetAdcSumGainCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetAdcThresholdCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetBiasCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetDiscriminatorTypeCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetTimeoutCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK StartCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK StopCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
#ifdef __cplusplus |
} |
#endif |
/**************************************************************************/ |
/* LabWindows/CVI User Interface Resource (UIR) Include File */ |
/* */ |
/* WARNING: Do not add to, delete from, or otherwise modify the contents */ |
/* of this include file. */ |
/**************************************************************************/ |
#include <userint.h> |
#ifdef __cplusplus |
extern "C" { |
#endif |
/* Panels and Controls: */ |
#define AIT 1 |
#define AIT_OPENSCAN 2 /* control type: command, callback function: OpenScanCB */ |
#define AIT_RESET 3 /* control type: command, callback function: ResetCB */ |
#define AIT_EXIT 4 /* control type: command, callback function: ExitCB */ |
#define AIT_SETADCSUMGAIN 5 /* control type: command, callback function: SetAdcSumGainCB */ |
#define AIT_SETADCGAIN 6 /* control type: command, callback function: SetAdcGainCB */ |
#define AIT_SETADCINTEGRATIONTIME 7 /* control type: command, callback function: SetAdcIntegrationTimeCB */ |
#define AIT_SETADCTHRESHOLD 8 /* control type: command, callback function: SetAdcThresholdCB */ |
#define AIT_SETBIAS 9 /* control type: command, callback function: SetBiasCB */ |
#define AIT_STOP 10 /* control type: command, callback function: StopCB */ |
#define AIT_QUICKSETUP_3 11 /* control type: command, callback function: QuickCB */ |
#define AIT_PATHNAME 12 /* control type: string, callback function: (none) */ |
#define AIT_FILENAME 13 /* control type: string, callback function: (none) */ |
#define AIT_QUICKSETUP_2 14 /* control type: command, callback function: QuickCB */ |
#define AIT_PFREQ 15 /* control type: numeric, callback function: (none) */ |
#define AIT_QUICKSETUP_1 16 /* control type: command, callback function: QuickCB */ |
#define AIT_INIT 17 /* control type: command, callback function: InitCB */ |
#define AIT_READ 18 /* control type: command, callback function: ReadCB */ |
#define AIT_UPDATEPLOTS 19 /* control type: radioButton, callback function: (none) */ |
#define AIT_LOGY 20 /* control type: radioButton, callback function: (none) */ |
#define AIT_ENABLEDOUTPUT 21 /* control type: radioButton, callback function: (none) */ |
#define AIT_DEBUG 22 /* control type: radioButton, callback function: (none) */ |
#define AIT_START 23 /* control type: command, callback function: StartCB */ |
#define AIT_MAX 24 /* control type: numeric, callback function: (none) */ |
#define AIT_CH 25 /* control type: numeric, callback function: ChangeChannelCB */ |
#define AIT_ADCSUMGAIN 26 /* control type: numeric, callback function: (none) */ |
#define AIT_NEVE 27 /* control type: numeric, callback function: (none) */ |
#define AIT_ADCGAIN 28 /* control type: numeric, callback function: (none) */ |
#define AIT_ADCINTEGRATIONTIME 29 /* control type: numeric, callback function: (none) */ |
#define AIT_ADCTHRESHOLD 30 /* control type: numeric, callback function: (none) */ |
#define AIT_XYCUT 31 /* control type: numeric, callback function: (none) */ |
#define AIT_BIAS 32 /* control type: numeric, callback function: (none) */ |
#define AIT_GRAPHXY 33 /* control type: graph, callback function: (none) */ |
#define AIT_GETADCSUMGAIN 34 /* control type: numeric, callback function: (none) */ |
#define AIT_GRAPHSUM 35 /* control type: graph, callback function: (none) */ |
#define AIT_GRAPH 36 /* control type: graph, callback function: (none) */ |
#define AIT_GETADCGAIN 37 /* control type: numeric, callback function: (none) */ |
#define AIT_GETADCINTEGRATIONTIME 38 /* control type: numeric, callback function: (none) */ |
#define AIT_GETADCTHRESHOLD 39 /* control type: numeric, callback function: (none) */ |
#define AIT_BIASMON 40 /* control type: numeric, callback function: (none) */ |
#define AIT_DAQTRANSFERRATE 41 /* control type: numeric, callback function: (none) */ |
#define AIT_DAQTIMEMS 42 /* control type: numeric, callback function: (none) */ |
#define AIT_DAQBLOCKSIZE 43 /* control type: numeric, callback function: (none) */ |
#define AIT_CEVE 44 /* control type: numeric, callback function: (none) */ |
#define AIT_STDIO 45 /* control type: textBox, callback function: (none) */ |
#define AIT_TIMER 46 /* control type: timer, callback function: SetTimeoutCB */ |
#define AIT_TRGTYPE 47 /* control type: ring, callback function: SetDiscriminatorTypeCB */ |
#define AIT_RTIMER 48 /* control type: timer, callback function: (none) */ |
/* Control Arrays: */ |
/* (no control arrays in the resource file) */ |
/* Menu Bars, Menus, and Menu Items: */ |
/* (no menu bars in the resource file) */ |
/* Callback Prototypes: */ |
int CVICALLBACK ChangeChannelCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK ExitCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK InitCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK OpenScanCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK QuickCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK ReadCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK ResetCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetAdcGainCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetAdcIntegrationTimeCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetAdcSumGainCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetAdcThresholdCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetBiasCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetDiscriminatorTypeCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK SetTimeoutCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK StartCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
int CVICALLBACK StopCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
#ifdef __cplusplus |
} |
#endif |
/cvi/instr/AitSipmDAQ/AitGui.uir |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/cvi/instr/AitSipmDAQ/XYSCAN.uir |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |