Home

DDG 32 Bit Dynamic Link Libraries User Manual

image

Contents

1. cycle DDG start starts the sequence on the DDG module Depending on the parameter REPEAT setting the sequence runs continuously or it runs number of cycles set for parameter CYC_CYCLE or runs one cycle only To check whether a measurement is finished the DDG read status function is used A running sequence can be stopped by the DDG stop function Error Handling Each DDG DLL function returns an error status Return values gt 0 indicate error free execution A value lt 0 indicates that an error has occurred The meaning of a particular error code can be found in dde def h file and can be read using DDG get error string We recommend to check the return value after each function call Description ofthe DDG DLL Functions Input parameters set file pointer to a string containing the name of the initialisation file in use including file name and extension Return value 0 no errors 0 error code Description Before a measurement is started the measurement parameter values must be written into the internal structures of the DLL functions not directly visible from the user program and sent to the control registers of the DDG module This is accomplished by the function DDG init The DDG init function reads the parameter values from a specified initialisation file sends the parameter values to the DDG control registers on active DDG module reads channels pulses from the file verifies them and loads
2. structure Return value 0 no errors lt 0 error code see ddg def h The structure eep data is filled with the contents of the EEPROM of the DDG module The EEPROM contains the production data of the module The structure DDG EEP Data is defined in the file dde def h short DDG write eeprom data unsigned short write enable DDG EEP Data eep data Input parameters write enable write enable password eep data pointer to result structure Return value 0 no errors 0 error code see ddg def h 19 The function is used to write data to the EEPROM of an DDG module by the manufacturer To prevent corruption of the data by not allowed access the function writes the EEPROM only if the write enable password is correct Input parameters adjpara pointer to result structure Return value 0 no errors 0 error code see ddg def h The structure adjpara is filled with adjust parameters that are currently in use The parameters can either be previously loaded from the EEPROM by DDG init or DDG get eeprom data or not recommended set by DDG set adust parameters The structure DDG Adjust Para is defined in the file ddg def h It contains adjust values for start pulse and all delayed pulses Normally the adjust parameters need not be read explicitly because the EEPROM is read during DDG init and the adjust values are taken into account when the DDG module registers and channels memory are loaded Input parameters adjp
3. Becker amp Hickl GmbH Nahmitzer Damm 12277 Berlin Tel 49 30 787 56 32 Fax 49 30 787 57 34 email info becker hickl de http www becker hickl de ddg_dll doc DDG 32 Bit Dynamic Link Libraries User Manual Version 1 2 May 2003 Introduction The DDG 32 bits Dynamic Link Library contains all functions to control the DDG modules The functions work under Windows 9x NT ME 2K XP The program which calls the DLLs must be compiled with the compiler option Structure Alignment set to 1 Byte The distribution disks contain the following files DDG DLL dynamic link library main file DDG LIB import library file for Microsoft Visual C C Borland C C Watcom C C and Symantec C C compilers DDG_DEF H Include file containing Types definitions Functions Prototypes and Pre processor statements DDG200 SET DDG DLL settings file DDG DLL DOC This description file USE_DDG C The simple example of using DDG DLL functions Choose the correct import library file to link in your compiler There is no special installation procedure required Simply execute the setup program from the Ist distribution diskette and follow its instructions DDG DLL Functions list The following functions are implemented in the DDG DLL Initialisation functions DDG init DDG test if active DDG get init status DDG get module info DDG get version DDG get mode DDG set mode DDG get version DDG get error string Setup functions DDG get
4. DDG init function see above the measurement parameters from the initialisation file are present in the module and in the internal data structures of the DLLs To give the user access to the parameters the function DDG_get_parameters is provided This function transfers the parameter values of the DDG module from the internal structures of the DLLs into a structure of the type DDGdata see ddg def h A suitable structure has to be defined by the user The parameter values in this structure are described below short mod_no module no on PCI bus 0 3 short init set to initialisation result code short polarity polarity of delayed pulses 6 bit value bit 0 5 polarity of channels 1 6 bit 0 negative positive default 0x3f all channels positive short repeat 0 single cycle 1 cyc count cycles 2 continuos work default unsigned long cyc_count cycles counter 1 4095 default 100 valid when repeat 0 unsigned long rep_time repeat time in 10ns units 3 Oxffffffff default 1000 unsigned long pulse_width start pulse width in 10ns units 2 Oxfffffffe default 100 Input parameters data pointer to parameters structure type DDGdata see ddg_def h Return value 0 no errors 0 error code see ddg def h Description The procedure sends all parameters from the DDGdata structure to the internal DLL structures and to the control registers of the DDG module The new parameter values are recalculated ac
5. Description The procedure analyses all pulses from the buffer data number of pulses is given in info structure and writes them to the DDG channel chan_no memory previous channel s memory contents is overwritten The action is stopped when an error in a pulse definition is found Pulse line with error and error explanation together with the number of verified pulses are written to DDGChanlnfo info structure see ddg def h file for definition Please make sure that the buffer data be allocated with enough memory for required number of pulses Channel s pulse is defined as a set of three unsigned 32 bit values which mean Start time of the pulse 10ns 2 4294967294 Oxfffffffe Width of the pulse 10ns 1 524288 Fine offset for the pulse start 1 25ns O 7 16 short DDG add pulse char pulse unsigned long chan buf DDGChanInfo info short force short send to chan Input parameters pulse string with pulse definition chan buf pointer to the channel pulses buffer info pointer to DDGChanInfo channel info structure filled on exit on input contains initial number of pulses in chan buf buffer force 1 0 force or not adding the pulse in case of conflicts with other pulses send to chan 0 5 send all verified pulses to send to chan channel s memory do not send pulses to the memory Return value 0 pulse not added because of conflicts info explains conflict 1 puls
6. ara pointer to result structure Return value 0 no errors 0 error code see ddg def h The adjust parameters in the internal DLL structures not in the EEPROM are set to values from the structure adjpara The function is used to set the module adjust parameters to values other than the values from the EEPROM The new adjust values will be used until the next call of DDG init The next call to DDG init replaces the adjust parameters by the values from the EEPROM We strongly discourage to use modified adjust parameters because the module function can be seriously corrupted The structure DDG Adjust Para is defined in the file dde def h 20 Input parameters status pointer to result value Return value 0 no errors lt 0 error code see ddg def h The DDG read status function returns the current status of the DDG module The status bits delivered by the function are listed below see also dde def h STATUS RUN 8 sequence is running STATUS END 4 sequence was finished after last cycle The function is normally used to test whether the sequence is still running Input parameters curr count pointer to result value Return value 0 no errors 0 error code see ddg def h The DDG get curr count function fills curr count with the current value of cycles counter on the DDG module The function is used to check how many cycles were already completed during the running sequence after DDG start Input paramete
7. ase adr pointer to DDG resources memory transfers only char serial no 16 module serial number Input parameters mod no module number 0 3 version pointer to the version variable Return value 0 no errors 0 error code see ddg def h Description The procedure loads the version variable with the FPGA version of the DDG module mod no This is low a level procedure not needed normally Input parameters none Return value current mode of DLL operation Description The procedure returns current mode of DLL operation hardware or simulation Possible mode values are defined in the dde def h file define DDG HARD 0 hardware mode define DDG_SIMUL200 200 simulation mode of DDG 200 11 Input parameters mode mode of DLL operation force_use force using the module ifthey are locked in use in use pointer to the table with information which module must be used Return value 0 no errors 0 error code see ddg def h Description The procedure is used to change the mode of the DLL operation between the hardware mode and the simulation mode It is a low level procedure and not intended to normal use It is used to switch the DLL to the simulation mode if hardware errors occur during the initialisation Table in use should contain entries for all 4 modules but only one can be set to 1 0 means that the module will be unlocked and not used longer means that the module will
8. be initialised and locked When the Hardware Mode is requested for one of 4 possible modules if in use entry 1 the proper module is locked and initialised if it wasn t with the initial parameters set from ini file but only when it was not locked by another application or when force use 1 if in use entry 0 the proper module is unlocked and can be used further When one of the simulation modes is requested for each of 4 possible modules if in use entry 1 the proper module is initialised if it wasn t with the initial parameters set from ini file if in use entry 0 the proper module is unlocked and can be used further Errors during the module initialisation can cause that the module is excluded from use Use the function DDG get init status and or DDG get module info to check which modules are correctly initialised and can be use further Use the function DDG get mode to check which mode is actually set Possible mode values are defined in the ddg_def h file short DDG get error string short error id char dest string short max length Input parameters error id DDG DLL error id 0 number of DDG errors 1 see ddg def h file 12 dest_string pointer to destination string max length max number of characters which can be copied to dest_string Return value 0 no errors lt 0 error code The procedure copies to dest_string the string which contains the explanation o
9. cording to the parameter limits and hardware restrictions Furthermore cross dependencies between different parameters are taken into account to ensure the correct hardware operation It is recommended to read back the parameters after setting to get their true values after recalculation The values of mod no and init are not changed They can be changed only by a new set file in a DDG init call 14 If an error occurs for a particular parameter the procedure does not set the rest of the parameters and returns with an error code Input parameters chan_no channel number 0 5 data pointer to the channel pulses buffer Return value gt 0 no errors number of channel pulses 0 error code see ddg def h Description The procedure fills buffer data with channel chan no pulses and returns on success number of channel pulses Please make sure that the buffer data be allocated with enough memory for up to 64 pulses Channel s pulse is defined as a set of three unsigned 32 bit values which mean Start time of the pulse 10ns 2 4294967294 Oxfffffffe Width of the pulse 10ns 1 524288 Fine offset for the pulse start 1 25ns O 7 short DDG get pulses from file short chan no short send to hard char file name unsigned long data DDGChanInfo info Input parameters chan no channel number 0 5 send to hard 1 0 send or not verified pulses to channel memory file nam
10. ddg chanl 0 1 5 1 10 1 ddg_chan2 ddg_chan3 ddg_chan4 ddg_chan5 ddg_chan6 The module will be initialised but only when it is not in use locked by other application If for some reasons the module which was locked must be initialised it can be done using the function DDG set mode with the parameter force use 1 After successful initialisation the module is locked to prevent that other application can access it After an DDG_init call we recommend to call the DDG_test_if_active function to check whether required module pci_card no on PCI bus DGG module is active Only active module can be operated further It is recommended but not required to check also the initialisation status by DDG get init status of the used module In case of a wrong initialisation the initialisation status shows the reason of the error see ddg_def h for possible values Additional information about DDG modules can be obtained by calling DDG get module info function The function fills DDGModInfo structure see ddg def h for definition Input parameters none Return value 0 module not active cannot be used 1 module active Description The procedure returns information whether the DDG module is active or not As a result ofa wrong initialisation DDG_init function a module can be deactivated To find out the reason of deactivating the module run the DDG get init status function Input parameters mod n
11. e DDG settings file name data pointer to the channel pulses buffer info pointer to DDGChanInfo channel info structure filled on exit Return value gt 0 no errors 0 error code see dde def h Description The procedure looks for ddg chan section of the channel chan_no in the file file name The sections are numbered from 1 to 6 so the proper section number is chan_no 1 15 If the section is found all its pulses lines are interpreted and added to the buffer data if no errors were found in the pulse line The action is stopped when an error in a pulse line is found Pulse line with error and error explanation together with the number of verified pulses are written to DDGChanlnfo info structure see ddg_def h file for definition If send_to_hard equals 1 all correctly verified pulses are written to the DDG channel chan no memory Please make sure that the buffer data be allocated with enough memory for up to 64 pulses Channel s pulse is defined as a set of three unsigned 32 bit values which mean Start time of the pulse 10ns 2 4294967294 Oxfffffffe Width of the pulse 10ns 1 524288 Fine offset for the pulse start 1 25ns 0 7 Input parameters chan_no channel number 0 5 data pointer to the channel pulses buffer info pointer to DDGChanlnfo channel info structure filled on exit Return value gt no errors lt 0 error code see dde def h
12. e added no conflicts 2 pulse added with resolving conflicts when force 1 0 error code see ddg def h Description Initial number of pulses in chan_buf is given in info structure The procedure analyses pulse string to get pulse definition from it Procedure checks then whether new pulse makes conflict with one or more pulses in chan buf If there are no conflicts or when force is equal 1 new pulse is added to the chan_buf Remember that if new pulse conflicts with some pulses but it is added due to force 1 resulting buffer contents and number of pulses can differ significantly from initial state because all conflicting pulses will be removed When send to chan is in range from 0 to 5 new chan buf contents is written to the proper DDG channel s memory previous channel s memory contents is overwritten Pulse line with error and error explanation if any together with the final number of pulses after adding the new pulse are written to DDGChanInfo info structure see ddg def h file for definition Please make sure that the buffer chan buf be allocated with enough memory for up to 64 pulses Channel s pulse is defined as a set of three unsigned 32 bit values which mean Start time of the pulse 10ns 2 4294967294 Oxfffffffe Width of the pulse 10ns 1 524288 Fine offset for the pulse start 1 25ns 0 7 17 Input parameters chan_n
13. ed settings file sends the parameter values to the DDG control registers on active DDG module reads channels pulses from the file verifies them and loads to channels memory all verified pulses performs a hardware test memory test amp EEPROM checksum test of active DDG module The settings file is an ASCII file with a structure shown in the table below We recommend either to use the file DDG200 SET or to start with DDG200 SET and to introduce the desired changes DDG settings file DDG parameters have to be included in set file only when parameter value is different from default ddg_base simulation 0 0 hardware mode default gt 0 simulation mode see ddg def h for possible values pci_bus_no 1 PCI bus on which DDG modules will be looking for 0 255 default 1 all PCI busses will be scanned pci card nor 0 number of DDG module on PCI bus to be initialised 3 0 3 default 0 1st module on PCI bus ddg module DDG module hardware parameters repeat 2 0 single cycle 1 cyc count cycles 2 continuos work default cyc count 100 cycles counter 1 4095 default 100 valid when repeat 1 rep_time 1000 repeat time in 10ns units 3 Oxffffffff default 1000 pulse_width 100 start pulse width in 10ns units 2 Oxfffffffe default 100 polarity Ox3f polarity of delayed pulses 6 bit value bit0 5 polarity of channels 1 6 Mbit 0 negative 1 pos
14. f the DDG DLL error with id equal error_id Up to max_length characters will be copied Possible error_id values are defined in the ddg_def h file Input parameters par_id parameter identification number see ddg_def h value pointer to the parameter value Return value 0 no errors lt 0 error code see ddg_def h The procedure loads value with the actual value of the requested parameter from the DLL internal data structures ofthe DDG module The par_id values are defined in ddg_def h file as DDG PARAMETERS KEYWORDS Input parameters par id parameter identification number value new parameter value Return value 0 no errors 0 error code see ddg def h The procedure sets the specified hardware parameter The value of the specified parameter is transferred to the internal data structures of the DLL functions and to the DDG module mod no The new parameter value is recalculated according to the parameter limits and hardware restrictions Furthermore cross dependencies between different parameters are taken into account to ensure the correct hardware operation It is recommended to read back the parameters after setting to get their real values after recalculation The par id values are defined in dde def h file as DDG PARAMETERS KEYWORDS 13 Input parameters data pointer to result structure type DDGdata Return value 0 no errors 0 error code see ddg_def h Description After calling the
15. itive default Ox3f all channels positive Channels pulses 6 channels max 64 pulses per channel Start Width Fine offset times in 10ns units ddg chanl 0 1 5 1 10 1 ddg_chan2 ddg_chan3 ddg_chan4 ddg_chan5 ddg_chan6 The module will be initialised but only when it is not in use locked by other application If for some reasons the module which was locked must be initialised it can be done using the function DDG set mode with the parameter force use 1 After successful initialisation the module is locked to prevent that other application can access it After an DDG init call we recommend to call the DDG test if active function to check whether required module pci card no on PCI bus DGG module is active Only active module can be operated further It is recommended but not required to check also the initialisation status by DDG get init status of the used module In case of a wrong initialisation the initialisation status shows the reason of the error see ddg def h for possible values Additional information about DDG modules can be obtained by calling DDG get module info function The function fills DDGModInfo structure which is described below short module_type module type 200 DDG 200 short bus_number PCI bus number short slot_number slot number on PCI bus short in_use used and locked by other application 0 not used 4 1 in use int init set to initialisation re
16. o channel number 0 5 info pointer to DDGChanInfo structure filled on exit Return value gt no errors lt 0 error code see dde def h Description The procedure fills info structure with the contents of internal DLL DDGChanInfo structure of DDG channel chan no see ddg def h file for definition DDGChanInfo structure contains current number of pulses in channel s memory and the information about the last pulse which was not verified and not added Input parameters file name pathname of DDG settings file Return value gt no errors 0 error code see dde def h Description The procedure reads all DDG module parameters from file name DDG settings file The function reads the parameter values from a specified settings file sends the parameter values to the DDG control registers on active DDG module reads channels pulses from the file verifies them and loads to channels memory all verified pulses 18 Input parameters file name pathname of DDG settings file comments pointer to the buffer with comments lines which will be added to the destination file Return value gt no errors 0 error code see dde def h Description The procedure writes all DDG module parameters and channels pulses to the file name DDG settings file The contents of the comments buffer is also written to the file as comment lines before ddg base section Input parameters eep data pointer to result
17. o module number 0 3 ini status pointer to the initialisation status Return value 0 no errors 0 error code see ddg def h Description The procedure loads the ini status variable with the initialisation result code set by the function DDG init for module mod no The possible values are shown below see also ddg def h INIT OK 0 no error INIT NOT DONE 1 init not done INIT WRONG EEP CHKSUM 2 wrong EEPROM checksum INIT CANT OPEN PCI CARD 3 cannot open PCI card INIT MOD IN USE 4 module already in use INIT HARD TEST ERR 5 hardware test failed Only one module can be initialised number pci card no on PCI bus Other modules will have status INIT NOT DONE Input parameters mod no module number 0 3 mod info pointer to the result structure Return value 0 no errors 0 error code see ddg def h Description After calling the DDG init function see above the DDGModInfo internal structures for all 4 modules are filled This function transfers the contents of the internal structure of the DLL into a structure of the type DDGModInfo see ddg def h which has to be defined by the user The parameters included in this structure are described below 10 short module_type module type 200 DDG 200 short bus_number PCI bus number short slot number slot number on PCI bus shortin use used and locked by other application 0 not used 1 in use int init set to initialisation result code unsigned long b
18. parameter DDG set parameter DDG get parameters DDG set parameters DDG get pulses DDG get pulses from file DDG set pulses DDG add pulse DDG get chan info DDG read settings from file DDG save settings to file DDG get eeprom data DDG write eeprom data Status functions DDG read status DDG read curr count Control functions DDG start DDG stop DDG channel s memory Read Write functions DDG read chan data DDG write chan data Functions listed above must be called with C calling convention which is default for C and C programs Identical set of functions is available for environments like Visual Basic which requires _stdcall calling convention Names of these functions have std letters after DDG for example DDGstd_start it is stdcall version of DDG start Description and behaviour of these functions are identical to the functions from the first default set the only difference is calling convention Application Guide Initialisation of the DDG Measurement Parameters Before a measurement is started the measurement parameter values must be written into the internal structures of the DLL functions not directly visible from the user program and sent to the control registers of the DDG module This is accomplished by the function DDG_init The DDG DLL Functions can control one module from up to four DDG modules on PCI bus DDG 200 The DDG_init function reads the parameter values from a specifi
19. rs none Return value 0 no errors 0 error code see ddg def h The procedure is used to start the sequence 2 The sequence continues dependently on REPEAT parameter REPEAT 0 single cycle only REPEAT 1 continues until the CYC COUNT number of cycles has been completed REPEAT 2 continues endless until DDG stop is called The procedure DDG_read_status can be used to check whether the sequence was completed After the sequence was successfully completed DDG stop should be called to set the module to the initial state Input parameters none Return value 0 no errors 0 error code see ddg def h DDG stop is used to stop the running sequence by a software command short DDG read chan data short chan no short from short words no unsigned long data Input parameters chan no channel number 0 5 from Ist address to read 0 127 words no number of 32 bit words to read 1 128 from data pointer to data buffer to be filled Return value 0 no errors 0 error code see ddg def h The procedure is obsolete and it is present only for compatibility with the older DLL versions The procedure is used to read the memory of the channel chan_no on the DDG module The procedure reads the channel s memory from the address from up to the address from words no and writes the values to the buffer data Please make sure that the b
20. settings file verify them and load to channels memory all verified pulses Pulses can be read from the DDG channel to the buffer using DDG get pulses function DDG write pulses function verifies pulses from the buffer and writes all verified pulses to one of the DDG channels DDG add pulse extracts the pulse from the text string and after verification writes it to one of the DDG channels Information about the channel s pulses is written to DDGChanlnfo structure see ddg def h file and can be read using DDG get chan info In case of errors during verification of the pulses DDGChanlnfo structure delivers error explanation Channel Memory Read Write Functions These functions are obsolete and they are present only for compatibility with the older DLL versions Reading and writing the channel s memory of the DDG module is accomplished by the functions DDG read chan data and DDG write chan data It is strongly recommended to use described earlier channel pulses r w functions instead of reading and writing the channel s memory Without detailed information about DDG hardware these functions are useless Standard Measurements The most important measurement functions are listed below The DDG read status function returns the current status of the DDG module The status bits delivered by the function are listed below see also ddg def h For DDG 200 modules STATUS RUN 8 sequence is running STATUS END 4 sequence was finished after last
21. ss dependencies and hardware restrictions Therefore it is recommended to read the parameter values after calling DDG set_parameters by DDG_get_parameters Single parameter values can be transferred to or from the DLL and module level by the functions DDG set parameter and DDG get parameter To identify the desired parameter the parameter identification par id is used The parameter identification keywords are defined in dde def h After initialisation DDG read settings from file function can also be used to load all parameters and channels pulses from the settings file Channel Pulses Read Write Functions Channel pulse is defined as a set of three unsigned 32 bit values which mean Start time of the pulse 10ns 2 4294967294 Oxfffffffe Width of the pulse 10ns 1 524288 Fine offset for the pulse start 1 25ns O 7 Channel pulses can be stored in ddg chanl ddg chan6 sections of DDG settings files Non existing Fine offset value in ddg chan sections means offset equal 0 Each DDG channel can contain up to 64 pulses The minimum distance between the end of the pulse and the start of the next pulse is equal 1 10ns except the situation when fine offsets of the pulses are not equal Then the distance must be minimum 4 10ns The minimum distance between start times of two subsequent pulses is equal 3 10ns DDG init DDG read settings from file and DDG get pulses from file functions read channels pulses from the
22. sult code unsigned long base_adr pointer to DDG resources memory transfers only char serial_no 16 module serial number After calling the DDG_init function the measurement parameters from the initialisation file are present in the module control registers and in the internal data structures of the DLLs To give the user access to the parameters the function DDG_get_parameters is provided This function transfers the parameter values from the internal structures of the DLLs into a structure of the type DDGdata see ddg def h which has to be declared by the user The parameter values in this structure are described below short mod_no module no on PCI bus 0 3 short init set to initialisation result code short polarity polarity of delayed pulses 6 bit value bit 0 5 polarity of channels 1 6 bit 0 negative positive default 0x3f all channels positive short repeat 0 single cycle 1 cyc_count cycles 2 continuos work default unsigned long cyc_count cycles counter 1 4095 default 100 valid when repeat 0 unsigned long rep_time repeat time in 10ns units 3 Oxffffffff default 1000 unsigned long pulse_width start pulse width in 10ns units 2 Oxfffffffe default 100 To send the complete parameter set back to the DLLs and to the DDG module e g after changing parameter values the function DDG_set_parameters is used This function checks and if required recalculates all parameter values due to cro
23. to channels memory all verified pulses performs a hardware test memory test amp EEPROM checksum test of active DDG module The initialisation file is an ASCII file with a structure shown in the table below We recommend either to use the file DDG200 SET or to start with DDG200 SET and to introduce the desired changes DDG settings file DDG parameters have to be included in set file only when parameter value is different from default ddg base simulation 0 0 hardware mode default gt 0 simulation mode see ddg def h for possible values pci bus no 1 PCI bus on which DDG modules will be looking for 0 255 default 1 all PCI busses will be scanned pci card nor 0 number of DDG module on PCI bus to be initialised 0 3 default 0 1st module on PCI bus ddg module DDG module hardware parameters repeat 2 0 single cycle 1 cyc count cycles 2 continuos work default cyc count 100 cycles counter 1 4095 default 100 valid when repeat 1 rep_time 1000 repeat time in 10ns units 3 Oxffffffff default 1000 pulse_width 100 start pulse width in 10ns units 2 Oxfffffffe default 100 polarity Ox3f polarity of delayed pulses 6 bit value bit0 5 polarity of channels 1 6 bit 0 negative 1 positive 8 default 0x3f all channels positive Channels pulses 6 channels max 64 pulses per channel Start Width Fine offset times in 10ns units
24. uffer data be allocated with enough memory for the required number of words words_no 22 It is strongly recommended to use described earlier channel pulses r w functions instead of reading and writing the channel s memory Without detailed information about DDG hardware these functions are useless short DDG write chan data short chan no short from short words no unsigned long data Input parameters chan no channel number 0 5 from Ist address to read 0 126 must be even words no number of 32 bit words to read 2 128 from must be even data pointer to data buffer Return value 0 no errors 0 error code see ddg def h The procedure is obsolete and it is present only for compatibility with the older DLL versions The procedure is used to write the memory of the channel chan_no of the DDG module The procedure writes the values from the buffer data to the channel s memory from the address from up to the address from words no Writing channel s memory is always done from an even address and with an even number of words Therefore parameters from and words no must have even value It is strongly recommended to use described earlier channel pulses r w functions instead of reading and writing the channel s memory Without detailed information about DDG hardware these functions are useless 23

Download Pdf Manuals

image

Related Search

Related Contents

537-CN - Sunbeam® Canada      mode d`emploi Ï  USB 2.0 Smart KM Link  『EM-※※14K(L)』・『EM-※※14K  Installateurhandbuch  Safe Handling of Health Care Waste  ROBO Master Pro USER'S MANUAL  Expert R/AFN. Chiodo femorale retrogrado  

Copyright © All rights reserved.
Failed to retrieve file