ExportToSnPFile(string, string)
- Updated2025-10-13
- 1 minute(s) read
Exports the measured S-parameters to a SnP file.
You can set format of the exported S-Parameters using SParamsSnPDataFormat property, use SParamsSnPUserComment property to add additional comments and use SParamsSnPPorts property to specify a subset of VNA ports. This VI exports the S-Parameters associated with SnP Ports.
Case 1: You specify file extension as S<n>P. S-Parameter data for ports M+1, M+2, .., N in the exported file are zero-filled when S-Parameter data is in linear format, and are filled with -200 dB magnitude and 45 degrees angle in log format.
Example: For a 2-Port VNA, if you measure only S11 and export the S-Parameters to a *.s2p file, then resulting file will contain measured S11 data and zero-filled S21, S12 and S22 data.
Case 2: You specify file extension as S<m>P. Resulting *.s<m>p file contains S-Parameters S11, …, SMM data.
Example: For a 2-Port VNA, if you measure only S11 and export the S-Parameters to a *.s1p file, then resulting file will contain measured S11 data.</m></m></n>
Syntax
Namespace: NationalInstruments.RFmx.VnaMX
public int ExportToSnPFile(string selectorString, string snpFilePath)
Parameters
| Name | Type | Description |
|---|---|---|
| selectorString | string | Specifies a selector string comprising of the result name. If you do not specify the result name, the default result instance is used. Example: |
| snpFilePath | string | Specifies the .snp file to save the measured S-parameters. |
Returns
Returns the status code of this method. The status code either indicates success or describes a warning condition.