09-09-2013 08:16 AM
Hello,
I am creating DLL/Lib stages on LabWindowsCVI V10.0
- Driver (Material Drivers with error management and spy memorization)
Ex : Management_IP, Management_RS, Management_GPIB, ... (Open/Close/Read/Write/...)
- Protocol (Data Formatting using the "Driver" functions)
Ex : Management_Device1_IP, Management_Device2_IP,Management_Device3_RS, Management_Device4_GPIB, ... (SendCommand1/SendCommand2/...)
- Bench (Adapt the bench variable nd caractéristics using the "Protocol" functions)
Ex : Configuration1 = Relay X Commutation and SendCommand1...
- Product (Test Development Sequencing for product Y using "Bench" Function and, if necessary "Protocol" functions)
Ex : Test1 = Mesure X with Configuration1 and Limit checking
The main interest is to :
- have STANDARD "Driver" and "Protocol" using in all the manufacture of our group.
- reduce the development and the validation for new benches and/or new products
- facilitation for debug and product move
=> Question 1 : How can I limit the number of include files into the upper projects.
I join a small exemple.
Remarque : In this example, stages do not have interest but I need this information for my complexe system...
In the "Include Files" of the project "3-BenchLevel" only have a link to "2-ProtocolFunctions.lib" to use :
- Level -1 : The "iFileTXTandBIN_OpenAndClose" function
- Level -2 : The "iFileTXTandBIN_Open" and/or "iFileTXTandBIN_Close" functions
Objectif 1 : not include 1-DriverFunctions.lib & h.
Objectif 2 : not include 2-ProtocolFunctions.h
=> Question 2 (out of this subject) : Including a Function Panel to compilation
- How can I include a function panel into the level -2 to use it into the level -1 and 0 ?
- Can you help me to solve the "stdio.h" compatibility trouble at compilation ?
- I would like too to create a custom type FILE for input functions parameters...
Thank for your help
Guillaume