Real Time

API Help

API Class Library

API commands for controlling the N7602B Signal Studio graphical user interface are documented in the N7602B Documented Class Library (N7602API.chm). This help file is located in the following directory: C:\Program Files (x86)\Keysight\Signal Studio\GSM EDGE.

Many of the links in the API help require the Microsoft Visual Studio .NET integrated development environment (IDE). Without the IDE, these links appear broken. Download the IDE to repair the links.

Sample API Programs

After the software is installed, it provides sample API programming files. You can use these samples as a starting point to develop your own API programs.

Numeric Format

This software recognizes only US style numeric format, for example, floating decimal point is "."

Language Requirements

You must set the API locale to "en-US" using the following commands prior to starting the user main routine:

Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");// Sets the culture to English (US)

Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");// Sets the UI culture to English (US)

You can see these culture setting commands in Main .cs located in the SimpleControl sample program.

Loading .NET Mixed-Mode Assemblies

The .NET Framework 4.x allows you to load pure managed assemblies built in any version of the .NET Framework. However, for some Signal Studio applications, API usage involves assemblies that are not pure .NET CLR. In these cases, you must configure your program (e.g. User_App.exe) to load .NET mixed-mode assemblies using the following steps:

  1. Open a text editor.

  2. Copy the following text into the text editor:

    <?xml version ="1.0" encoding="utf-8" ?>

    <configuration>

    <startup useLegacyV2RuntimeActivationPolicy="true">

    <supportedRuntime version="v4.0"/>

    </startup>

    </configuration>

  3. Save this new configuration file in the same directory as User_App.exe. Name the file User_App.exe.config.

  4. Re-launch User_App.exe.

References

The Microsoft.NET home page.

Developing Microsoft.NET Skills.

"Migrating Native Code to the .NET CLR," by Don Box.

Troelsen, Andrew. C# and the .NET Platform. New York: Apress, 2001.