EasyManua.ls Logo

Keysight E4428C ESG RF - Page 382

Keysight E4428C ESG RF
404 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
374 Keysight Signal Generators Programming Guide
Creating and Downloading User–Data Files
Save and Recall Instrument State Files
LoadConfig = 4
}
// Declaration of VISA attribute constants
public enum VisaAttribute
{
SendEndEnable = 0x3FFF0016,
TimeoutValue = 0x3FFF001A
}
// This class provides a way to call the unmanaged Keysight IO Library VISA C
// functions from the C# application
public class VisaInterop
{
[DllImport("agvisa32.dll", EntryPoint="viClear")]
public static extern int Clear(uint session);
[DllImport("agvisa32.dll", EntryPoint="viClose")]
public static extern int Close(uint session);
[DllImport("agvisa32.dll", EntryPoint="viFindNext")]
public static extern int FindNext(uint findList, byte[] desc);
[DllImport("agvisa32.dll", EntryPoint="viFindRsrc")]
public static extern int FindRsrc(
uint session,
string expr,
out uint findList,
out uint retCnt,
byte[] desc);
[DllImport("agvisa32.dll", EntryPoint="viGetAttribute")]
public static extern int GetAttribute(uint vi, VisaAttribute attribute, out uint attrState);
[DllImport("agvisa32.dll", EntryPoint="viOpen")]
public static extern int Open(
uint session,
string rsrcName,
VisaAccessMode accessMode,
uint timeout,
out uint vi);

Table of Contents

Related product manuals