User manual
2.3.41 AcqrsD1_configLogicDevice (DEPRECATED)
Purpose
Configures (programs) on-board logic devices, such as user-programmable FPGA’s. See
Acqrs_configLogicDevice.
NOTE: With the exception of AC and SC Analyzers, this function now needs to be used only by VxWorks
users to specify the filePath for FPGA .bit files. Otherwise it should no longer have to be used
Parameters
Input
Name Type Description
instrumentID ViSession Instrument identifier
deviceName ViChar [ ] Identifies which device to program
For the AC210/AC240 and SC210/SC240 modules
this string must be "Block1Dev1". Alternatively it can
be "ASBUS::n::Block1Dev1" with n ranging from 0
to the number of modules -1.
When clearing the FPGA’s, the string must be
"Block1DevAll".
filePathName ViChar [ ] File path and file name
flags ViInt32 flags, may be:
0 = program logic device with data in the file
“filePathName”
1 = clear the logic device
2 = set path where FPGA .bit files can be found
3 = 0 + use normal search order with AqDrv4.ini file
Return Value
Name Type Description
status ViStatus Refer to Table 2-1 for error codes.
Discussion
With flags = 2 in VxWorks systems, the filePathName must point to a directory containing the FPGA
configuration files with extension ‘.bit’
With flags = 0 or 3, the filePathName must point to an FPGA configuration file with extension ‘.bit’, e.g.
“D:\Averagers\FPGA\AP100DefaultFPGA1.bit”.
For more details on programming on-board logic devices, please refer to the Programmer’s Guide sections
3.2, Device Initialization and 3.3, Device Configuration.
Programmer’s Reference Manual Page 81 of 210