/cvi/apps/CVIpython/ExportCVIFunctions.cws |
---|
0,0 → 1,284 |
[Workspace Header] |
Version = 1302 |
Pathname = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.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" |
CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" |
IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" |
IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" |
VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" |
VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" |
Number of Projects = 2 |
Active Project = 1 |
Project 0001 = "ExportCVIFunctions.prj" |
Project 0002 = "TestProject.prj" |
Drag Bar Left = 360 |
Window Top = 62 |
Window Left = 90 |
Window Bottom = 782 |
Window Right = 1342 |
Maximized = True |
Maximized Children = True |
Max32 Number Of Errors = 20 |
Track Include File Dependencies = True |
Prompt For Missing Includes = True |
Stop On First Error File = False |
Bring Up Err Win At Start = True |
Bring Up Err Win For Errors = False |
Save Changes Before Running = "Always" |
Save Changes Before Compiling = "Always" |
Hide Windows = False |
Break At First Statement = False |
Sort Type = "File Name" |
Number of Opened Files = 3 |
Window Confinement Region Enabled = True |
MainColumnWidth = 343 |
FileDateColumnWidth = 70 |
FileSizeColumnWidth = 70 |
[Project Header 0001] |
Version = 1302 |
Don't Update DistKit = False |
Platform Code = 4 |
Build Configuration = "Release" |
Warn User If Debugging Release = 1 |
Batch Build Release = False |
Batch Build Debug = False |
[Project Header 0002] |
Version = 1302 |
Don't Update DistKit = False |
Platform Code = 4 |
Build Configuration = "Debug" |
Warn User If Debugging Release = 1 |
Batch Build Release = False |
Batch Build Debug = False |
[File 0001] |
Path = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.c" |
File Type = "CSource" |
Disk Date = 3539588026 |
In Projects = "2," |
Window Top = 38 |
Window Z-Order = 1 |
Source Window State = "1,24,43,24,0,2,0,0,0,200,0,8,0,0,0,61,0,0,8,15,400,600,1,17," |
[File 0002] |
Path = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.c" |
File Type = "CSource" |
Disk Date = 3539591271 |
In Projects = "1," |
Window Top = 344 |
Window Left = 171 |
Window Z-Order = 2 |
Source Window State = "1,15,15,15,9,10,9,0,0,84,0,2,0,2,0,25,0,0,12,16,349,715,1,0," |
[File 0003] |
Path = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.h" |
File Type = "Include" |
Disk Date = 3539591301 |
In Projects = "1," |
Window Top = 38 |
Window Z-Order = 3 |
Source Window State = "1,8,8,8,43,65,43,0,0,70,0,0,0,0,0,28,0,0,8,43,400,600,1,0," |
[File 0004] |
Path = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.uir" |
File Type = "User Interface Resource" |
Disk Date = 3539584751 |
In Projects = "2," |
[File 0005] |
Path = "/c/Python/Python35/libs/python35.lib" |
File Type = "Library" |
Disk Date = 3532179268 |
In Projects = "2," |
[File 0006] |
Path = "/c/Users/rok/Documents/rok/lab/CVIPython/testgui1.py" |
File Type = "Unknown" |
Disk Date = 3539583182 |
In Projects = "2," |
[Tab Order] |
Tab 0001 = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.c" |
Tab 0002 = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.c" |
Tab 0003 = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.h" |
[Default Build Config 0001 Debug] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Default Build Config 0001 Release] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Default Build Config 0001 Debug64] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Default Build Config 0001 Release64] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Build Dependencies 0001] |
Number of Dependencies = 0 |
[Build Options 0001] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Execution Trace = "Disabled" |
Profile = "Disabled" |
Debugging Level = "Standard" |
Break On Library Errors = True |
Break On First Chance Exceptions = False |
[Execution Target 0001] |
Execution Target Address = "Local desktop computer" |
Execution Target Port = 0 |
Execution Target Type = 0 |
[SCC Options 0001] |
Use global settings = True |
SCC Provider = "" |
SCC Project = "" |
Local Path = "" |
Auxiliary Path = "" |
Perform Same Action For .h File As For .uir File = "Ask" |
Perform Same Action For .cds File As For .prj File = "Ask" |
Username = "" |
Comment = "" |
Use Default Username = False |
Use Default Comment = False |
Suppress CVI Error Messages = False |
Always show confirmation dialog = True |
[DLL Debugging Support 0001] |
External Process Path = "" |
[Command Line Args 0001] |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
[Default Build Config 0002 Debug] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Default Build Config 0002 Release] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Default Build Config 0002 Debug64] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Default Build Config 0002 Release64] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Build Dependencies 0002] |
Number of Dependencies = 0 |
[Build Options 0002] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Execution Trace = "Disabled" |
Profile = "Disabled" |
Debugging Level = "Standard" |
Break On Library Errors = True |
Break On First Chance Exceptions = False |
[Execution Target 0002] |
Execution Target Address = "Local desktop computer" |
Execution Target Port = 0 |
Execution Target Type = 0 |
[SCC Options 0002] |
Use global settings = True |
SCC Provider = "" |
SCC Project = "" |
Local Path = "" |
Auxiliary Path = "" |
Perform Same Action For .h File As For .uir File = "Ask" |
Perform Same Action For .cds File As For .prj File = "Ask" |
Username = "" |
Comment = "" |
Use Default Username = False |
Use Default Comment = False |
Suppress CVI Error Messages = False |
Always show confirmation dialog = True |
[DLL Debugging Support 0002] |
External Process Path = "" |
[Command Line Args 0002] |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
/cvi/apps/CVIpython/ExportCVIFunctions.h |
---|
0,0 → 1,28 |
/************** Static Function Declarations **************/ |
/************** Global Variable Declarations **************/ |
/************** Global Function Declarations **************/ |
int __declspec(dllexport) pySetCtrlVal( char *, char *); |
int __declspec(dllexport) pyGetCtrlVal( char *, char *); |
int __declspec(dllexport) pyPrint(int panel); |
int __declspec(dllexport) pySetPanelHandle(int ); |
int __declspec(dllexport) pySetQueueHandle(int ); |
int __declspec(dllexport) pySetThreadHandle(int ); |
int __declspec(dllexport) pyLoadUirHeader(const char *fname); |
int __declspec(dllexport) pyProcessUserEvent(char *param); |
int __declspec(dllexport) pyQueueUserEvent(char *param); |
extern int __declspec(dllexport) panelHandle; |
/cvi/apps/CVIpython/ExportCVIFunctions.prj |
---|
0,0 → 1,520 |
[Project Header] |
Version = 1302 |
Pathname = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.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" |
CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" |
IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" |
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 = 3 |
Target Type = "Dynamic Link Library" |
Flags = 2064 |
Copied From Locked InstrDrv Directory = False |
Copied from VXIPNP Directory = False |
Locked InstrDrv Name = "" |
Don't Display Deploy InstrDrv Dialog = False |
[Folders] |
User Interface Files Folder Not Added Yet = True |
Instrument Files Folder Not Added Yet = True |
Folder 0 = "Source Files" |
FolderEx 0 = "Source Files" |
Folder 1 = "Include Files" |
FolderEx 1 = "Include Files" |
Folder 2 = "Library Files" |
FolderEx 2 = "Library Files" |
[File 0001] |
File Type = "CSource" |
Res Id = 1 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "TestGui.c" |
Path = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.c" |
Exclude = False |
Compile Into Object File = False |
Project Flags = 0 |
Folder = "Source Files" |
Folder Id = 0 |
[File 0002] |
File Type = "Include" |
Res Id = 2 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "ExportCVIFunctions.h" |
Path = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.h" |
Exclude = False |
Project Flags = 0 |
Folder = "Include Files" |
Folder Id = 1 |
[File 0003] |
File Type = "Library" |
Res Id = 3 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "../../../../../../Python/Python35/libs/python35.lib" |
Path = "/c/Python/Python35/libs/python35.lib" |
Exclude = False |
Project Flags = 0 |
Folder = "Library Files" |
Folder Id = 2 |
[Custom Build Configs] |
Num Custom Build Configs = 0 |
[Default Build Config Debug] |
Config Name = "Debug" |
Is 64-Bit = False |
Is Release = False |
Default Calling Convention = "cdecl" |
Optimization Level = "Optimize for speed (level 2)" |
Require Prototypes = True |
Show Warning IDs in Build Output = False |
Selected Warning Level = "None" |
Warning List None = "4,9,84,105,106,107,108,109,110,111" |
Warning List Common = "" |
Warning List Extended = "" |
Warning List All = "" |
Warning Mode = 0 |
Enable Unreferenced Identifiers Warning = False |
Enable Pointer Mismatch Warning = False |
Enable Unreachable Code Warning = False |
Enable Assignment In Conditional Warning = False |
Uninitialized Locals Compile Warning = "Aggressive" |
Require Return Values = True |
Enable C99 Extensions = True |
Enable OpenMP Extensions = False |
Stack Size = 250000 |
Stack Reserve = 1048576 |
Stack Commit = 4096 |
Image Base Address = 268435456 |
Image Base Address x64 = 268435456 |
Compiler Defines = "/DWIN32_LEAN_AND_MEAN" |
Sign = False |
Sign Store = "" |
Sign Certificate = "" |
Sign Timestamp URL = "" |
Sign URL = "" |
Manifest Embed = False |
Icon File Is Rel = False |
Icon File = "" |
Application Title = "" |
Use IVI Subdirectories for Import Libraries = False |
Use VXIPNP Subdirectories for Import Libraries = False |
Use Dflt Import Lib Base Name = True |
Where to Copy DLL = "Do not copy" |
Custom Directory to Copy DLL Is Rel = False |
Custom Directory to Copy DLL = "" |
Generate Source Documentation = "None" |
Runtime Support = "Full Runtime Support" |
Runtime Binding = "Shared" |
Embed Project .UIRs = False |
Generate Map File = False |
Embed Timestamp = True |
Create Console Application = False |
Using LoadExternalModule = False |
DLL Exports = "Include File Symbols" |
Export File1 = "ExportCVIFunctions.h" |
Register ActiveX Server = False |
Numeric File Version = "1,0,0,0" |
Numeric Prod Version = "1,0,0,0" |
Comments = "" |
Comments Ex = "" |
Company Name = "" |
Company Name Ex = "%company" |
File Description = "ExportCVIFunctions (Debug x86)" |
File Description Ex = "%application (%rel_dbg %arch)" |
File Version = "1.0" |
File Version Ex = "%f1.%f2" |
Internal Name = "ExportCVIFunctions" |
Internal Name Ex = "%basename" |
Legal Copyright = "Copyright © 2016" |
Legal Copyright Ex = "Copyright © %company %Y" |
Legal Trademarks = "" |
Legal Trademarks Ex = "" |
Original Filename = "ExportCVIFunctions.dll" |
Original Filename Ex = "%filename" |
Private Build = "" |
Private Build Ex = "" |
Product Name = " ExportCVIFunctions" |
Product Name Ex = "%company %application" |
Product Version = "1.0" |
Product Version Ex = "%p1.%p2" |
Special Build = "" |
Special Build Ex = "" |
Add Type Lib To DLL = False |
Include Type Lib Help Links = False |
TLB Help Style = "HLP" |
Type Lib FP File Is Rel = False |
Type Lib FP File = "" |
[Default Build Config Release] |
Config Name = "Release" |
Is 64-Bit = False |
Is Release = True |
Default Calling Convention = "cdecl" |
Optimization Level = "Optimize for speed (level 2)" |
Require Prototypes = True |
Show Warning IDs in Build Output = False |
Selected Warning Level = "None" |
Warning List None = "4,9,84,105,106,107,108,109,110,111" |
Warning List Common = "" |
Warning List Extended = "" |
Warning List All = "" |
Warning Mode = 0 |
Enable Unreferenced Identifiers Warning = False |
Enable Pointer Mismatch Warning = False |
Enable Unreachable Code Warning = False |
Enable Assignment In Conditional Warning = False |
Uninitialized Locals Compile Warning = "Aggressive" |
Require Return Values = True |
Enable C99 Extensions = True |
Enable OpenMP Extensions = False |
Stack Size = 250000 |
Stack Reserve = 1048576 |
Stack Commit = 4096 |
Image Base Address = 268435456 |
Image Base Address x64 = 268435456 |
Compiler Defines = "/DWIN32_LEAN_AND_MEAN" |
Sign = False |
Sign Store = "" |
Sign Certificate = "" |
Sign Timestamp URL = "" |
Sign URL = "" |
Manifest Embed = False |
Icon File Is Rel = False |
Icon File = "" |
Application Title = "" |
Use IVI Subdirectories for Import Libraries = False |
Use VXIPNP Subdirectories for Import Libraries = False |
Use Dflt Import Lib Base Name = True |
Where to Copy DLL = "Do not copy" |
Custom Directory to Copy DLL Is Rel = False |
Custom Directory to Copy DLL = "" |
Generate Source Documentation = "None" |
Runtime Support = "Full Runtime Support" |
Runtime Binding = "Shared" |
Embed Project .UIRs = False |
Generate Map File = False |
Embed Timestamp = True |
Create Console Application = False |
Using LoadExternalModule = False |
DLL Exports = "Include File Symbols" |
Export File1 = "ExportCVIFunctions.h" |
Register ActiveX Server = False |
Numeric File Version = "1,0,0,0" |
Numeric Prod Version = "1,0,0,0" |
Comments = "" |
Comments Ex = "" |
Company Name = "" |
Company Name Ex = "%company" |
File Description = "ExportCVIFunctions (Release x86)" |
File Description Ex = "%application (%rel_dbg %arch)" |
File Version = "1.0" |
File Version Ex = "%f1.%f2" |
Internal Name = "ExportCVIFunctions" |
Internal Name Ex = "%basename" |
Legal Copyright = "Copyright © 2016" |
Legal Copyright Ex = "Copyright © %company %Y" |
Legal Trademarks = "" |
Legal Trademarks Ex = "" |
Original Filename = "ExportCVIFunctions.dll" |
Original Filename Ex = "%filename" |
Private Build = "" |
Private Build Ex = "" |
Product Name = " ExportCVIFunctions" |
Product Name Ex = "%company %application" |
Product Version = "1.0" |
Product Version Ex = "%p1.%p2" |
Special Build = "" |
Special Build Ex = "" |
Add Type Lib To DLL = False |
Include Type Lib Help Links = False |
TLB Help Style = "HLP" |
Type Lib FP File Is Rel = False |
Type Lib FP File = "" |
[Default Build Config Debug64] |
Config Name = "Debug64" |
Is 64-Bit = True |
Is Release = False |
Default Calling Convention = "cdecl" |
Optimization Level = "Optimize for speed (level 2)" |
Require Prototypes = True |
Show Warning IDs in Build Output = False |
Selected Warning Level = "None" |
Warning List None = "4,9,84,105,106,107,108,109,110,111" |
Warning List Common = "" |
Warning List Extended = "" |
Warning List All = "" |
Warning Mode = 0 |
Enable Unreferenced Identifiers Warning = False |
Enable Pointer Mismatch Warning = False |
Enable Unreachable Code Warning = False |
Enable Assignment In Conditional Warning = False |
Uninitialized Locals Compile Warning = "Aggressive" |
Require Return Values = True |
Enable C99 Extensions = True |
Enable OpenMP Extensions = False |
Stack Size = 250000 |
Stack Reserve = 1048576 |
Stack Commit = 4096 |
Image Base Address = 268435456 |
Image Base Address x64 = 268435456 |
Compiler Defines = "/DWIN32_LEAN_AND_MEAN" |
Sign = False |
Sign Store = "" |
Sign Certificate = "" |
Sign Timestamp URL = "" |
Sign URL = "" |
Manifest Embed = False |
Icon File Is Rel = False |
Icon File = "" |
Application Title = "" |
Use IVI Subdirectories for Import Libraries = False |
Use VXIPNP Subdirectories for Import Libraries = False |
Use Dflt Import Lib Base Name = True |
Where to Copy DLL = "Do not copy" |
Custom Directory to Copy DLL Is Rel = False |
Custom Directory to Copy DLL = "" |
Generate Source Documentation = "None" |
Runtime Support = "Full Runtime Support" |
Runtime Binding = "Shared" |
Embed Project .UIRs = False |
Generate Map File = False |
Embed Timestamp = True |
Create Console Application = False |
Using LoadExternalModule = False |
DLL Exports = "Include File Symbols" |
Register ActiveX Server = False |
Add Type Lib To DLL = False |
Include Type Lib Help Links = False |
TLB Help Style = "HLP" |
Type Lib FP File Is Rel = False |
Type Lib FP File = "" |
[Default Build Config Release64] |
Config Name = "Release64" |
Is 64-Bit = True |
Is Release = True |
Default Calling Convention = "cdecl" |
Optimization Level = "Optimize for speed (level 2)" |
Require Prototypes = True |
Show Warning IDs in Build Output = False |
Selected Warning Level = "None" |
Warning List None = "4,9,84,105,106,107,108,109,110,111" |
Warning List Common = "" |
Warning List Extended = "" |
Warning List All = "" |
Warning Mode = 0 |
Enable Unreferenced Identifiers Warning = False |
Enable Pointer Mismatch Warning = False |
Enable Unreachable Code Warning = False |
Enable Assignment In Conditional Warning = False |
Uninitialized Locals Compile Warning = "Aggressive" |
Require Return Values = True |
Enable C99 Extensions = True |
Enable OpenMP Extensions = False |
Stack Size = 250000 |
Stack Reserve = 1048576 |
Stack Commit = 4096 |
Image Base Address = 268435456 |
Image Base Address x64 = 268435456 |
Compiler Defines = "/DWIN32_LEAN_AND_MEAN" |
Sign = False |
Sign Store = "" |
Sign Certificate = "" |
Sign Timestamp URL = "" |
Sign URL = "" |
Manifest Embed = False |
Icon File Is Rel = False |
Icon File = "" |
Application Title = "" |
Use IVI Subdirectories for Import Libraries = False |
Use VXIPNP Subdirectories for Import Libraries = False |
Use Dflt Import Lib Base Name = True |
Where to Copy DLL = "Do not copy" |
Custom Directory to Copy DLL Is Rel = False |
Custom Directory to Copy DLL = "" |
Generate Source Documentation = "None" |
Runtime Support = "Full Runtime Support" |
Runtime Binding = "Shared" |
Embed Project .UIRs = False |
Generate Map File = False |
Embed Timestamp = True |
Create Console Application = False |
Using LoadExternalModule = False |
DLL Exports = "Include File Symbols" |
Export File1 = "ExportCVIFunctions.h" |
Register ActiveX Server = False |
Numeric File Version = "1,0,0,0" |
Numeric Prod Version = "1,0,0,0" |
Comments = "" |
Comments Ex = "" |
Company Name = "" |
Company Name Ex = "%company" |
File Description = "ExportCVIFunctions (Release x64)" |
File Description Ex = "%application (%rel_dbg %arch)" |
File Version = "1.0" |
File Version Ex = "%f1.%f2" |
Internal Name = "ExportCVIFunctions" |
Internal Name Ex = "%basename" |
Legal Copyright = "Copyright © 2016" |
Legal Copyright Ex = "Copyright © %company %Y" |
Legal Trademarks = "" |
Legal Trademarks Ex = "" |
Original Filename = "ExportCVIFunctions.dll" |
Original Filename Ex = "%filename" |
Private Build = "" |
Private Build Ex = "" |
Product Name = " ExportCVIFunctions" |
Product Name Ex = "%company %application" |
Product Version = "1.0" |
Product Version Ex = "%p1.%p2" |
Special Build = "" |
Special Build Ex = "" |
Add Type Lib To DLL = False |
Include Type Lib Help Links = False |
TLB Help Style = "HLP" |
Type Lib FP File Is Rel = False |
Type Lib FP File = "" |
[Compiler Options] |
Default Calling Convention = "cdecl" |
Require Prototypes = True |
Require Return Values = True |
Enable Pointer Mismatch Warning = False |
Enable Unreachable Code Warning = False |
Enable Unreferenced Identifiers Warning = False |
Enable Assignment In Conditional Warning = False |
O Option Compatible With 5.0 = False |
Enable C99 Extensions = True |
Uninitialized Locals Compile Warning = "Aggressive" |
Precompile Prefix Header = False |
Prefix Header File = "" |
[Run Options] |
Stack Size = 250000 |
Stack Commit = 4096 |
Image Base Address = 268435456 |
Image Base Address x64 = 268435456 |
[Compiler Defines] |
Compiler Defines = "/DWIN32_LEAN_AND_MEAN" |
[Include Paths] |
Include Path 1 Is Rel = True |
Include Path 1 Rel To = "Project" |
Include Path 1 Rel Path = "../../../../../../Python/Python35/include" |
Include Path 1 = "/c/Python/Python35/include" |
[Create Executable] |
Executable File_Debug Is Rel = True |
Executable File_Debug Rel To = "Project" |
Executable File_Debug Rel Path = "ExportCVIFunctions.dll" |
Executable File_Debug = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.dll" |
Executable File_Release Is Rel = True |
Executable File_Release Rel To = "Project" |
Executable File_Release Rel Path = "ExportCVIFunctions.dll" |
Executable File_Release = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.dll" |
Executable File_Debug64 Is Rel = True |
Executable File_Debug64 Rel To = "Project" |
Executable File_Debug64 Rel Path = "ExportCVIFunctions.dll" |
Executable File_Debug64 = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.dll" |
Executable File_Release64 Is Rel = True |
Executable File_Release64 Rel To = "Project" |
Executable File_Release64 Rel Path = "ExportCVIFunctions.dll" |
Executable File_Release64 = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.dll" |
Icon File Is Rel = False |
Icon File = "" |
Application Title = "" |
Numeric File Version = "1,0,0,0" |
Numeric Prod Version = "1,0,0,0" |
Comments = "" |
Comments Ex = "" |
Company Name = "" |
Company Name Ex = "%company" |
File Description = "ExportCVIFunctions (Release x86)" |
File Description Ex = "%application (%rel_dbg %arch)" |
File Version = "1.0" |
File Version Ex = "%f1.%f2" |
Internal Name = "ExportCVIFunctions" |
Internal Name Ex = "%basename" |
Legal Copyright = "Copyright © 2016" |
Legal Copyright Ex = "Copyright © %company %Y" |
Legal Trademarks = "" |
Legal Trademarks Ex = "" |
Original Filename = "ExportCVIFunctions.dll" |
Original Filename Ex = "%filename" |
Private Build = "" |
Private Build Ex = "" |
Product Name = " ExportCVIFunctions" |
Product Name Ex = "%company %application" |
Product Version = "1.0" |
Product Version Ex = "%p1.%p2" |
Special Build = "" |
Special Build Ex = "" |
DLL Exports = "Include File Symbols" |
Export File1 = "ExportCVIFunctions.h" |
Use IVI Subdirectories for Import Libraries = False |
Use VXIPNP Subdirectories for Import Libraries = False |
Use Dflt Import Lib Base Name = True |
Where to Copy DLL = "Do not copy" |
Custom Directory to Copy DLL Is Rel = False |
Custom Directory to Copy DLL = "" |
Generate Source Documentation = "None" |
Add Type Lib To DLL = False |
Include Type Lib Help Links = False |
TLB Help Style = "HLP" |
Type Lib FP File Is Rel = False |
Type Lib FP File = "" |
Type Lib Guid = "" |
Runtime Support = "Full Runtime Support" |
Instrument Driver Support Only = False |
Embed Project .UIRs = False |
Generate Map File = False |
[External Compiler Support] |
UIR Callbacks File Option = 0 |
Using LoadExternalModule = False |
Create Project Symbols File = True |
UIR Callbacks Obj File Is Rel = False |
UIR Callbacks Obj File = "" |
Project Symbols H File Is Rel = False |
Project Symbols H File = "" |
Project Symbols Obj File Is Rel = False |
Project Symbols Obj File = "" |
[ActiveX Server Options] |
Specification File Is Rel = False |
Specification File = "" |
Source File Is Rel = False |
Source File = "" |
Include File Is Rel = False |
Include File = "" |
IDL File Is Rel = False |
IDL File = "" |
Register ActiveX Server = False |
[Signing Info] |
Sign = False |
Sign Debug Build = False |
Store = "" |
Certificate = "" |
Timestamp URL = "" |
URL = "" |
[Manifest Info] |
Embed = False |
[tpcSection] |
tpcEnabled = 0 |
tpcOverrideEnvironment = 0 |
tpcEnabled x64 = 0 |
tpcOverrideEnvironment x64 = 0 |
/cvi/apps/CVIpython/TestGui.c |
---|
0,0 → 1,468 |
#include <formatio.h> |
#include <utility.h> |
#include <python.h> |
#include <ansi_c.h> |
#include <cvirte.h> |
#include <userint.h> |
#include "TestGui.h" |
#include "ExportCVIFunctions.h" |
// http://www.linuxjournal.com/node/8497/print |
static int pTSQData[2]; |
static int tfID; |
CmtThreadPoolHandle threadHandle = 0; |
CmtTSQHandle queueHandle; |
int panelHandle; |
int ProcessUserEvent(int pID, int rID,int mode); |
char strbuf[0xFF]; |
int mprintf(const char *format, ...) { |
va_list aptr; |
int ret,log; |
FILE *flog; |
va_start(aptr, format); |
ret = vsprintf(strbuf, format, aptr); |
va_end(aptr); |
SetCtrlVal(panelHandle,PANEL_STDIO,strbuf); |
return(ret); |
} |
// map uir controls .... |
#define MAX_UIRCTRLMAP_SIZE 1000 |
typedef struct { |
char name[32]; |
int id; |
int handle; |
} UirCtrlMap; |
UirCtrlMap gUirCtrlMap[MAX_UIRCTRLMAP_SIZE]; |
int gNUirCtrlMap=0; |
int GetControlID(const char *ctrl) { |
for (int i=0; i<gNUirCtrlMap; i++) { |
if (strcmp(ctrl,gUirCtrlMap[i].name)==0) return ctrl,gUirCtrlMap[i].id; |
} |
return -1; |
} |
int GetPanelHandle(const char *ctrl) { |
if ( strstr(ctrl, "PANEL_")!= NULL ) return panelHandle; |
return 0; |
} |
DLLEXPORT int pySetPanelHandle(int handle) { |
panelHandle = handle; |
return 0; |
} |
DLLEXPORT int pySetQueueHandle(int handle) { |
queueHandle = handle; |
return 0; |
} |
DLLEXPORT int pySetThreadHandle(int handle) { |
threadHandle = handle; |
return 0; |
} |
DLLEXPORT int pyLoadUirHeader(const char *fname) { |
int ndim=MAX_PATHNAME_LEN; |
char line[MAX_PATHNAME_LEN]; |
char cmd[MAX_PATHNAME_LEN]; |
FILE *fp = NULL; |
ssize_t size; |
int n0= gNUirCtrlMap; |
if ( GetFileInfo(fname,&size) ) fp = fopen(fname,"r"); |
if (!fp) { |
mprintf("Error! Cannot open header file %s\n",fname); |
return -1; |
} |
while (fgets(line,ndim,fp)!=NULL ) { |
char ctrl[32]; |
int ctrlid; |
int nb = sscanf(line,"%s%s%d",cmd, ctrl, &ctrlid); |
if (strstr(cmd,"#define")!=NULL && nb==3) { |
strcpy(gUirCtrlMap[gNUirCtrlMap].name, ctrl ); |
if (gNUirCtrlMap<MAX_UIRCTRLMAP_SIZE) { |
gUirCtrlMap[gNUirCtrlMap].id = ctrlid; |
gUirCtrlMap[gNUirCtrlMap].handle = GetPanelHandle(ctrl); |
mprintf("%s= Ctrl '%d' Panel'%d'\n", ctrl,ctrlid, gUirCtrlMap[gNUirCtrlMap].handle); |
gNUirCtrlMap++; |
} else { |
mprintf("ERROR: Increase gNUirCtrlMap\n"); |
} |
} |
} |
fclose(fp); |
mprintf("Number of Controls loaded from File %s = %d \n", fname,gNUirCtrlMap-n0); |
return 0; |
} |
DLLEXPORT int pyGetCtrlVal(char *param, char *paramValue){ |
int pID= GetPanelHandle(param); |
int rID= GetControlID(param); |
int datatype; |
int retval=-1; |
if (rID>0 && pID>0) { |
GetCtrlAttribute (pID, rID, ATTR_DATA_TYPE, &datatype); |
retval = GetCtrlVal(pID, rID, paramValue); |
switch (datatype) { |
case VAL_INTEGER: |
mprintf("[GetCtrlVal] %s value=%d panel=%d control=%d\n",param, *(int *) paramValue,pID,rID); |
break; |
case VAL_UNSIGNED_INTEGER: |
mprintf("[GetCtrlVal] %s value=%u panel=%d control=%d\n",param, *(unsigned int *) paramValue,pID,rID); |
break; |
case VAL_SHORT_INTEGER: |
mprintf("[GetCtrlVal] %s value=%d panel=%d control=%d\n",param, *(short *) paramValue,pID,rID); |
break; |
case VAL_UNSIGNED_SHORT_INTEGER: |
mprintf("[GetCtrlVal] %s value=%d panel=%d control=%d\n",param, *(unsigned short *) paramValue,pID,rID); |
break; |
case VAL_DOUBLE : |
mprintf("[GetCtrlVal] %s value=%f panel=%d control=%d\n",param, *(double *) paramValue,pID,rID); |
break; |
case VAL_STRING : |
default: |
mprintf("[GetCtrlVal] %s value=%s panel=%d control=%d\n",param, paramValue,pID,rID); |
break; |
} |
} |
return retval; |
} |
DLLEXPORT int pyQueueUserEvent(char *param){ |
int pID= GetPanelHandle(param); |
int rID= GetControlID(param); |
int retval=-1; |
mprintf("QueueUserEvent %s panelHandle %d controlID %d\n",param, pID, rID ); |
if (rID>0 && pID>0) { |
int data[2] = {pID,rID}; |
mprintf("queueHandle %d\n", queueHandle ); |
retval = CmtWriteTSQData (queueHandle, data, 1, TSQ_INFINITE_TIMEOUT, NULL); |
} |
return retval; |
} |
DLLEXPORT int pyProcessUserEvent(char *param){ |
int pID= GetPanelHandle(param); |
int rID= GetControlID(param); |
int retval=-1; |
mprintf("ProcessUserEvent %s panelHandle %d controlID %d\n",param, pID, rID ); |
if (rID>0 && pID>0) retval = ProcessUserEvent(pID, rID,0); |
return retval; |
} |
DLLEXPORT int pySetCtrlVal(char *param, char *paramValue) |
{ |
int pID= GetPanelHandle(param); |
int rID= GetControlID(param); |
int datatype; |
int ret=0; |
if (rID>0 && pID>0) { |
GetCtrlAttribute (pID, rID, ATTR_DATA_TYPE, &datatype); |
switch (datatype) { |
case VAL_INTEGER: |
ret=SetCtrlVal (pID, rID, atoi(paramValue)); |
break; |
case VAL_UNSIGNED_INTEGER: |
ret=SetCtrlVal (pID, rID, strtoul(paramValue,NULL,0)); |
break; |
case VAL_SHORT_INTEGER: |
ret=SetCtrlVal (pID, rID, atoi(paramValue)); |
break; |
case VAL_UNSIGNED_SHORT_INTEGER: |
ret=SetCtrlVal (pID, rID, strtoul(paramValue,NULL,0)); |
break; |
case VAL_DOUBLE : |
ret=SetCtrlVal (pID, rID, atof(paramValue)); |
break; |
case VAL_STRING : |
ret=SetCtrlVal (pID, rID, paramValue ); |
break; |
default: |
mprintf("[SetCtrlVal] ATTR_DATA_TYPE of the %s not supported datatype %d\n", param, datatype); |
} |
mprintf("[SetCtrlVal] %s %s panel=%d control=%d\n",param, paramValue,pID,rID); |
} else { |
mprintf("[SetCtrlVal] Invalid Ctrl %s %s panel=%d control=%d nctrls=%d\n",param, paramValue,pID,rID,gNUirCtrlMap); |
} |
return ret; |
} |
DLLEXPORT int pyPrint(int panel) |
{ |
mprintf("Hi! %d\n", panel); |
//return SetCtrlVal(panel, ctrl,text ); |
return 0; |
} |
void CVICALLBACK QueueUserEventCallback (CmtTSQHandle queueHandle, unsigned int event, int value, void *callbackData) { |
int *data= (int *) callbackData; |
int mdata[2]; |
CmtReadTSQData (queueHandle, mdata, 1, 0, 0); |
mprintf("QueueUserEvent --->Thread Safe Queue %d %d\n", mdata[0],mdata[1]); |
QueueUserEvent (1001, mdata[0], mdata[1]); |
} |
int CVICALLBACK Test(void *functionData) |
{ |
mprintf("Test\n"); |
return 0; |
} |
int CVICALLBACK ExecPython(void *functionData) |
{ |
char *argv="testgui.py"; |
int argc=1; |
Py_Initialize(); |
mprintf("Py_Main() %d\n", Py_Main(argc, &argv)); |
Py_Finalize(); |
return 0; |
} |
int cRunPython = 0; |
int CVICALLBACK RunPython(void *functionData) |
{ |
char *fname="testgui.py"; |
char handles[0xFF]; |
int argc=0, merr=0; |
char *argv = "TestGui.exe"; |
while ( cRunPython ) { |
mprintf("RunPython not finished yet... Waiting ....\n"); |
Delay(0.5);// To Ensure only one python interpreter is running |
} |
cRunPython = 1; |
Py_Initialize(); |
mprintf("Py_IsInitialized(); %d\n", Py_IsInitialized()); |
mprintf("Py_GetVersion() %s\n", Py_GetVersion() ); |
PyRun_SimpleString("import sys\n"); |
PyRun_SimpleString("sys.stdout = sys.stderr = open(\"log_file.txt\", \"w\")\n" ); |
sprintf(handles, "panel=%d\nqueue=%d\n", panelHandle, (int) queueHandle); |
mprintf(handles); |
PyRun_SimpleString(handles); |
PyRun_SimpleString( |
"print('Example , how to use python from NI LWCVI')\n" |
"from time import time,ctime\n" |
"print( 'Today is',ctime(time()))\n" |
); |
PyObject *obj = Py_BuildValue("s", fname); |
FILE *fp = _Py_fopen_obj(obj, "r+"); |
//fp = fopen(fname,"r"); // tole ne dela |
if(fp != NULL) merr = PyRun_SimpleFile(fp, fname); |
mprintf("PyRun_SimpleFile(%s) %d ---->output\n",fname, merr); |
Py_Finalize(); |
char line[MAX_PATHNAME_LEN]; |
FILE *fpout= fopen("log_file.txt","r"); |
if (fpout) { |
while (fgets(line,MAX_PATHNAME_LEN,fpout)!=NULL) mprintf(line); |
fclose(fpout); |
} |
cRunPython = 0; |
return 0; |
} |
void SetDimming(int state) { |
mprintf("SetDimming %d\n", state); |
SetCtrlAttribute (panelHandle, PANEL_START, ATTR_DIMMED, state); |
SetCtrlAttribute (panelHandle, PANEL_INTERPRETER, ATTR_DIMMED, state); |
SetCtrlAttribute (panelHandle, PANEL_TEST, ATTR_DIMMED, state); |
} |
int nthreads=0; |
void CVICALLBACK EndOfThread ( CmtThreadPoolHandle poolhandle, |
CmtThreadFunctionID functionID, unsigned int event, |
int value, void *callbackData ) { |
mprintf("%d End of Thread handle=%d functionID=%d\n", nthreads, (int)poolhandle, functionID); |
nthreads--; |
if (!nthreads) SetDimming(0); |
return ; |
} |
int ProcessUserEvent(int pID, int rID,int mode){ |
ThreadFunctionPtr thread = NULL; |
int retval=0; |
switch (rID) { |
case PANEL_START: |
thread=RunPython; |
break; |
case PANEL_INTERPRETER: |
thread=ExecPython; |
break; |
case PANEL_TEST: |
thread=Test; |
break; |
case PANEL_EXIT : |
return 1; |
default: |
mprintf("Unknown Event panel %d control %d\n",pID,rID); |
} |
if (thread!=NULL) { |
if (mode) { |
SetDimming(1); |
mprintf("%d ProcessUserEvent in new Thread panel=%d button=%d mode=%d\n",nthreads, pID, rID, mode); |
retval = CmtScheduleThreadPoolFunctionAdv (threadHandle, thread, &rID, |
DEFAULT_THREAD_PRIORITY, |
EndOfThread, |
EVENT_TP_THREAD_FUNCTION_END, |
NULL, RUN_IN_SCHEDULED_THREAD, |
&tfID); |
if (retval<0) { |
char txt[MAX_PATHNAME_LEN]; |
CmtGetErrorMessage(retval, txt); |
MessagePopup("CmtScheduleThreadPoolFunctionAdv", txt); |
} else nthreads++; |
} else { |
mprintf("ProcessUserEvent panel=%d button=%d mode=%d\n", pID, rID, mode); |
thread(NULL); |
} |
} |
ProcessSystemEvents(); |
return retval; |
} |
int main (int argc, char *argv[]) |
{ |
if (InitCVIRTE (0, argv, 0) == 0) |
return -1; /* out of memory */ |
if ((panelHandle = LoadPanel (0, "TestGui.uir", PANEL)) < 0) |
return -1; |
//pyLoadUirHeader("TestGui.h"); |
int status=0; |
CmtNewThreadPool (10, &threadHandle); |
if ( status = CmtNewTSQ (1, 2*sizeof(int), OPT_TSQ_AUTO_FLUSH_ALL, &queueHandle) <0) |
mprintf("CmtNewTSQ cannot be installed\n"); |
else { |
mprintf("CmtNewTSQ handle %d\n", (int) queueHandle ); |
} |
if ( status = CmtInstallTSQCallback (queueHandle, EVENT_TSQ_ITEMS_IN_QUEUE, EVENT_TSQ_QUEUE_SIZE, |
QueueUserEventCallback, pTSQData, CmtGetCurrentThreadID(), NULL) <0) |
mprintf("CmtInstallTSQCallback cannot be installed\n"); ; |
DisplayPanel (panelHandle); |
int pID, rID, retval; |
do { |
GetUserEvent (1, &pID, &rID); |
retval = ProcessUserEvent(pID,rID,1); |
} while (!retval); |
CmtDiscardThreadPool (threadHandle); |
DiscardPanel (panelHandle); |
return 0; |
} |
/* |
static PyObject * SetCtrlVal_wrapper(PyObject * self, PyObject * args) |
{ |
char * input; |
char result[0xFF]; |
PyObject * ret; |
// parse arguments |
if (!PyArg_ParseTuple(args, "s", &input)) { |
return NULL; |
} |
// run the actual function |
int retval = SetCtrlVal(panelHandle, PANEL_TXT,input ); |
sprintf(result,"%d", retval); |
// build the resulting string into a Python object. |
ret = PyBytes_FromString(result); |
free(result); |
return ret; |
} |
static PyMethodDef module_methods[] = { |
{"fib",(PyCFunction) SetCtrlVal_wrapper, METH_VARARGS,"Outputs the text to the PANEL_TXT"}, |
{NULL,NULL,0,NULL} |
}; |
static struct PyModuleDef cModPyDem = |
{ |
PyModuleDef_HEAD_INIT, |
"SetCtrlVal", // name of module |
"", // module documentation, may be NULL |
-1, // size of per-interpreter state of the module, or -1 if the module keeps state in global variables. |
module_methods |
}; |
PyMODINIT_FUNC PyInit_cModPyDem(void) |
{ |
return PyModule_Create(&cModPyDem); |
} |
*/ |
/cvi/apps/CVIpython/TestGui.h |
---|
0,0 → 1,42 |
/**************************************************************************/ |
/* 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 PANEL 1 |
#define PANEL_TEST 2 /* control type: command, callback function: (none) */ |
#define PANEL_INTERPRETER 3 /* control type: command, callback function: (none) */ |
#define PANEL_START 4 /* control type: command, callback function: (none) */ |
#define PANEL_EXIT 5 /* control type: command, callback function: (none) */ |
#define PANEL_TXT 6 /* control type: string, callback function: (none) */ |
#define PANEL_X0 7 /* control type: numeric, callback function: (none) */ |
#define PANEL_NUMERIC 8 /* control type: numeric, callback function: (none) */ |
#define PANEL_STDIO 9 /* control type: textBox, 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) */ |
/* (no callbacks specified in the resource file) */ |
#ifdef __cplusplus |
} |
#endif |
/cvi/apps/CVIpython/TestGui.uir |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
## -0,0 +1 ## |
+application/octet-stream |
\ No newline at end of property |
Index: apps/CVIpython/TestProject.cws |
=================================================================== |
--- apps/CVIpython/TestProject.cws (nonexistent) |
+++ apps/CVIpython/TestProject.cws (revision 260) |
@@ -0,0 +1,306 @@ |
+[Workspace Header] |
+Version = 1302 |
+Pathname = "/c/Users/rok/Documents/rok/lab/CVIPython/TestProject.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" |
+CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" |
+IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" |
+IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" |
+VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" |
+VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" |
+Number of Projects = 2 |
+Active Project = 1 |
+Project 0001 = "TestProject.prj" |
+Project 0002 = "ExportCVIFunctions.prj" |
+Drag Bar Left = 360 |
+Window Top = 62 |
+Window Left = 90 |
+Window Bottom = 782 |
+Window Right = 1342 |
+Maximized = True |
+Maximized Children = True |
+Max32 Number Of Errors = 20 |
+Track Include File Dependencies = True |
+Prompt For Missing Includes = True |
+Stop On First Error File = False |
+Bring Up Err Win At Start = True |
+Bring Up Err Win For Errors = False |
+Save Changes Before Running = "Always" |
+Save Changes Before Compiling = "Always" |
+Hide Windows = False |
+Break At First Statement = False |
+Sort Type = "File Name" |
+Number of Opened Files = 7 |
+Window Confinement Region Enabled = True |
+MainColumnWidth = 343 |
+FileDateColumnWidth = 70 |
+FileSizeColumnWidth = 70 |
+ |
+[Project Header 0001] |
+Version = 1302 |
+Don't Update DistKit = False |
+Platform Code = 4 |
+Build Configuration = "Debug64" |
+Warn User If Debugging Release = 0 |
+Batch Build Release = False |
+Batch Build Debug = False |
+ |
+[Project Header 0002] |
+Version = 1302 |
+Don't Update DistKit = False |
+Platform Code = 4 |
+Build Configuration = "Release64" |
+Warn User If Debugging Release = 1 |
+Batch Build Release = False |
+Batch Build Debug = False |
+ |
+[File 0001] |
+Path = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.c" |
+File Type = "CSource" |
+Disk Date = 3539692354 |
+In Projects = "1,2," |
+Window Top = 38 |
+Window Z-Order = 2 |
+Source Window State = "1,262,262,262,16,25,16,0,0,70,0,9,0,1,0,28,330,0,268,12,400,600,1,17," |
+ |
+[File 0002] |
+Path = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.uir" |
+File Type = "User Interface Resource" |
+Disk Date = 3539690715 |
+In Projects = "1," |
+Window Top = 78 |
+Window Left = 31 |
+Window Height = 349 |
+Window Width = 683 |
+Window Z-Order = 4 |
+ |
+[File 0003] |
+Path = "/c/Python/Python35/libs/python35.lib" |
+File Type = "Library" |
+Disk Date = 3532179268 |
+In Projects = "1,2," |
+ |
+[File 0004] |
+Path = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.h" |
+File Type = "Include" |
+Disk Date = 3539686229 |
+In Projects = "1,2," |
+Window Top = 154 |
+Window Left = 71 |
+Window Z-Order = 6 |
+Source Window State = "1,12,12,12,0,49,49,0,0,84,0,0,0,0,0,25,0,0,14,43,349,715,1,0," |
+ |
+[File 0005] |
+Path = "/c/Users/rok/Documents/rok/belle2/arich/code/sa02_daq/cvi/sa02_CVI.c" |
+File Type = "CSource" |
+Disk Date = 3539665623 |
+In Projects = "" |
+Window Top = 458 |
+Window Left = 231 |
+Window Z-Order = 3 |
+Source Window State = "1,216,216,216,0,18,18,0,3,84,0,0,0,0,0,25,189,0,216,0,349,715,1,0," |
+ |
+[File 0006] |
+Path = "/c/Users/rok/Documents/rok/lab/CVIPython/testgui.py" |
+File Type = "Unknown" |
+Disk Date = 3539692544 |
+In Projects = "1," |
+Window Top = 40 |
+Window Left = 11 |
+Window Z-Order = 1 |
+ |
+[File 0007] |
+Path = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.h" |
+File Type = "Include" |
+Disk Date = 3539690715 |
+In Projects = "1," |
+Window Top = 458 |
+Window Left = 231 |
+Window Z-Order = 5 |
+Source Window State = "1,0,0,0,0,0,0,0,0,80,0,0,0,0,0,25,0,0,0,0,349,683,1,0," |
+ |
+[Tab Order] |
+Tab 0001 = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.c" |
+Tab 0002 = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.uir" |
+Tab 0003 = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.h" |
+Tab 0004 = "/c/Users/rok/Documents/rok/belle2/arich/code/sa02_daq/cvi/sa02_CVI.c" |
+Tab 0005 = "/c/Users/rok/Documents/rok/lab/CVIPython/testgui.py" |
+Tab 0006 = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.h" |
+ |
+[Default Build Config 0001 Debug] |
+Generate Browse Info = True |
+Enable Uninitialized Locals Runtime Warning = True |
+Batch Build = False |
+Profile = "Disabled" |
+Debugging Level = "Standard" |
+Execution Trace = "Disabled" |
+Command Line Args = "" |
+Working Directory = "" |
+Environment Options = "" |
+External Process Path = "" |
+ |
+[Default Build Config 0001 Release] |
+Generate Browse Info = True |
+Enable Uninitialized Locals Runtime Warning = True |
+Batch Build = False |
+Profile = "Disabled" |
+Debugging Level = "Standard" |
+Execution Trace = "Disabled" |
+Command Line Args = "" |
+Working Directory = "" |
+Environment Options = "" |
+External Process Path = "" |
+ |
+[Default Build Config 0001 Debug64] |
+Generate Browse Info = True |
+Enable Uninitialized Locals Runtime Warning = True |
+Batch Build = False |
+Profile = "Disabled" |
+Debugging Level = "Standard" |
+Execution Trace = "Disabled" |
+Command Line Args = "" |
+Working Directory = "" |
+Environment Options = "PATH=c:\\Python\\Python35" |
+External Process Path = "" |
+ |
+[Default Build Config 0001 Release64] |
+Generate Browse Info = True |
+Enable Uninitialized Locals Runtime Warning = True |
+Batch Build = False |
+Profile = "Disabled" |
+Debugging Level = "Standard" |
+Execution Trace = "Disabled" |
+Command Line Args = "" |
+Working Directory = "" |
+Environment Options = "" |
+External Process Path = "" |
+ |
+[Build Dependencies 0001] |
+Number of Dependencies = 0 |
+ |
+[Build Options 0001] |
+Generate Browse Info = True |
+Enable Uninitialized Locals Runtime Warning = True |
+Execution Trace = "Disabled" |
+Profile = "Disabled" |
+Debugging Level = "Standard" |
+Break On Library Errors = True |
+Break On First Chance Exceptions = False |
+ |
+[Execution Target 0001] |
+Execution Target Address = "Local desktop computer" |
+Execution Target Port = 0 |
+Execution Target Type = 0 |
+ |
+[SCC Options 0001] |
+Use global settings = True |
+SCC Provider = "" |
+SCC Project = "" |
+Local Path = "" |
+Auxiliary Path = "" |
+Perform Same Action For .h File As For .uir File = "Ask" |
+Perform Same Action For .cds File As For .prj File = "Ask" |
+Username = "" |
+Comment = "" |
+Use Default Username = False |
+Use Default Comment = False |
+Suppress CVI Error Messages = False |
+Always show confirmation dialog = True |
+ |
+[DLL Debugging Support 0001] |
+External Process Path = "" |
+ |
+[Command Line Args 0001] |
+Command Line Args = "" |
+Working Directory = "" |
+Environment Options = "" |
+ |
+[Default Build Config 0002 Debug] |
+Generate Browse Info = True |
+Enable Uninitialized Locals Runtime Warning = True |
+Batch Build = False |
+Profile = "Disabled" |
+Debugging Level = "Standard" |
+Execution Trace = "Disabled" |
+Command Line Args = "" |
+Working Directory = "" |
+Environment Options = "" |
+External Process Path = "" |
+ |
+[Default Build Config 0002 Release] |
+Generate Browse Info = True |
+Enable Uninitialized Locals Runtime Warning = True |
+Batch Build = False |
+Profile = "Disabled" |
+Debugging Level = "Standard" |
+Execution Trace = "Disabled" |
+Command Line Args = "" |
+Working Directory = "" |
+Environment Options = "" |
+External Process Path = "" |
+ |
+[Default Build Config 0002 Debug64] |
+Generate Browse Info = True |
+Enable Uninitialized Locals Runtime Warning = True |
+Batch Build = False |
+Profile = "Disabled" |
+Debugging Level = "Standard" |
+Execution Trace = "Disabled" |
+Command Line Args = "" |
+Working Directory = "" |
+Environment Options = "" |
+External Process Path = "" |
+ |
+[Default Build Config 0002 Release64] |
+Generate Browse Info = True |
+Enable Uninitialized Locals Runtime Warning = True |
+Batch Build = False |
+Profile = "Disabled" |
+Debugging Level = "Standard" |
+Execution Trace = "Disabled" |
+Command Line Args = "" |
+Working Directory = "" |
+Environment Options = "" |
+External Process Path = "" |
+ |
+[Build Dependencies 0002] |
+Number of Dependencies = 0 |
+ |
+[Build Options 0002] |
+Generate Browse Info = True |
+Enable Uninitialized Locals Runtime Warning = True |
+Execution Trace = "Disabled" |
+Profile = "Disabled" |
+Debugging Level = "Standard" |
+Break On Library Errors = True |
+Break On First Chance Exceptions = False |
+ |
+[Execution Target 0002] |
+Execution Target Address = "Local desktop computer" |
+Execution Target Port = 0 |
+Execution Target Type = 0 |
+ |
+[SCC Options 0002] |
+Use global settings = True |
+SCC Provider = "" |
+SCC Project = "" |
+Local Path = "" |
+Auxiliary Path = "" |
+Perform Same Action For .h File As For .uir File = "Ask" |
+Perform Same Action For .cds File As For .prj File = "Ask" |
+Username = "" |
+Comment = "" |
+Use Default Username = False |
+Use Default Comment = False |
+Suppress CVI Error Messages = False |
+Always show confirmation dialog = True |
+ |
+[DLL Debugging Support 0002] |
+External Process Path = "" |
+ |
+[Command Line Args 0002] |
+Command Line Args = "" |
+Working Directory = "" |
+Environment Options = "" |
+ |
Index: apps/CVIpython/TestProject.prj |
=================================================================== |
--- apps/CVIpython/TestProject.prj (nonexistent) |
+++ apps/CVIpython/TestProject.prj (revision 260) |
@@ -0,0 +1,578 @@ |
+[Project Header] |
+Version = 1302 |
+Pathname = "/c/Users/rok/Documents/rok/lab/CVIPython/TestProject.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" |
+CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" |
+IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" |
+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 = 6 |
+Target Type = "Executable" |
+Flags = 16 |
+Copied From Locked InstrDrv Directory = False |
+Copied from VXIPNP Directory = False |
+Locked InstrDrv Name = "" |
+Don't Display Deploy InstrDrv Dialog = False |
+ |
+[Folders] |
+Instrument Files Folder Not Added Yet = True |
+Folder 0 = "Source Files" |
+FolderEx 0 = "Source Files" |
+Folder 1 = "User Interface Files" |
+FolderEx 1 = "User Interface Files" |
+Folder 2 = "Library Files" |
+FolderEx 2 = "Library Files" |
+Folder 3 = "Include Files" |
+FolderEx 3 = "Include Files" |
+ |
+[File 0001] |
+File Type = "CSource" |
+Res Id = 1 |
+Path Is Rel = True |
+Path Rel To = "Project" |
+Path Rel Path = "TestGui.c" |
+Path = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.c" |
+Exclude = False |
+Compile Into Object File = False |
+Project Flags = 0 |
+Folder = "Source Files" |
+Folder Id = 0 |
+ |
+[File 0002] |
+File Type = "User Interface Resource" |
+Res Id = 2 |
+Path Is Rel = True |
+Path Rel To = "Project" |
+Path Rel Path = "TestGui.uir" |
+Path = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.uir" |
+Exclude = False |
+Project Flags = 0 |
+Folder = "User Interface Files" |
+Folder Id = 1 |
+ |
+[File 0003] |
+File Type = "Library" |
+Res Id = 3 |
+Path Is Rel = True |
+Path Rel To = "Project" |
+Path Rel Path = "../../../../../../Python/Python35/libs/python35.lib" |
+Path = "/c/Python/Python35/libs/python35.lib" |
+Exclude = False |
+Project Flags = 0 |
+Folder = "Library Files" |
+Folder Id = 2 |
+ |
+[File 0004] |
+File Type = "Include" |
+Res Id = 4 |
+Path Is Rel = True |
+Path Rel To = "Project" |
+Path Rel Path = "ExportCVIFunctions.h" |
+Path = "/c/Users/rok/Documents/rok/lab/CVIPython/ExportCVIFunctions.h" |
+Exclude = False |
+Project Flags = 0 |
+Folder = "Include Files" |
+Folder Id = 3 |
+ |
+[File 0005] |
+File Type = "Include" |
+Res Id = 5 |
+Path Is Rel = True |
+Path Rel To = "Project" |
+Path Rel Path = "TestGui.h" |
+Path = "/c/Users/rok/Documents/rok/lab/CVIPython/TestGui.h" |
+Exclude = False |
+Project Flags = 0 |
+Folder = "Include Files" |
+Folder Id = 3 |
+ |
+[File 0006] |
+File Type = "Unknown" |
+Res Id = 6 |
+Path Is Rel = True |
+Path Rel To = "Project" |
+Path Rel Path = "testgui.py" |
+Path = "/c/Users/rok/Documents/rok/lab/CVIPython/testgui.py" |
+Exclude = False |
+Project Flags = 0 |
+Folder = "Not In A Folder" |
+ |
+[Custom Build Configs] |
+Num Custom Build Configs = 0 |
+ |
+[Default Build Config Debug] |
+Config Name = "Debug" |
+Is 64-Bit = False |
+Is Release = False |
+Default Calling Convention = "cdecl" |
+Optimization Level = "No optimizations" |
+Require Prototypes = True |
+Show Warning IDs in Build Output = False |
+Selected Warning Level = "None" |
+Warning List None = "4,9,84,105,106,107,108,109,110,111" |
+Warning List Common = "" |
+Warning List Extended = "" |
+Warning List All = "" |
+Warning Mode = 0 |
+Enable Unreferenced Identifiers Warning = False |
+Enable Pointer Mismatch Warning = False |
+Enable Unreachable Code Warning = False |
+Enable Assignment In Conditional Warning = False |
+Uninitialized Locals Compile Warning = "Aggressive" |
+Require Return Values = True |
+Enable C99 Extensions = True |
+Enable OpenMP Extensions = False |
+Stack Size = 250000 |
+Stack Reserve = 1048576 |
+Stack Commit = 4096 |
+Image Base Address = 4194304 |
+Image Base Address x64 = 4194304 |
+Compiler Defines = "/DWIN32_LEAN_AND_MEAN" |
+Sign = False |
+Sign Store = "" |
+Sign Certificate = "" |
+Sign Timestamp URL = "" |
+Sign URL = "" |
+Manifest Embed = False |
+Icon File Is Rel = False |
+Icon File = "" |
+Application Title = "" |
+Use IVI Subdirectories for Import Libraries = False |
+Use VXIPNP Subdirectories for Import Libraries = False |
+Use Dflt Import Lib Base Name = True |
+Where to Copy DLL = "Do not copy" |
+Custom Directory to Copy DLL Is Rel = False |
+Custom Directory to Copy DLL = "" |
+Generate Source Documentation = "None" |
+Runtime Support = "Full Runtime Support" |
+Runtime Binding = "Shared" |
+Embed Project .UIRs = False |
+Generate Map File = False |
+Embed Timestamp = True |
+Create Console Application = False |
+Using LoadExternalModule = True |
+DLL Exports = "Include File Symbols" |
+Register ActiveX Server = False |
+Numeric File Version = "1,0,0,0" |
+Numeric Prod Version = "1,0,0,0" |
+Comments = "" |
+Comments Ex = "" |
+Company Name = "" |
+Company Name Ex = "%company" |
+File Description = "TestProject (Debug x86)" |
+File Description Ex = "%application (%rel_dbg %arch)" |
+File Version = "1.0" |
+File Version Ex = "%f1.%f2" |
+Internal Name = "TestProject" |
+Internal Name Ex = "%basename" |
+Legal Copyright = "Copyright © 2016" |
+Legal Copyright Ex = "Copyright © %company %Y" |
+Legal Trademarks = "" |
+Legal Trademarks Ex = "" |
+Original Filename = "TestProject.exe" |
+Original Filename Ex = "%filename" |
+Private Build = "" |
+Private Build Ex = "" |
+Product Name = " TestProject" |
+Product Name Ex = "%company %application" |
+Product Version = "1.0" |
+Product Version Ex = "%p1.%p2" |
+Special Build = "" |
+Special Build Ex = "" |
+Add Type Lib To DLL = False |
+Include Type Lib Help Links = False |
+TLB Help Style = "HLP" |
+Type Lib FP File Is Rel = False |
+Type Lib FP File = "" |
+ |
+[Default Build Config Release] |
+Config Name = "Release" |
+Is 64-Bit = False |
+Is Release = True |
+Default Calling Convention = "cdecl" |
+Optimization Level = "No optimizations" |
+Require Prototypes = True |
+Show Warning IDs in Build Output = False |
+Selected Warning Level = "None" |
+Warning List None = "4,9,84,105,106,107,108,109,110,111" |
+Warning List Common = "" |
+Warning List Extended = "" |
+Warning List All = "" |
+Warning Mode = 0 |
+Enable Unreferenced Identifiers Warning = False |
+Enable Pointer Mismatch Warning = False |
+Enable Unreachable Code Warning = False |
+Enable Assignment In Conditional Warning = False |
+Uninitialized Locals Compile Warning = "Aggressive" |
+Require Return Values = True |
+Enable C99 Extensions = True |
+Enable OpenMP Extensions = False |
+Stack Size = 250000 |
+Stack Reserve = 1048576 |
+Stack Commit = 4096 |
+Image Base Address = 4194304 |
+Image Base Address x64 = 4194304 |
+Compiler Defines = "/DWIN32_LEAN_AND_MEAN" |
+Sign = False |
+Sign Store = "" |
+Sign Certificate = "" |
+Sign Timestamp URL = "" |
+Sign URL = "" |
+Manifest Embed = False |
+Icon File Is Rel = False |
+Icon File = "" |
+Application Title = "" |
+Use IVI Subdirectories for Import Libraries = False |
+Use VXIPNP Subdirectories for Import Libraries = False |
+Use Dflt Import Lib Base Name = True |
+Where to Copy DLL = "Do not copy" |
+Custom Directory to Copy DLL Is Rel = False |
+Custom Directory to Copy DLL = "" |
+Generate Source Documentation = "None" |
+Runtime Support = "Full Runtime Support" |
+Runtime Binding = "Shared" |
+Embed Project .UIRs = False |
+Generate Map File = False |
+Embed Timestamp = True |
+Create Console Application = False |
+Using LoadExternalModule = True |
+DLL Exports = "Include File Symbols" |
+Register ActiveX Server = False |
+Numeric File Version = "1,0,0,0" |
+Numeric Prod Version = "1,0,0,0" |
+Comments = "" |
+Comments Ex = "" |
+Company Name = "" |
+Company Name Ex = "%company" |
+File Description = "TestProject (Release x86)" |
+File Description Ex = "%application (%rel_dbg %arch)" |
+File Version = "1.0" |
+File Version Ex = "%f1.%f2" |
+Internal Name = "TestProject" |
+Internal Name Ex = "%basename" |
+Legal Copyright = "Copyright © 2016" |
+Legal Copyright Ex = "Copyright © %company %Y" |
+Legal Trademarks = "" |
+Legal Trademarks Ex = "" |
+Original Filename = "TestProject.exe" |
+Original Filename Ex = "%filename" |
+Private Build = "" |
+Private Build Ex = "" |
+Product Name = " TestProject" |
+Product Name Ex = "%company %application" |
+Product Version = "1.0" |
+Product Version Ex = "%p1.%p2" |
+Special Build = "" |
+Special Build Ex = "" |
+Add Type Lib To DLL = False |
+Include Type Lib Help Links = False |
+TLB Help Style = "HLP" |
+Type Lib FP File Is Rel = False |
+Type Lib FP File = "" |
+ |
+[Default Build Config Debug64] |
+Config Name = "Debug64" |
+Is 64-Bit = True |
+Is Release = False |
+Default Calling Convention = "cdecl" |
+Optimization Level = "No optimizations" |
+Require Prototypes = True |
+Show Warning IDs in Build Output = False |
+Selected Warning Level = "None" |
+Warning List None = "4,9,84,105,106,107,108,109,110,111" |
+Warning List Common = "" |
+Warning List Extended = "" |
+Warning List All = "" |
+Warning Mode = 0 |
+Enable Unreferenced Identifiers Warning = False |
+Enable Pointer Mismatch Warning = False |
+Enable Unreachable Code Warning = False |
+Enable Assignment In Conditional Warning = False |
+Uninitialized Locals Compile Warning = "Aggressive" |
+Require Return Values = True |
+Enable C99 Extensions = True |
+Enable OpenMP Extensions = False |
+Stack Size = 250000 |
+Stack Reserve = 1048576 |
+Stack Commit = 4096 |
+Image Base Address = 4194304 |
+Image Base Address x64 = 4194304 |
+Compiler Defines = "/DWIN32_LEAN_AND_MEAN" |
+Sign = False |
+Sign Store = "" |
+Sign Certificate = "" |
+Sign Timestamp URL = "" |
+Sign URL = "" |
+Manifest Embed = False |
+Icon File Is Rel = False |
+Icon File = "" |
+Application Title = "" |
+Use IVI Subdirectories for Import Libraries = False |
+Use VXIPNP Subdirectories for Import Libraries = False |
+Use Dflt Import Lib Base Name = True |
+Where to Copy DLL = "Do not copy" |
+Custom Directory to Copy DLL Is Rel = False |
+Custom Directory to Copy DLL = "" |
+Generate Source Documentation = "None" |
+Runtime Support = "Full Runtime Support" |
+Runtime Binding = "Shared" |
+Embed Project .UIRs = False |
+Generate Map File = False |
+Embed Timestamp = True |
+Create Console Application = False |
+Using LoadExternalModule = True |
+DLL Exports = "Include File Symbols" |
+Register ActiveX Server = False |
+Numeric File Version = "1,0,0,0" |
+Numeric Prod Version = "1,0,0,0" |
+Comments = "" |
+Comments Ex = "" |
+Company Name = "" |
+Company Name Ex = "%company" |
+File Description = "TestProject (Debug x64)" |
+File Description Ex = "%application (%rel_dbg %arch)" |
+File Version = "1.0" |
+File Version Ex = "%f1.%f2" |
+Internal Name = "TestProject" |
+Internal Name Ex = "%basename" |
+Legal Copyright = "Copyright © 2016" |
+Legal Copyright Ex = "Copyright © %company %Y" |
+Legal Trademarks = "" |
+Legal Trademarks Ex = "" |
+Original Filename = "TestProject.exe" |
+Original Filename Ex = "%filename" |
+Private Build = "" |
+Private Build Ex = "" |
+Product Name = " TestProject" |
+Product Name Ex = "%company %application" |
+Product Version = "1.0" |
+Product Version Ex = "%p1.%p2" |
+Special Build = "" |
+Special Build Ex = "" |
+Add Type Lib To DLL = False |
+Include Type Lib Help Links = False |
+TLB Help Style = "HLP" |
+Type Lib FP File Is Rel = False |
+Type Lib FP File = "" |
+ |
+[Default Build Config Release64] |
+Config Name = "Release64" |
+Is 64-Bit = True |
+Is Release = True |
+Default Calling Convention = "cdecl" |
+Optimization Level = "No optimizations" |
+Require Prototypes = True |
+Show Warning IDs in Build Output = False |
+Selected Warning Level = "None" |
+Warning List None = "4,9,84,105,106,107,108,109,110,111" |
+Warning List Common = "" |
+Warning List Extended = "" |
+Warning List All = "" |
+Warning Mode = 0 |
+Enable Unreferenced Identifiers Warning = False |
+Enable Pointer Mismatch Warning = False |
+Enable Unreachable Code Warning = False |
+Enable Assignment In Conditional Warning = False |
+Uninitialized Locals Compile Warning = "Aggressive" |
+Require Return Values = True |
+Enable C99 Extensions = True |
+Enable OpenMP Extensions = False |
+Stack Size = 250000 |
+Stack Reserve = 1048576 |
+Stack Commit = 4096 |
+Image Base Address = 4194304 |
+Image Base Address x64 = 4194304 |
+Compiler Defines = "/DWIN32_LEAN_AND_MEAN" |
+Sign = False |
+Sign Store = "" |
+Sign Certificate = "" |
+Sign Timestamp URL = "" |
+Sign URL = "" |
+Manifest Embed = False |
+Icon File Is Rel = False |
+Icon File = "" |
+Application Title = "" |
+Use IVI Subdirectories for Import Libraries = False |
+Use VXIPNP Subdirectories for Import Libraries = False |
+Use Dflt Import Lib Base Name = True |
+Where to Copy DLL = "Do not copy" |
+Custom Directory to Copy DLL Is Rel = False |
+Custom Directory to Copy DLL = "" |
+Generate Source Documentation = "None" |
+Runtime Support = "Full Runtime Support" |
+Runtime Binding = "Shared" |
+Embed Project .UIRs = False |
+Generate Map File = False |
+Embed Timestamp = True |
+Create Console Application = False |
+Using LoadExternalModule = True |
+DLL Exports = "Include File Symbols" |
+Register ActiveX Server = False |
+Numeric File Version = "1,0,0,0" |
+Numeric Prod Version = "1,0,0,0" |
+Comments = "" |
+Comments Ex = "" |
+Company Name = "" |
+Company Name Ex = "%company" |
+File Description = "TestProject (Release x64)" |
+File Description Ex = "%application (%rel_dbg %arch)" |
+File Version = "1.0" |
+File Version Ex = "%f1.%f2" |
+Internal Name = "TestProject" |
+Internal Name Ex = "%basename" |
+Legal Copyright = "Copyright © 2016" |
+Legal Copyright Ex = "Copyright © %company %Y" |
+Legal Trademarks = "" |
+Legal Trademarks Ex = "" |
+Original Filename = "TestProject.exe" |
+Original Filename Ex = "%filename" |
+Private Build = "" |
+Private Build Ex = "" |
+Product Name = " TestProject" |
+Product Name Ex = "%company %application" |
+Product Version = "1.0" |
+Product Version Ex = "%p1.%p2" |
+Special Build = "" |
+Special Build Ex = "" |
+Add Type Lib To DLL = False |
+Include Type Lib Help Links = False |
+TLB Help Style = "HLP" |
+Type Lib FP File Is Rel = False |
+Type Lib FP File = "" |
+ |
+[Compiler Options] |
+Default Calling Convention = "cdecl" |
+Require Prototypes = True |
+Require Return Values = True |
+Enable Pointer Mismatch Warning = False |
+Enable Unreachable Code Warning = False |
+Enable Unreferenced Identifiers Warning = False |
+Enable Assignment In Conditional Warning = False |
+O Option Compatible With 5.0 = False |
+Enable C99 Extensions = True |
+Uninitialized Locals Compile Warning = "Aggressive" |
+Precompile Prefix Header = False |
+Prefix Header File = "" |
+ |
+[Run Options] |
+Stack Size = 250000 |
+Stack Commit = 4096 |
+Image Base Address = 4194304 |
+Image Base Address x64 = 4194304 |
+ |
+[Compiler Defines] |
+Compiler Defines = "/DWIN32_LEAN_AND_MEAN" |
+ |
+[Include Paths] |
+Include Path 1 Is Rel = True |
+Include Path 1 Rel To = "Project" |
+Include Path 1 Rel Path = "../../../../../../Python/Python35/include" |
+Include Path 1 = "/c/Python/Python35/include" |
+ |
+[Create Executable] |
+Executable File_Debug Is Rel = True |
+Executable File_Debug Rel To = "Project" |
+Executable File_Debug Rel Path = "TestProject.exe" |
+Executable File_Debug = "/c/Users/rok/Documents/rok/lab/CVIPython/TestProject.exe" |
+Executable File_Release Is Rel = True |
+Executable File_Release Rel To = "Project" |
+Executable File_Release Rel Path = "TestProject.exe" |
+Executable File_Release = "/c/Users/rok/Documents/rok/lab/CVIPython/TestProject.exe" |
+Executable File_Debug64 Is Rel = True |
+Executable File_Debug64 Rel To = "Project" |
+Executable File_Debug64 Rel Path = "TestProject.exe" |
+Executable File_Debug64 = "/c/Users/rok/Documents/rok/lab/CVIPython/TestProject.exe" |
+Executable File_Release64 Is Rel = True |
+Executable File_Release64 Rel To = "Project" |
+Executable File_Release64 Rel Path = "TestProject.exe" |
+Executable File_Release64 = "/c/Users/rok/Documents/rok/lab/CVIPython/TestProject.exe" |
+Icon File Is Rel = False |
+Icon File = "" |
+Application Title = "" |
+Numeric File Version = "1,0,0,0" |
+Numeric Prod Version = "1,0,0,0" |
+Comments = "" |
+Comments Ex = "" |
+Company Name = "" |
+Company Name Ex = "%company" |
+File Description = "TestProject (Release x86)" |
+File Description Ex = "%application (%rel_dbg %arch)" |
+File Version = "1.0" |
+File Version Ex = "%f1.%f2" |
+Internal Name = "TestProject" |
+Internal Name Ex = "%basename" |
+Legal Copyright = "Copyright © 2016" |
+Legal Copyright Ex = "Copyright © %company %Y" |
+Legal Trademarks = "" |
+Legal Trademarks Ex = "" |
+Original Filename = "TestProject.exe" |
+Original Filename Ex = "%filename" |
+Private Build = "" |
+Private Build Ex = "" |
+Product Name = " TestProject" |
+Product Name Ex = "%company %application" |
+Product Version = "1.0" |
+Product Version Ex = "%p1.%p2" |
+Special Build = "" |
+Special Build Ex = "" |
+DLL Exports = "Include File Symbols" |
+Use IVI Subdirectories for Import Libraries = False |
+Use VXIPNP Subdirectories for Import Libraries = False |
+Use Dflt Import Lib Base Name = True |
+Where to Copy DLL = "Do not copy" |
+Custom Directory to Copy DLL Is Rel = False |
+Custom Directory to Copy DLL = "" |
+Generate Source Documentation = "None" |
+Add Type Lib To DLL = False |
+Include Type Lib Help Links = False |
+TLB Help Style = "HLP" |
+Type Lib FP File Is Rel = False |
+Type Lib FP File = "" |
+Type Lib Guid = "" |
+Runtime Support = "Full Runtime Support" |
+Instrument Driver Support Only = False |
+Embed Project .UIRs = False |
+Generate Map File = False |
+ |
+[External Compiler Support] |
+UIR Callbacks File Option = 0 |
+Using LoadExternalModule = False |
+Create Project Symbols File = True |
+UIR Callbacks Obj File Is Rel = False |
+UIR Callbacks Obj File = "" |
+Project Symbols H File Is Rel = False |
+Project Symbols H File = "" |
+Project Symbols Obj File Is Rel = False |
+Project Symbols Obj File = "" |
+ |
+[ActiveX Server Options] |
+Specification File Is Rel = False |
+Specification File = "" |
+Source File Is Rel = False |
+Source File = "" |
+Include File Is Rel = False |
+Include File = "" |
+IDL File Is Rel = False |
+IDL File = "" |
+Register ActiveX Server = False |
+ |
+[Signing Info] |
+Sign = False |
+Sign Debug Build = False |
+Store = "" |
+Certificate = "" |
+Timestamp URL = "" |
+URL = "" |
+ |
+[Manifest Info] |
+Embed = False |
+ |
+[tpcSection] |
+tpcEnabled = 0 |
+tpcOverrideEnvironment = 0 |
+tpcEnabled x64 = 0 |
+tpcOverrideEnvironment x64 = 0 |
+ |
Index: apps/CVIpython/testgui.py |
=================================================================== |
--- apps/CVIpython/testgui.py (nonexistent) |
+++ apps/CVIpython/testgui.py (revision 260) |
@@ -0,0 +1,60 @@ |
+import os |
+print(os.getcwd()) |
+#import sys |
+#sys.stdout = sys.stderr = open("log_file.txt", "w") |
+from ctypes import * |
+from time import time,ctime,sleep |
+print( 'gui executed on ',ctime(time())) |
+ |
+# zal tole ne dela. Bilo bi najbolj enostavno, ker ne bi bilo treba delati posebnih knjiznic |
+#cvi = cdll.LoadLibrary(r"C:\Program Files (x86)\National Instruments\CVI2013\cvi") |
+#cvi = cdll.LoadLibrary("C:/Users/rok/Documents/rok/lab/CVIPython/cvi") |
+#cvi = cdll.LoadLibrary("cvi") |
+ |
+mylib = cdll.LoadLibrary(r"ExportCVIFunctions") |
+mylib.pySetCtrlVal.argtypes = [c_char_p , c_char_p ] |
+#mylib.pyGetCtrlVal.argtypes = [c_char_p , POINTER(c_int) ] |
+ |
+mylib.pyProcessUserEvent.argtypes = [c_char_p ] |
+mylib.pyQueueUserEvent.argtypes = [c_char_p ] |
+mylib.pyGetCtrlVal.argtypes = [c_char_p , c_void_p ] |
+ |
+retval= mylib.pySetPanelHandle(panel) |
+ |
+values = c_int() |
+ |
+retval= mylib.pyPrint(10) |
+retval= mylib.pySetPanelHandle(panel) |
+retval= mylib.pySetQueueHandle(queue) |
+retval= mylib.pyLoadUirHeader(b"TestGui.h"); |
+ |
+retval= mylib.pySetCtrlVal(b"PANEL_TXT", b"A E C" ) |
+retval= mylib.pyGetCtrlVal(b"PANEL_X0", byref(values) ) |
+ |
+print("GetCtrlVal") |
+print(values) |
+ |
+ |
+mdate = create_string_buffer(32) |
+retval= mylib.pyGetCtrlVal(b"PANEL_TXT", mdate ) |
+ |
+print("GetCtrlVal") |
+print(mdate.value) |
+ |
+#retval= mylib.pyQueueUserEvent(b"PANEL_TEST" ) |
+retval= mylib.pyProcessUserEvent(b"PANEL_TEST" ) |
+ |
+def greet(name): |
+ print( 'Hello', name ) |
+greet('Jack') |
+greet('Jill') |
+greet('Bob') |
+ |
+ |
+ |
+for i in range(3): |
+ retval= mylib.pySetCtrlVal(b"PANEL_TXT", bytes( ctime(time()), 'utf-8') ) |
+ retval= mylib.pySetCtrlVal(b"PANEL_NUMERIC", bytes( "{}".format(i), 'utf-8') ) |
+ sleep(2) |
+ |
+retval= mylib.pyQueueUserEvent(b"PANEL_START" ) |