CreatePowerSignalsDaqSession(string, string)
- Updated2025-01-08
- 2 minute(s) read
Creates a new PowerSignalsDaqSession object, the session which can be used to interact with the Power Signals DAQ.
Syntax
Namespace: NationalInstruments.PowerSignalsDaq
public static IPowerSignalsDaqSession CreatePowerSignalsDaqSession(string resourceName, string fixtureInformationFilePath)
Remarks
Fixture Information XML File: The fixture information XML file is used to capture fixture configuration details relevant for the Power Signals DAQ API. This file should be edited to accurately represent the actual hardware setup, including the types of current transducers connected to the Power Signals DAQ current input channels and the connection status of pulse current multiplexer pins.
- Current Transducers: The currentTransducers section contains a list of transducers, where each entry includes:
channelName: Specifies the name of the channel (e.g., "PWRSIGDAQ1 CURRENT 0").
- transducerType: Specifies the type of transducer connected to the channel. Supported values include "None" and the following transducer types:
DS50UB-10V
DS100UB-10V
DS200UB-10V
DS600UB-10V
DS1000UB-10V
DM1200UB-10V
DL2000UB-10V
- Pulse Mux Pin Connections: The pulseMuxPinsThatMayBeConnectedInFixture section describes the connection status of pin pairs within the fixture, where each entry includes:
pin1Name and pin2Name: Names of the pins in the pair (e.g., "PULSER CURRENT OUTPUT C0-" and "PULSER CURRENT OUTPUT C0+").
connected: A boolean value indicating whether the pins are connected (true) or not (false).
Ensure that the transducerType attributes correctly reflect the transducers used in your setup. Use "None" for channels with no transducer connected.
Verify that the connected attributes accurately represent the physical connections in the fixture.
Example Fixture Information XML File: An example of the fixture information XML file is provided at the following location: C:\Users\Public\Documents\National Instruments\Power Signals DAQ\Examples\DotNET\Measure Voltage\AcqVoltageSamples\FixtureInformation.xml
NI recommends that you copy this file to a location of your choice and edit it to match your hardware setup.
The example file includes details comments on how to update the transducerType and connected attributes.
Example Programs: You can find the example programs at the following location: C:\Users\Public\Documents\National Instruments\Power Signals DAQ\Examples\DotNET
NI recommends that you copy one of the examples to a location of your choice and edit it to match your test requirements.
The only supported resource name is "PWRSIGDAQ1".
Parameters
| Name | Type | Description |
|---|---|---|
| resourceName | string | Specifies the resource name of the Power Signals DAQ. |
| fixtureInformationFilePath | string | Specifies the path to the fixture information XML file. |
Exceptions
| Type | Description |
|---|---|
| PowerSignalsDaqException | Thrown when one of the following error conditions occurs:
|