NI-Digital Pattern Driver C Function Reference

niDigital_GetAttributeViSession

  • Updated2023-11-24
  • 1 minute(s) read

niDigital_GetAttributeViSession

Attributes Group

Queries the value of a ViSession attribute. Use this function to get the values of digital pattern instrument-specific attributes and inherent IVI attributes.

C Function Prototype: ViStatus niDigital_GetAttributeViSession (ViSession vi, ViConstString channelList, ViAttr attribute, ViSession* value)

Parameter Description
vi The specified instrument session the niDigital_init or niDigital_InitWithOptions function returns.
channelList List of channel names or list of pins. Do not pass a mix of channel names and pin names. An empty string denotes all digital pattern instrument channels.

Pin names and pin groups apply to all enabled sites, unless the pin name explicitly specifies the site. You can specify a pin in a specific site using the form siteN/pinName, where N is the site number. This function ignores pins that are not mapped to the digital pattern instrument.

Specify channel names using the form PXI1Slot3/0,2-3 or PXI1Slot3/0,PXI1Slot3/2-3, where PXI1Slot3 is the instrument resource name and 0, 2, 3 are channel names. To specify channels from multiple instruments, use the form PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3. The instruments must be in the same chassis.

attribute The ID of an attribute.
value The returned current value of the attribute; pass the address of a ViSession variable.

Return value: Reports the status of the operation.

Log in to get a better experience