NI-RFPM API Reference

NIRfpm Constructor (String, IntPtr, IntPtr, IntPtr, String)

  • Updated2023-12-28
  • 1 minute(s) read
NIRfpm Constructor (String, IntPtr, IntPtr, IntPtr, String)

NIRfpm Constructor (String, IntPtr, IntPtr, IntPtr, String)

Initializes a new instance of the NIRfpm class.
This method does not support the mmWave subsystem.

Namespace:  NationalInstruments.ModularInstruments.NIRfpm
Assembly:  NationalInstruments.ModularInstruments.NIRfpm.Fx40 (in NationalInstruments.ModularInstruments.NIRfpm.Fx40.dll) Version: 2023

Syntax

public NIRfpm(
	string resourceName,
	IntPtr rfsaSessionHandle,
	IntPtr rfsgSessionHandle,
	IntPtr rfpmSwitchSessionHandle,
	string optionString
)
Public Sub New ( 
	resourceName As String,
	rfsaSessionHandle As IntPtr,
	rfsgSessionHandle As IntPtr,
	rfpmSwitchSessionHandle As IntPtr,
	optionString As String
)

Parameters

resourceName
Type: SystemString
The resource name of the device to initialize.
rfsaSessionHandle
Type: SystemIntPtr
A valid handle to an NI-RFSA session.
rfsgSessionHandle
Type: SystemIntPtr
A valid handle to an NI-RFSG session.
rfpmSwitchSessionHandle
Type: SystemIntPtr
A valid handle to an NI-RFPM Switch session.
optionString
Type: SystemString
The initial state of driver properties. simulate=1 simulates the instrument.

Exceptions

ExceptionCondition
ArgumentException The value for resourceName is .

- or -

The value for optionString is invalid.
IviCDriverException The value for resourceName is invalid.

- or -

The value for rfsaSessionHandle is invalid.

- or -

The value for rfsgSessionHandle is invalid.

- or -

The value for rfpmSwitchSessionHandle is invalid.

- or -

The value for optionString is .

- or -

The underlying NI-RFPM driver returned an error.

Remarks

You can use optionString to specify certain properties upon initialization. Currently supported value are "simulate=1" or "".

See Also

Log in to get a better experience