lazylobi.blogg.se

Gassistant
Gassistant




  1. Gassistant software#
  2. Gassistant code#

Gassistant code#

You also can use the DAQ Assistant to generate the code needed to run the task. This function stops the task and clears the task from memory. For example, if you are reading in data from your analog input channels, you might want to use the DAQmxReadAnalogF64 function.Ĭall DAQmxClearTask when you finish with a task. * Function Call to Load a MAX-based Task */ĭAQmxLoadTask ("MyVoltageTask", &daqTask) ĭAQmxReadAnalogF64 (daqTask, DAQmx_Val_Auto, 10.0,ĭAQmx_Val_GroupB圜hannel, data, 1000, &samplesPerChan, 0) Īfter you call DAQmxLoadTask or the task creation function, add other functions necessary to perform the actions you need. Press on the Task Name control in this function panel to view the list of tasks. The function panel for DAQmxLoadTask contains a list of all MAX-based DAQmx tasks on your computer. To use the MAX-based task, call DAQmxLoadTask, as shown in Figure 4. These files are all linked to the task, so any changes you make to your task from the DAQ Assistant are automatically reflected in the generated code.Īfter you create a task, you can use it in a LabWindows/CVI project. mxb file opens the DAQ Assistant for that task. mxb) contains a binary description of the task that is used when you edit the task in the DAQ Assistant. The generated source and header files define the task creation function, which contains the code necessary to create and configure the specified task programmatically. LabWindows/CVI automatically adds these files to the project. The DAQ Assistant creates three files to describe the task in LabWindows/CVI: a source (. Target Directory-The directory where the three generated files will be stored.For example, use CreateDAQTaskInProject as the create task function. Create Task Function-The name of the function that you will call to create and configure the task programmatically.For example, use DAQTaskInProject as the task name. Task Name-The name you associate with the task as well as the prefix to the.Enter this information in the area of the DAQ Assistant panel shown in Figure 3. Specify a task name, create task function, and a target directory.Click the Test button to verify that the task works properly. When you specify the various settings, you can test the task.You also can configure task-specific settings such as timing and triggering. In this panel, you can configure channel-specific settings such as scaling, input limits, and terminal configuration. After you create the task, the DAQ Assistant panel shown in Figure 3 appears.Select Create New Task in Project from the Create/Edit DAQmx Tasks dialog box.You also can configure task-specific settings such as timing and triggering.įor more information about configuring a task with the DAQ Assistant, refer to the DAQ Assistant Help, installed with NI-DAQmx. The DAQ Assistant panel shown in Figure 2 appears.Enter a name for the task and click Finish.Select the virtual channels and click Next.In the next dialog box, select the measurement type for your task and click Next.Select Create New Task in MAX from the Create/Edit DAQmx Tasks dialog box.Project-based tasks can be more convenient if you need to share a task definition among multiple developers or store the task definition in a source code control system. Tasks stored in the project are local to that project. Project-based tasks are stored in a project.You can use MAX-based tasks in multiple projects, even those that are not in created in LabWindows/CVI. You can view, edit, and test this type of task directly from within MAX. MAX-based tasks are global to the machine on which they are created and can be used by other programs on the same machine.You have two options when creating tasks for use in a LabWindows/CVI project.

gassistant

The dialog box shown in Figure 1 appears. To launch the DAQ Assistant from LabWindows/CVI, select Tools✼reate/Edit DAQmx Tasks. You can set up and save all of the configuration information in a task and use the task in an application.

gassistant gassistant

Conceptually, a task represents a measurement or generation you want to perform. A task is a collection of one or more virtual channels with timing, triggering, and other properties. You can use the DAQ Assistant to quickly create DAQ tasks.

gassistant

Gassistant software#

Refer to the DAQ Quick Start Guide and the device documentation for information about installing and configuring the software and hardware. Refer to the NI-DAQ 7.x Readme file for a list of devices supported by NI-DAQmx. A DAQ device that is supported by NI-DAQmx.To use this tutorial, you must have the following software and hardware installed on your system:






Gassistant