Can I Use DAQ DLL calls Along With ComponentWorks Traditional DAQ?Primary Software: Measurement Studio>>Enterprise Edition (Full Development System)Primary Software Version: 7.1 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: If I configure DAQ tasks using the nidaq32.dll, and then try to do further configuration with CWDAQTools, the configurations I previously made are overwritten. Solution: It is possible to mix calls to the DLL along with the use of CWDAQ controls. It is important to do so in the proper order and with one particular function call. The different controls (CWDAQTools, CWAI) and the DLL calls, are independent. That is, the settings are not written as globals, so one control is not necessarily aware of the other control's configurations. Settings made for DAQ tasks are keyed to the Task ID. The CW DAQ controls (such as CWAI) do not directly expose this Task ID. In order to expose it, you can call the GetTaskID() method. With this Task ID, you can then add to configurations and make use of configurations made using CW DAQ . It is important that once you begin using the DLL in your code you do not then return to Measurement Studio DAQ controls as these will then ignore the settings made with the DLL. See the related link for a note on using the TaskID for configuring SCXI parameters. The TaskID is required to configure SCXI with CWDAQTolols.AIParameter. Related Links: Error 10007 When Using Measurement Studio CWDAQTools and AIParameter with SCXI Attachments:
Report Date: 07/01/2005 Last Updated: 07/18/2005 Document ID: 3N0BGUXL |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
