![]() ![]() These trigger source options are: Trigger Source Options Trigger Source Function trigsrcNone The trigger pin is high impedance, input. WaveForms™ SDK Reference Manual The global trigger bus allows multiple instruments to trigger each other. When this setting is enabled, the device is automatically configured every time an instrument parameter is set. The function above enables or disables the AutoConfig setting for a specific device. fAutoConfigure– Value for this option: TRUE if enabled, FALSE if disabled. WaveForms™ SDK Reference Manual FDwfDeviceAutoConfigureSet(HDWF hdwf, BOOL fAutoConfigure) Parameters: hdwf – Interface handle. To automatically enumerate all connected devices and open the first discovered device, use index -1. The function above opens a device identified by the enumeration index and retrieves a handle. phdwf – Pointer to HDWF variable to receive opened interface handle by reference. WaveForms™ SDK Reference Manual 4 Device Control FDwfDeviceOpen(int idxDevice, HDWF *phdwf) Parameters: idxDevice – Zero based index of the enumerated device. szSN – Pointer to character array to return the serial number by reference. FDwfEnumSN(int idxDevice, char szSN) Parameters: idxDevice – Index of the enumerated device. The function above is used to retrieve the device name of the enumerated device. szDeviceName – Pointer to character array to return the device name by reference. WaveForms™ SDK Reference Manual FDwfEnumDeviceName(int idxDevice, char szDeviceName) Parameters: - idxDevice – Index of the enumerated device. pnDevice – Integer pointer to return count of found devices by reference. Use the enumfilterAll constant to discover all compatible devices. FDwfEnum(ENUMFILTER enumfilter, int *pnDevice) Parameters: enumfilter – Filter value to be used for device enumeration. WaveForms™ SDK Reference Manual 3 Device Enumeration The FDwfEnum functions are used to discover all connected, compatible devices. dwfercUnknownError Call waiting on pending API time out. Error codes are declared in dwf.h: API Error Codes Error Code Definition dwfercNoErc No error occurred. The error code is cleared when other API functions are called and is only set when an API function fails during execution. The function above is used to retrieve the last error code in the calling process. WaveForms™ SDK Reference Manual 2 System FDwfGetLastError(DWFERC *pdwferc) Parameters: pdwferc - Variable to receive error code. In general, the API functions contain variations of the following parameters: Parameters Parameter Function *Info Returns detailed information about the parameter support for the instrument (i.e., minimum/maximum values, supported modes, etc. This Boolean value is an integer type definition, not the standard c-type bool. WaveForms™ SDK Reference Manual 1.2 Calling API Functions The API functions are C style and return a Boolean value: TRUE if the call is successful, FALSE if unsuccessful. ![]() FDwfAnalogOutReset FDwfDigitalIOReset FDwfAnalogInConfigure Configure function This function configures and/or starts the instrument. WaveForms™ SDK Reference Manual Each instrument is directly controlled using three types of functions in the API: API Functions Instrument Function Example FDwfAnalogInReset Reset function This function resets all of the instrument parameters to default values. Basic usage of the WaveForms API can be broken down into the following steps: 1. Every function in the WaveForms public API is declared in the dwf.h header file. A custom application must properly link to these files to make the appropriate API function calls. WaveForms™ SDK Reference Manual 1.1 The API Everything needed to write custom applications is included in the WaveForms SDK, which provides the header/library files and documentation to access the API for the DWF Library. WaveForms™ SDK Reference Manual The static library is located in Windows through the install path: Windows 32-bit: C:\Program Files\Digilent\WaveFormsSDK\lib\x86 Windows 64-bit: C:\Program Files (x86)\Digilent\WaveFormsSDK\lib\圆4 The C header file is located in: Windows: C:\Program Files\Digilent\WaveFormsSDK\inc Windows 64-bit: C:\Program Files (x86)\Digilent\WaveFormsSDK\inc Linux: /usr/include/digilent/waveforms Working code examples are provided with the SDK to demonstrate basic use of ea While the WaveForms application offers a refined graphical interface, the WaveForms SDK provides access to a public application programming interface (API) that gives users the ability to create custom PC applications. WaveForms™ SDK Reference Manual Overview TM WaveForms provides an interface that allows users to interact with Digilent Analog Design hardware, such as the TM TM Analog Discovery and Electronics Explorer. 300 Henley Court Pullman, WA 99163 509.334.6306 WaveForms™ SDK Reference Manual Revised JanuTable of Contents Table of Contents. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |