Using NI-DAQmx with TSM

NI TestStand 2017 Semiconductor Module Code Module VIs Help

Edition Date: July 2018

Part Number: 373951H-01

»View Product Info
Download Help (Windows Only)

Refer to the following pin map, process setup, analog input, analog output, and process cleanup suggestions when you use NI-DAQmx with TSM.

Pin Map

The TSM pin map defines NI-DAQmx tasks instead of NI-DAQmx instruments to support channel expansion. Each task in the pin map uses a channelList attribute, which can contain channels from one or more NI-DAQmx instruments. Format the channel list in the pin map the same way you format channel lists you use with the NI-DAQmx API. Each task in the pin map also uses a taskType attribute. Multiple tasks can use the same task type. Pin queries that return tasks of more than one task type return an error.

Process Setup

Use the TSM Get All NI-DAQmx Task Names VI to return the task names and channel lists the pin map defines. Use the Task Type input of the VI to specify which type of tasks to return. Pass an empty string to obtain the names of all tasks regardless of task type.

Use the NI-DAQmx API to create and set up tasks. Use the Task Names output of the Get All NI-DAQmx Task Names VI to specify the task names for the DAQmx Create Task VI. Use the Channel Lists output from the Get All NI-DAQmx Task Names VI to specify the channels in the Physical Channels input of the DAQmx Create Channel VI.

For the best performance, start tasks in the process setup of the test program. You can associate channels with a single task only in the Started state.

Use the Set NI-DAQmx Task VI to store the task.

Refer to the NI-DAQmx Create AI Voltage Tasks step type with template code or to the following figure for an example of how to complete these tasks:

Analog Input

Use the TSM Pin(s) to NI-DAQmx Task(s) VI to perform pin queries. Connect the Channel Lists or Channel List output of this VI to the ChannelsToRead property of a DAQmx Read property node. Use the DAQmx Read VI to read data from the channel to read. Use the TSM Publish Data VI to publish the measurement data to the Semiconductor Multi Test step type instances for all sites in the Semiconductor Module context.

Refer to the NI-DAQmx Create AI Voltage Tasks step type with template code, to the NI-DAQmx Acquire AI Voltage Waveforms step type with template code, or to the following figure for an example of how to complete these tasks:

Analog Output

Use the TSM Pin(s) to NI-DAQmx Task(s) VI to perform pin queries. Use the TSM Create Multisite Data for Analog Output VI to write data to the correct channels in the task. You can use per pin or per site input data. For per site data, order the data first by site, then by pin. Use the Idle Value input of the VI to specify the data value to use for channels in the task that are not connected to the sites in the in the Semiconductor Module context. Connect the Task Data output of the VI to the DAQmx Write VI.

Refer to the following figure for an example of how to complete these tasks:

Process Cleanup

Use the TSM Get All NI-DAQmx Tasks VI to return tasks with a task type you specify. Pass an empty string to the Task Type input to obtain the names of all tasks regardless of task type. Use the NI-DAQmx API to stop and clear all tasks.

Refer to the NI-DAQmx Clear Tasks step type with template code or to the following figure for an example of how to complete these tasks:

WAS THIS ARTICLE HELPFUL?

Not Helpful