TestStand Semiconductor Module Code Module VIs Help

Create Multisite Data for Analog Output (TSM)

  • Updated2024-02-02
  • 17 minute(s) read

Create Multisite Data for Analog Output (TSM)

Requires: TSM

Accepts per site/pin data and returns data for all channels in the tasks. Use this data with the DAQmx Write VI. You must manually select the polymorphic instance you want to use. Select the single pin or multiple pins polymorphic instances based on the number of pins the test is designed to test. Select the single data to all sites or per site data polymorphic instances based on the data being passed to the VI. If data exists for each pin but not for each site, use the single data to all sites polymorphic instances. If data exists for each pin and for each site, use the per site data polymorphic instances.

DAQmx Single Data To All Sites (1 Pin 1 Task)

Accepts data for the pin and returns data for all channels in the task. Use this data with the DAQmx Write VI.

SameDataToAllSites(1Pin1Task).vi

c102.gif Pin Query Context is the pin query context a pin query returns.
c1ddbl.gif Pin Data specifies data for the pin in a pin query.
cdbl.gif Idle Value specifies the data value to use for channels in the task that are not connected to sites in the Semiconductor Module context. Because the DAQmx Write VI always writes to all channels in a task, use the Idle Value to write a constant value to channels that are not in the Semiconductor Module context.
cerrcodeclst.gif error in (no error) describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out.
i102.gif Pin Query Context Out returns the Pin Query Context parameter unchanged.
i2ddbl.gif Task Data returns a 2D array of data, where the rows correspond to channels in the task and the columns corresponds to the data to write to each channel in the task. Pass this data to the NI-DAQmx Write VI.
ierrcodeclst.gif error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.

DAQmx Single Data to All Sites (1 Pin M Tasks)

Accepts data for the pin and returns data for all channels in the tasks. Use this data with the DAQmx Write VI.

SameDataToAllSites(1PinMTasks).vi

c102.gif Pin Query Context is the pin query context a pin query returns.
c1ddbl.gif Pin Data specifies data for the pin in a pin query.
cdbl.gif Idle Value specifies the data value to use for channels in the task that are not connected to sites in the Semiconductor Module context. Because the DAQmx Write VI always writes to all channels in a task, use the Idle Value to write a constant value to channels that are not in the Semiconductor Module context.
cerrcodeclst.gif error in (no error) describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out.
i102.gif Pin Query Context Out returns the Pin Query Context parameter unchanged.
i3ddbl.gif Task Data returns a 3D array of data, where the first dimension corresponds to NI-DAQmx Tasks and the second dimension corresponds to channels. Because each NI-DAQmx Task can have a different number of channels, use the Number of Channels per Task output to determine the number of elements in the second dimension to pass to the NI-DAQmx Write VI for each task.
i1di32.gif Number of Channels per Task returns a 1D array of the number of channels for each NI-DAQmx Task, with the same size as the first dimension of the Task Data output. Use this output to determine the subset of the task data arrays to pass to the NI-DAQmx Write VI.
ierrcodeclst.gif error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.

DAQmx Single Data To All Sites (N Pins 1 Task)

Accepts data for the pins and returns data for all channels in the task. Use this data with the DAQmx Write VI.

SameDataToAllSites(NPins1Task).vi

c102.gif Pin Query Context is the pin query context object a pin query returns.
c2ddbl.gif Pin Data specifies data for each pin in a pin query. Ensure that the pin order matches the order of the pins passed to the pin query.
cdbl.gif Idle Value specifies the data value to use for channels in the task that are not connected to sites in the Semiconductor Module context. Because the DAQmx Write VI always writes to all channels in a task, use the Idle Value to write a constant value to channels that are not in the Semiconductor Module context.
cerrcodeclst.gif error in (no error) describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out.
i102.gif Pin Query Context Out returns the Pin Query Context parameter unchanged.
i2ddbl.gif Task Data returns a 2D array of data, where the rows correspond to channels and the columns corresponds to the data to write to each channel in the task. Pass this data to the NI-DAQmx Write VI.
ierrcodeclst.gif error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.

DAQmx Single Data To All Sites (N Pins M Tasks)

Accepts data for the pins and returns data for all channels in the tasks. Use this data with the DAQmx Write VI.

SameDataToAllSites(NPinsMTasks).vi

c102.gif Pin Query Context is the pin query context object a pin query returns.
c2ddbl.gif Pin Data specifies data for each pin in a pin query. Ensure that the pin order matches the order of the pins passed to the pin query.
cdbl.gif Idle Value specifies the data value to use for channels in the task that are not connected to sites in the Semiconductor Module context. Because the DAQmx Write VI always writes to all channels in a task, use the Idle Value to write a constant value to channels that are not in the Semiconductor Module context.
cerrcodeclst.gif error in (no error) describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out.
i102.gif Pin Query Context Out returns the Pin Query Context parameter unchanged.
i3ddbl.gif Task Data returns a 3D array of data, where the first dimension corresponds to NI-DAQmx Tasks and the second dimension corresponds to channels. Because each NI-DAQmx Task can have a different number of channels, use the Number of Channels per Task output to determine the number of elements in the second dimension to pass to the NI-DAQmx Write VI for each task.
i1di32.gif Number of Channels per Task returns a 1D array of the number of channels for each NI-DAQmx Task, with the same size as the first dimension of the Task Data output. Use this output to determine the subset of the task data arrays to pass to the NI-DAQmx Write VI.
ierrcodeclst.gif error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.

DAQmx Per Site Data (1 Pin 1 Task)

Accepts data for all sites in the Semiconductor Module Context that the pin is connected to and returns data for all channels in the task. Use this data with the DAQmx Write VI.

