Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 122 → Rev 123

/cvi/instr/vme/vme.c
23,101 → 23,101
 
#include "CAENV1718.h"
#include "wusbvme_dll.h"
#include "wienvme_dll.h"
#include "wienvme_dll.h"
 
static int VME_interface= -1;
int VME_GetInterface() { return VME_interface;}
int VME_CONNECTED(){
int VME_GetInterface() {
return VME_interface;
}
int VME_CONNECTED() {
 
return VME_interface;
return VME_interface;
}
 
short __stdcall VME_START (int interface)
{
VME_interface=interface;
switch (VME_interface){
case CAEN_V1718:
CAEN_VME_START (NULL);
VME_R_Ptr = CAEN_VME_R;
VME_W_Ptr = CAEN_VME_W;
VME_MW_Ptr = CAEN_VME_MW;
VME_MR_Ptr = CAEN_VME_MR;
VME_MW_Ptr = CAEN_VME_MW;
VME_MR_Ptr = CAEN_VME_MR;
VME_MWEXEC_Ptr = CAEN_VME_MWEXEC;
VME_MREXEC_Ptr = CAEN_VME_MREXEC;
VME_MWRST_Ptr = CAEN_VME_MWRST;
VME_MRRST_Ptr = CAEN_VME_MRRST;
break;
case WIENER_VMEMM:
WIENVME_VME_START(NULL);
VME_R_Ptr = WIENVME_VME_R;
VME_W_Ptr = WIENVME_VME_W;
VME_MW_Ptr = WIENVME_VME_MW;
VME_MR_Ptr = WIENVME_VME_MR;
VME_MW_Ptr = WIENVME_VME_MW;
VME_MR_Ptr = WIENVME_VME_MR;
VME_MWEXEC_Ptr = WIENVME_VME_MWEXEC;
VME_MREXEC_Ptr = WIENVME_VME_MREXEC;
VME_MWRST_Ptr = WIENVME_VME_MWRST;
VME_MRRST_Ptr = WIENVME_VME_MRRST;
break;
case WIENER_VMUSB:
WIENER_VMUSB_VME_START("VM0120");
VME_R_Ptr = WIENER_VMUSB_VME_R;
VME_W_Ptr = WIENER_VMUSB_VME_W;
VME_MW_Ptr = WIENER_VMUSB_VME_MW;
VME_MR_Ptr = WIENER_VMUSB_VME_MR;
VME_MW_Ptr = WIENER_VMUSB_VME_MW;
VME_MR_Ptr = WIENER_VMUSB_VME_MR;
VME_MWEXEC_Ptr = WIENER_VMUSB_VME_MWEXEC;
VME_MREXEC_Ptr = WIENER_VMUSB_VME_MREXEC;
VME_MWRST_Ptr = WIENER_VMUSB_VME_MWRST;
VME_MRRST_Ptr = WIENER_VMUSB_VME_MRRST;
break;
}
return 0;
short __stdcall VME_START (int interface) {
 
 
VME_interface=interface;
switch (VME_interface) {
case CAEN_V1718:
CAEN_VME_START (NULL);
VME_R_Ptr = CAEN_VME_R;
VME_W_Ptr = CAEN_VME_W;
 
VME_MW_Ptr = CAEN_VME_MW;
VME_MR_Ptr = CAEN_VME_MR;
 
VME_MW_Ptr = CAEN_VME_MW;
VME_MR_Ptr = CAEN_VME_MR;
 
VME_MWEXEC_Ptr = CAEN_VME_MWEXEC;
VME_MREXEC_Ptr = CAEN_VME_MREXEC;
 
VME_MWRST_Ptr = CAEN_VME_MWRST;
VME_MRRST_Ptr = CAEN_VME_MRRST;
 
 
break;
 
case WIENER_VMEMM:
WIENVME_VME_START(NULL);
VME_R_Ptr = WIENVME_VME_R;
VME_W_Ptr = WIENVME_VME_W;
 
VME_MW_Ptr = WIENVME_VME_MW;
VME_MR_Ptr = WIENVME_VME_MR;
 
VME_MW_Ptr = WIENVME_VME_MW;
VME_MR_Ptr = WIENVME_VME_MR;
 
VME_MWEXEC_Ptr = WIENVME_VME_MWEXEC;
VME_MREXEC_Ptr = WIENVME_VME_MREXEC;
 
VME_MWRST_Ptr = WIENVME_VME_MWRST;
VME_MRRST_Ptr = WIENVME_VME_MRRST;
break;
case WIENER_VMUSB:
WIENER_VMUSB_VME_START("VM0120");
VME_R_Ptr = WIENER_VMUSB_VME_R;
VME_W_Ptr = WIENER_VMUSB_VME_W;
 
VME_MW_Ptr = WIENER_VMUSB_VME_MW;
VME_MR_Ptr = WIENER_VMUSB_VME_MR;
 
VME_MW_Ptr = WIENER_VMUSB_VME_MW;
VME_MR_Ptr = WIENER_VMUSB_VME_MR;
 
VME_MWEXEC_Ptr = WIENER_VMUSB_VME_MWEXEC;
VME_MREXEC_Ptr = WIENER_VMUSB_VME_MREXEC;
 
VME_MWRST_Ptr = WIENER_VMUSB_VME_MWRST;
VME_MRRST_Ptr = WIENER_VMUSB_VME_MRRST;
break;
 
}
 
return 0;
}
 
short __stdcall VME_STOP ()
{
switch (VME_interface){
case CAEN_V1718:
CAEN_VME_STOP( );
break;
case WIENER_VMEMM:
break;
case WIENER_VMUSB:
WIENER_VMUSB_VME_STOP( );
break;
default:
break;
}
VME_interface = -1;
return 0;
short __stdcall VME_STOP () {
switch (VME_interface) {
case CAEN_V1718:
 
CAEN_VME_STOP( );
break;
 
case WIENER_VMEMM:
 
break;
case WIENER_VMUSB:
WIENER_VMUSB_VME_STOP( );
break;
default:
 
break;
 
}
 
VME_interface = -1;
return 0;
}
/cvi/instr/vme/vme.prj
1,6 → 1,6
[Project Header]
Version = 1302
Pathname = "/c/home/CVI/instr/vme/vme.prj"
Pathname = "/c/SAMO/Programi/NI/cvi/instr/vme/vme.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"
33,7 → 33,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../CAENV1718/CAENV1718.c"
Path = "/c/home/CVI/instr/CAENV1718/CAENV1718.c"
Path = "/c/SAMO/Programi/NI/cvi/instr/CAENV1718/CAENV1718.c"
Exclude = False
Compile Into Object File = False
Project Flags = 0
46,7 → 46,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "vme.c"
Path = "/c/home/CVI/instr/vme/vme.c"
Path = "/c/SAMO/Programi/NI/cvi/instr/vme/vme.c"
Exclude = False
Compile Into Object File = False
Project Flags = 0
59,7 → 59,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../WIENVME_DLL/wienvme_dll.c"
Path = "/c/home/CVI/instr/WIENVME_DLL/wienvme_dll.c"
Path = "/c/SAMO/Programi/NI/cvi/instr/WIENVME_DLL/wienvme_dll.c"
Exclude = False
Compile Into Object File = False
Project Flags = 0
72,7 → 72,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../WUSBVME_DLL/wusbvme_dll.c"
Path = "/c/home/CVI/instr/WUSBVME_DLL/wusbvme_dll.c"
Path = "/c/SAMO/Programi/NI/cvi/instr/WUSBVME_DLL/wusbvme_dll.c"
Exclude = False
Compile Into Object File = False
Project Flags = 0
85,7 → 85,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../CAENV1718/CAENV1718.h"
Path = "/c/home/CVI/instr/CAENV1718/CAENV1718.h"
Path = "/c/SAMO/Programi/NI/cvi/instr/CAENV1718/CAENV1718.h"
Exclude = False
Project Flags = 0
Folder = "Include Files"
97,7 → 97,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../CAENV1718/CAENVMElib.h"
Path = "/c/home/CVI/instr/CAENV1718/CAENVMElib.h"
Path = "/c/SAMO/Programi/NI/cvi/instr/CAENV1718/CAENVMElib.h"
Exclude = False
Project Flags = 0
Folder = "Include Files"
109,7 → 109,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../CAENV1718/CAENVMEoslib.h"
Path = "/c/home/CVI/instr/CAENV1718/CAENVMEoslib.h"
Path = "/c/SAMO/Programi/NI/cvi/instr/CAENV1718/CAENVMEoslib.h"
Exclude = False
Project Flags = 0
Folder = "Include Files"
121,7 → 121,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../CAENV1718/CAENVMEtypes.h"
Path = "/c/home/CVI/instr/CAENV1718/CAENVMEtypes.h"
Path = "/c/SAMO/Programi/NI/cvi/instr/CAENV1718/CAENVMEtypes.h"
Exclude = False
Project Flags = 0
Folder = "Include Files"
133,7 → 133,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../WIENVME_DLL/pcivme_ni.h"
Path = "/c/home/CVI/instr/WIENVME_DLL/pcivme_ni.h"
Path = "/c/SAMO/Programi/NI/cvi/instr/WIENVME_DLL/pcivme_ni.h"
Exclude = False
Project Flags = 0
Folder = "Include Files"
145,7 → 145,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../WUSBVME_DLL/usb.h"
Path = "/c/home/CVI/instr/WUSBVME_DLL/usb.h"
Path = "/c/SAMO/Programi/NI/cvi/instr/WUSBVME_DLL/usb.h"
Exclude = False
Project Flags = 0
Folder = "Include Files"
157,7 → 157,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "vme.h"
Path = "/c/home/CVI/instr/vme/vme.h"
Path = "/c/SAMO/Programi/NI/cvi/instr/vme/vme.h"
Exclude = False
Project Flags = 0
Folder = "Include Files"
169,7 → 169,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../WIENVME_DLL/wienvme_dll.h"
Path = "/c/home/CVI/instr/WIENVME_DLL/wienvme_dll.h"
Path = "/c/SAMO/Programi/NI/cvi/instr/WIENVME_DLL/wienvme_dll.h"
Exclude = False
Project Flags = 0
Folder = "Include Files"
181,7 → 181,7
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../WUSBVME_DLL/wusbvme_dll.h"
Path = "/c/home/CVI/instr/WUSBVME_DLL/wusbvme_dll.h"
Path = "/c/SAMO/Programi/NI/cvi/instr/WUSBVME_DLL/wusbvme_dll.h"
Exclude = False
Project Flags = 0
Folder = "Include Files"
192,9 → 192,9
Res Id = 14
Path Is Rel = True
Path Rel To = "Project"
Path Rel Path = "../../../../Program Files/CAEN/VME/lib/x86/CAENVMELib.lib"
Path Rel Path = "../../../../../../Program Files/CAEN/VME/lib/x86/CAENVMELib.lib"
Path = "/c/Program Files/CAEN/VME/lib/x86/CAENVMELib.lib"
Exclude = True
Exclude = False
Project Flags = 0
Folder = "Library Files"
Folder Id = 2
267,7 → 267,7
File Version Ex = "%f1.%f2"
Internal Name = "vme"
Internal Name Ex = "%basename"
Legal Copyright = "Copyright © 2014"
Legal Copyright = "Copyright © 2015"
Legal Copyright Ex = "Copyright © %company %Y"
Legal Trademarks = ""
Legal Trademarks Ex = ""
491,19 → 491,19
Executable File_Debug Is Rel = True
Executable File_Debug Rel To = "Project"
Executable File_Debug Rel Path = "vme.lib"
Executable File_Debug = "/c/home/CVI/instr/vme/vme.lib"
Executable File_Debug = "/c/SAMO/Programi/NI/cvi/instr/vme/vme.lib"
Executable File_Release Is Rel = True
Executable File_Release Rel To = "Project"
Executable File_Release Rel Path = "vme.lib"
Executable File_Release = "/c/home/CVI/instr/vme/vme.lib"
Executable File_Release = "/c/SAMO/Programi/NI/cvi/instr/vme/vme.lib"
Executable File_Debug64 Is Rel = True
Executable File_Debug64 Rel To = "Project"
Executable File_Debug64 Rel Path = "vme.lib"
Executable File_Debug64 = "/c/home/CVI/instr/vme/vme.lib"
Executable File_Debug64 = "/c/SAMO/Programi/NI/cvi/instr/vme/vme.lib"
Executable File_Release64 Is Rel = True
Executable File_Release64 Rel To = "Project"
Executable File_Release64 Rel Path = "vme.lib"
Executable File_Release64 = "/c/home/CVI/instr/vme/vme.lib"
Executable File_Release64 = "/c/SAMO/Programi/NI/cvi/instr/vme/vme.lib"
Icon File Is Rel = False
Icon File = ""
Application Title = ""