Dispose()
- Updated2025-10-13
- 1 minute(s) read
Closes the RFmx session. Call this method a number of times equal to the number of times you obtained a reference to the RFmx session for a particular resource name.
Syntax
Namespace: NationalInstruments.RFmx.InstrMX
public void Dispose()
Remarks
This method maps to the RFmxInstr_Close() function in C.
You can call this method safely more than once, even if the session is already closed.
If you have used an existing instrument handle to create this session; calling the Dispose, Close, or ForceClose methods will only dispose the .NET resources associated with this session. The pre-existing instrument handle will NOT be released.