DifferentDataForEachSite(1Pin1Task).vi

c102.gif Pin Query Context is the pin query context object a pin query returns.
c2ddbl.gif Site Pin Data specifies per pin data for every site in the Semiconductor Module Context. Specify data such that rows of the data array correspond the sites while columns correspond to the samples to write to each pin. Ensure that the site order matches the order of sites the Get Site Numbers VI returns.
cdbl.gif Idle Value specifies the data value to use for channels in the task that are not connected to sites in the Semiconductor Module context. Because the DAQmx Write VI always writes to all channels in a task, use the Idle Value to write a constant value to channels that are not in the pin query context.
cerrcodeclst.gif error in (no error) describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out.
i102.gif Pin Query Context Out returns the Pin Query Context parameter unchanged.
i2ddbl.gif Task Data returns a 2D array of data, where the rows correspond to channels in the task and the columns corresponds to the data to write to each channel in the task. Pass this data to the NI-DAQmx Write VI.
ierrcodeclst.gif error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.

DAQmx Per Site Data (1 Pin M Tasks)

Accepts data for all sites in the Semiconductor Module Context that the pin is connected to and returns data for all channels in the tasks. Use this data with the DAQmx Write VI.

DifferentDataForEachSite(1PinMTasks).vi

c102.gif Pin Query Context is the pin query context object a pin query returns.
c2ddbl.gif Site Pin Data specifies per pin data for every site in the Semiconductor Module Context. Specify data such that rows of the data array correspond the sites while columns correspond to the samples to write to each pin. Ensure that the site order matches the order of sites the Get Site Numbers VI returns.
cdbl.gif Idle Value specifies the data value to use for channels in the task that are not connected to sites in the Semiconductor Module context. Because the DAQmx Write VI always writes to all channels in a task, use the Idle Value to write a constant value to channels that are not in the Semiconductor Module context.
cerrcodeclst.gif error in (no error) describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out.
i102.gif Pin Query Context Out returns the Pin Query Context parameter unchanged.
i3ddbl.gif Task Data returns a 3D array of data, where the first dimension corresponds to NI-DAQmx Tasks and the second dimension corresponds to channels. Because each NI-DAQmx Task can have a different number of channels, use the Number of Channels per Task output to determine the number of elements in the second dimension to pass to the NI-DAQmx Write VI for each task.
i1di32.gif Number of Channels per Task returns a 1D array of the number of channels for each NI-DAQmx Task, with the same size as the first dimension of the Task Data output. Use this output to determine the subset of the task data arrays to pass to the NI-DAQmx Write VI.
ierrcodeclst.gif error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.

DAQmx Per Site Data (N Pins 1 Task)

Accepts data for all sites in the Semiconductor Module Context that the pins are connected to and returns data for all channels in the task. Use this data with the DAQmx Write VI.

DifferentDataForEachSite(NPins1Task).vi

c102.gif Pin Query Context is the pin query context a pin query returns.
c3ddbl.gif Site Pin Data specifies per pin data for every pin in the pin query context and every site in the Semiconductor Module Context. Specify data in a 3D array such that pages of the data array correspond to sites, rows of the data array correspond to pins, and columns correspond to the samples to write to each pin. Ensure that the site order matches the order of sites the Get Site Numbers VI returns and that the pin order matches the order of the pins passed to the pin query.
cdbl.gif Idle Value specifies the data value to use for channels in the task that are not connected to sites in the Semiconductor Module context. Because the DAQmx Write VI always writes to all channels in a task, use the Idle Value to write a constant value to channels that are not in the Semiconductor Module context.
cerrcodeclst.gif error in (no error) describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out.
i102.gif Pin Query Context Out returns the Pin Query Context parameter unchanged.
i2ddbl.gif Task Data returns a 2D array of data, where the first dimension corresponds to channels in the task and the second dimension corresponds to the data to write to each channel in the task. Pass this data to the NI-DAQmx Write VI.
ierrcodeclst.gif error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.

DAQmx Per Site Data (N Pins M Tasks)

Accepts data for all sites in the Semiconductor Module Context that the pins are connected to and returns data for all channels in the tasks. Use this data with the DAQmx Write VI.

DifferentDataForEachSite(NPinsMTasks).vi

c102.gif Pin Query Context is the pin query context a pin query returns.
c3ddbl.gif Site Pin Data specifies per pin data for every pin in the pin query context and every site in the Semiconductor Module Context. Specify data in a 3D array such that pages of the data array correspond to sites, rows of the data array correspond to pins, and columns correspond to the samples to write to each pin. Ensure that the site order matches the order of sites the Get Site Numbers VI returns and that the pin order matches the order of the pins passed to the pin query.
cdbl.gif Idle Value specifies the data value to use for channels in the task that are not connected to sites in the Semiconductor Module context. Because the DAQmx Write VI always writes to all channels in a task, use the Idle Value to write a constant value to channels that are not in the Semiconductor Module context.
cerrcodeclst.gif error in (no error) describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out.
i102.gif Pin Query Context Out returns the Pin Query Context parameter unchanged.
i3ddbl.gif Task Data returns a 3D array of data, where the first dimension corresponds to NI-DAQmx Tasks and the second dimension corresponds to channels. Because each NI-DAQmx Task can have a different number of channels, use the Number of Channels per Task output to determine the number of elements in the second dimension to pass to the NI-DAQmx Write VI for each task.
i1di32.gif Number of Channels per Task returns a 1D array of the number of channels for each NI-DAQmx Task, with the same size as the first dimension of the Task Data output. Use this output to determine the subset of the task data arrays to pass to the NI-DAQmx Write VI.
ierrcodeclst.gif error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.

Log in to get a better experience