usb-6009
This commit is contained in:
BIN
NI-VISA/Examples/.NET/ServiceRequest/App.ico
Normal file
BIN
NI-VISA/Examples/.NET/ServiceRequest/App.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
58
NI-VISA/Examples/.NET/ServiceRequest/AssemblyInfo.cs
Normal file
58
NI-VISA/Examples/.NET/ServiceRequest/AssemblyInfo.cs
Normal file
@ -0,0 +1,58 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly: AssemblyTitle("")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project output directory which is
|
||||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
|
||||
// located in the project directory, you would specify the AssemblyKeyFile
|
||||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly: AssemblyDelaySign(false)]
|
||||
[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyKeyName("")]
|
||||
457
NI-VISA/Examples/.NET/ServiceRequest/MainForm.cs
Normal file
457
NI-VISA/Examples/.NET/ServiceRequest/MainForm.cs
Normal file
@ -0,0 +1,457 @@
|
||||
//==================================================================================================
|
||||
//
|
||||
// Title : MainForm.cs
|
||||
// Purpose : This application illustrates how to use the service request event and
|
||||
// the service request status byte to determine when generated data is ready
|
||||
// and how to read it.
|
||||
//
|
||||
//==================================================================================================
|
||||
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using Ivi.Visa;
|
||||
using NationalInstruments.Visa;
|
||||
|
||||
namespace NationalInstruments.Examples.ServiceRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for Form1.
|
||||
/// </summary>
|
||||
public class MainForm : System.Windows.Forms.Form
|
||||
{
|
||||
private IMessageBasedSession mbSession;
|
||||
private System.Windows.Forms.ToolTip toolTip;
|
||||
private System.Windows.Forms.Label selectResourceLabel;
|
||||
private System.Windows.Forms.GroupBox configuringGroupBox;
|
||||
private System.Windows.Forms.GroupBox writingGroupBox;
|
||||
private System.Windows.Forms.GroupBox readingGroupBox;
|
||||
private System.Windows.Forms.Button clearButton;
|
||||
private System.Windows.Forms.Label resourceNameLabel;
|
||||
private System.Windows.Forms.Button openButton;
|
||||
private System.Windows.Forms.Button closeButton;
|
||||
private System.Windows.Forms.TextBox commandTextBox;
|
||||
private System.Windows.Forms.Label commandLabel;
|
||||
private System.Windows.Forms.Button enableSRQButton;
|
||||
private System.Windows.Forms.TextBox writeTextBox;
|
||||
private System.Windows.Forms.Button writeButton;
|
||||
private System.Windows.Forms.TextBox readTextBox;
|
||||
private System.Windows.Forms.ComboBox resourceNameComboBox;
|
||||
private System.ComponentModel.IContainer components;
|
||||
|
||||
public MainForm()
|
||||
{
|
||||
//
|
||||
// Required for Windows Form Designer support
|
||||
//
|
||||
InitializeComponent();
|
||||
InitializeUI();
|
||||
toolTip.SetToolTip(enableSRQButton, "Enable the instrument's SRQ event on MAV by sending the following command (varies by instrument):");
|
||||
toolTip.SetToolTip(writeButton, "Send string to device");
|
||||
toolTip.SetToolTip(closeButton, "Causes the control to release its handle to the device");
|
||||
toolTip.SetToolTip(openButton, "The resource name of the device is set and the control attempts to connect to the device");
|
||||
|
||||
try
|
||||
{
|
||||
// This example uses an instance of the NationalInstruments.Visa.ResourceManager class to find resources on the system.
|
||||
// Alternatively, static methods provided by the Ivi.Visa.ResourceManager class may be used when an application
|
||||
// requires additional VISA .NET implementations.
|
||||
using (var rmSession = new ResourceManager())
|
||||
{
|
||||
var validResources = rmSession.Find("(GPIB|TCPIP|USB)?*INSTR");
|
||||
foreach (var resource in validResources)
|
||||
{
|
||||
resourceNameComboBox.Items.Add(resource);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
resourceNameComboBox.Items.Add("No 488.2 INSTR resource found on the system");
|
||||
updateResourceNameControls(false);
|
||||
closeButton.Enabled = false;
|
||||
}
|
||||
resourceNameComboBox.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
protected override void Dispose( bool disposing )
|
||||
{
|
||||
if( disposing )
|
||||
{
|
||||
if (components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
if (mbSession != null)
|
||||
{
|
||||
mbSession.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
||||
this.resourceNameLabel = new System.Windows.Forms.Label();
|
||||
this.openButton = new System.Windows.Forms.Button();
|
||||
this.closeButton = new System.Windows.Forms.Button();
|
||||
this.commandLabel = new System.Windows.Forms.Label();
|
||||
this.commandTextBox = new System.Windows.Forms.TextBox();
|
||||
this.enableSRQButton = new System.Windows.Forms.Button();
|
||||
this.configuringGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.resourceNameComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.selectResourceLabel = new System.Windows.Forms.Label();
|
||||
this.writingGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.writeTextBox = new System.Windows.Forms.TextBox();
|
||||
this.writeButton = new System.Windows.Forms.Button();
|
||||
this.readingGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.clearButton = new System.Windows.Forms.Button();
|
||||
this.readTextBox = new System.Windows.Forms.TextBox();
|
||||
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.configuringGroupBox.SuspendLayout();
|
||||
this.writingGroupBox.SuspendLayout();
|
||||
this.readingGroupBox.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// resourceNameLabel
|
||||
//
|
||||
this.resourceNameLabel.Location = new System.Drawing.Point(16, 80);
|
||||
this.resourceNameLabel.Name = "resourceNameLabel";
|
||||
this.resourceNameLabel.Size = new System.Drawing.Size(112, 16);
|
||||
this.resourceNameLabel.TabIndex = 1;
|
||||
this.resourceNameLabel.Text = "Resource Name:";
|
||||
//
|
||||
// openButton
|
||||
//
|
||||
this.openButton.Location = new System.Drawing.Point(16, 128);
|
||||
this.openButton.Name = "openButton";
|
||||
this.openButton.Size = new System.Drawing.Size(104, 23);
|
||||
this.openButton.TabIndex = 2;
|
||||
this.openButton.Text = "Open Session";
|
||||
this.openButton.Click += new System.EventHandler(this.openButton_Click);
|
||||
//
|
||||
// closeButton
|
||||
//
|
||||
this.closeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.closeButton.Location = new System.Drawing.Point(160, 64);
|
||||
this.closeButton.Name = "closeButton";
|
||||
this.closeButton.Size = new System.Drawing.Size(104, 23);
|
||||
this.closeButton.TabIndex = 3;
|
||||
this.closeButton.Text = "Close Session";
|
||||
this.closeButton.Click += new System.EventHandler(this.closeButton_Click);
|
||||
//
|
||||
// commandLabel
|
||||
//
|
||||
this.commandLabel.Location = new System.Drawing.Point(16, 160);
|
||||
this.commandLabel.Name = "commandLabel";
|
||||
this.commandLabel.Size = new System.Drawing.Size(256, 32);
|
||||
this.commandLabel.TabIndex = 4;
|
||||
this.commandLabel.Text = "Type the command to enable the instrument\'s SRQ event on MAV:";
|
||||
//
|
||||
// commandTextBox
|
||||
//
|
||||
this.commandTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.commandTextBox.Location = new System.Drawing.Point(16, 200);
|
||||
this.commandTextBox.Name = "commandTextBox";
|
||||
this.commandTextBox.Size = new System.Drawing.Size(152, 20);
|
||||
this.commandTextBox.TabIndex = 5;
|
||||
this.commandTextBox.Text = "*SRE 16";
|
||||
//
|
||||
// enableSRQButton
|
||||
//
|
||||
this.enableSRQButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.enableSRQButton.Location = new System.Drawing.Point(168, 200);
|
||||
this.enableSRQButton.Name = "enableSRQButton";
|
||||
this.enableSRQButton.Size = new System.Drawing.Size(104, 24);
|
||||
this.enableSRQButton.TabIndex = 6;
|
||||
this.enableSRQButton.Text = "Enable SRQ";
|
||||
this.enableSRQButton.Click += new System.EventHandler(this.enableSRQButton_Click);
|
||||
//
|
||||
// configuringGroupBox
|
||||
//
|
||||
this.configuringGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.configuringGroupBox.Controls.Add(this.resourceNameComboBox);
|
||||
this.configuringGroupBox.Controls.Add(this.closeButton);
|
||||
this.configuringGroupBox.Location = new System.Drawing.Point(8, 64);
|
||||
this.configuringGroupBox.Name = "configuringGroupBox";
|
||||
this.configuringGroupBox.Size = new System.Drawing.Size(272, 168);
|
||||
this.configuringGroupBox.TabIndex = 7;
|
||||
this.configuringGroupBox.TabStop = false;
|
||||
this.configuringGroupBox.Text = "Configuring";
|
||||
//
|
||||
// resourceNameComboBox
|
||||
//
|
||||
this.resourceNameComboBox.FormattingEnabled = true;
|
||||
this.resourceNameComboBox.Location = new System.Drawing.Point(11, 35);
|
||||
this.resourceNameComboBox.Name = "resourceNameComboBox";
|
||||
this.resourceNameComboBox.Size = new System.Drawing.Size(255, 21);
|
||||
this.resourceNameComboBox.TabIndex = 4;
|
||||
//
|
||||
// selectResourceLabel
|
||||
//
|
||||
this.selectResourceLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.selectResourceLabel.Location = new System.Drawing.Point(8, 8);
|
||||
this.selectResourceLabel.Name = "selectResourceLabel";
|
||||
this.selectResourceLabel.Size = new System.Drawing.Size(272, 56);
|
||||
this.selectResourceLabel.TabIndex = 8;
|
||||
this.selectResourceLabel.Text = "Select the Resource Name associated with your device and press the Configure Devi" +
|
||||
"ce button. Then enter the command string that enables SRQ and click the Enable S" +
|
||||
"RQ button.";
|
||||
//
|
||||
// writingGroupBox
|
||||
//
|
||||
this.writingGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.writingGroupBox.Controls.Add(this.writeTextBox);
|
||||
this.writingGroupBox.Controls.Add(this.writeButton);
|
||||
this.writingGroupBox.Location = new System.Drawing.Point(8, 240);
|
||||
this.writingGroupBox.Name = "writingGroupBox";
|
||||
this.writingGroupBox.Size = new System.Drawing.Size(272, 56);
|
||||
this.writingGroupBox.TabIndex = 9;
|
||||
this.writingGroupBox.TabStop = false;
|
||||
this.writingGroupBox.Text = "Writing";
|
||||
//
|
||||
// writeTextBox
|
||||
//
|
||||
this.writeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.writeTextBox.Location = new System.Drawing.Point(8, 24);
|
||||
this.writeTextBox.Name = "writeTextBox";
|
||||
this.writeTextBox.Size = new System.Drawing.Size(152, 20);
|
||||
this.writeTextBox.TabIndex = 2;
|
||||
this.writeTextBox.Text = "*IDN?\\n";
|
||||
//
|
||||
// writeButton
|
||||
//
|
||||
this.writeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.writeButton.Location = new System.Drawing.Point(160, 24);
|
||||
this.writeButton.Name = "writeButton";
|
||||
this.writeButton.Size = new System.Drawing.Size(104, 23);
|
||||
this.writeButton.TabIndex = 1;
|
||||
this.writeButton.Text = "Write";
|
||||
this.writeButton.Click += new System.EventHandler(this.writeButton_Click);
|
||||
//
|
||||
// readingGroupBox
|
||||
//
|
||||
this.readingGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.readingGroupBox.Controls.Add(this.clearButton);
|
||||
this.readingGroupBox.Controls.Add(this.readTextBox);
|
||||
this.readingGroupBox.Location = new System.Drawing.Point(8, 312);
|
||||
this.readingGroupBox.Name = "readingGroupBox";
|
||||
this.readingGroupBox.Size = new System.Drawing.Size(272, 120);
|
||||
this.readingGroupBox.TabIndex = 10;
|
||||
this.readingGroupBox.TabStop = false;
|
||||
this.readingGroupBox.Text = "Reading";
|
||||
//
|
||||
// clearButton
|
||||
//
|
||||
this.clearButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.clearButton.Location = new System.Drawing.Point(8, 88);
|
||||
this.clearButton.Name = "clearButton";
|
||||
this.clearButton.Size = new System.Drawing.Size(104, 23);
|
||||
this.clearButton.TabIndex = 1;
|
||||
this.clearButton.Text = "Clear";
|
||||
this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
|
||||
//
|
||||
// readTextBox
|
||||
//
|
||||
this.readTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.readTextBox.Location = new System.Drawing.Point(8, 24);
|
||||
this.readTextBox.Multiline = true;
|
||||
this.readTextBox.Name = "readTextBox";
|
||||
this.readTextBox.ReadOnly = true;
|
||||
this.readTextBox.Size = new System.Drawing.Size(256, 56);
|
||||
this.readTextBox.TabIndex = 0;
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
||||
this.ClientSize = new System.Drawing.Size(288, 448);
|
||||
this.Controls.Add(this.readingGroupBox);
|
||||
this.Controls.Add(this.writingGroupBox);
|
||||
this.Controls.Add(this.selectResourceLabel);
|
||||
this.Controls.Add(this.enableSRQButton);
|
||||
this.Controls.Add(this.commandTextBox);
|
||||
this.Controls.Add(this.commandLabel);
|
||||
this.Controls.Add(this.openButton);
|
||||
this.Controls.Add(this.resourceNameLabel);
|
||||
this.Controls.Add(this.configuringGroupBox);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(296, 482);
|
||||
this.Name = "MainForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Service Request";
|
||||
this.configuringGroupBox.ResumeLayout(false);
|
||||
this.writingGroupBox.ResumeLayout(false);
|
||||
this.writingGroupBox.PerformLayout();
|
||||
this.readingGroupBox.ResumeLayout(false);
|
||||
this.readingGroupBox.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.Run(new MainForm());
|
||||
}
|
||||
|
||||
private void updateResourceNameControls(bool enable)
|
||||
{
|
||||
resourceNameComboBox.Enabled = enable;
|
||||
openButton.Enabled = enable;
|
||||
closeButton.Enabled = !enable;
|
||||
if (enable)
|
||||
openButton.Focus();
|
||||
}
|
||||
|
||||
private void updateSRQControls(bool enable)
|
||||
{
|
||||
commandTextBox.Enabled = enable;
|
||||
enableSRQButton.Enabled = enable;
|
||||
if (enable)
|
||||
enableSRQButton.Focus();
|
||||
}
|
||||
|
||||
private void updateWriteControls(bool enable)
|
||||
{
|
||||
writeTextBox.Enabled = enable;
|
||||
writeButton.Enabled = enable;
|
||||
if (enable)
|
||||
writeButton.Focus();
|
||||
}
|
||||
|
||||
private void InitializeUI()
|
||||
{
|
||||
updateResourceNameControls(true);
|
||||
updateSRQControls(false);
|
||||
updateWriteControls(false);
|
||||
}
|
||||
|
||||
// When the Open Session button is pressed, the resource name of the
|
||||
// device is set and the control attempts to connect to the device
|
||||
private void openButton_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var rmSession = new ResourceManager())
|
||||
{
|
||||
mbSession = (MessageBasedSession)rmSession.Open(resourceNameComboBox.Text);
|
||||
// Use SynchronizeCallbacks to specify that the object marshals callbacks across threads appropriately.
|
||||
mbSession.SynchronizeCallbacks = true;
|
||||
updateResourceNameControls(false);
|
||||
updateSRQControls(true);
|
||||
}
|
||||
}
|
||||
catch (Exception exp)
|
||||
{
|
||||
MessageBox.Show(exp.Message);
|
||||
}
|
||||
}
|
||||
|
||||
// The Enable SRQ button writes the string that tells the instrument to
|
||||
// enable the SRQ bit
|
||||
private void enableSRQButton_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
try
|
||||
{ // Registering a handler for an event automatically enables that event.
|
||||
mbSession.ServiceRequest += OnServiceRequest;
|
||||
WriteToSession(commandTextBox.Text);
|
||||
updateSRQControls(false);
|
||||
updateWriteControls(true);
|
||||
}
|
||||
catch(Exception exp)
|
||||
{
|
||||
MessageBox.Show(exp.Message);
|
||||
}
|
||||
}
|
||||
|
||||
// Pressing Close Session causes the control to release its handle to the device
|
||||
private void closeButton_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
mbSession.ServiceRequest -= OnServiceRequest;
|
||||
mbSession.Dispose();
|
||||
InitializeUI();
|
||||
}
|
||||
|
||||
// Clicking the Write Button causes the Send String to be written to the device
|
||||
private void writeButton_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
WriteToSession(writeTextBox.Text);
|
||||
}
|
||||
|
||||
// Pressing the Clear button clears the read textbox
|
||||
private void clearButton_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
readTextBox.Clear();
|
||||
}
|
||||
|
||||
private string ReplaceCommonEscapeSequences(string s)
|
||||
{
|
||||
return s.Replace("\\n", "\n").Replace("\\r", "\r");
|
||||
}
|
||||
|
||||
private string InsertCommonEscapeSequences(string s)
|
||||
{
|
||||
return s.Replace("\n", "\\n").Replace("\r", "\\r");
|
||||
}
|
||||
|
||||
private void WriteToSession(string txtWrite)
|
||||
{
|
||||
try
|
||||
{
|
||||
string textToWrite = ReplaceCommonEscapeSequences(txtWrite);
|
||||
mbSession.RawIO.Write(textToWrite);
|
||||
}
|
||||
catch(Exception exp)
|
||||
{
|
||||
MessageBox.Show(exp.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnServiceRequest(object sender, VisaEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
var mbs = (MessageBasedSession)sender;
|
||||
StatusByteFlags sb = mbs.ReadStatusByte();
|
||||
|
||||
if ((sb & StatusByteFlags.MessageAvailable) != 0)
|
||||
{
|
||||
string textRead = mbs.RawIO.ReadString();
|
||||
readTextBox.Text = InsertCommonEscapeSequences(textRead);
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("MAV in status register is not set, which means that message is not available. Make sure the command to enable SRQ is correct, and the instrument is 488.2 compatible.");
|
||||
}
|
||||
}
|
||||
catch(Exception exp)
|
||||
{
|
||||
MessageBox.Show(exp.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
353
NI-VISA/Examples/.NET/ServiceRequest/MainForm.resx
Normal file
353
NI-VISA/Examples/.NET/ServiceRequest/MainForm.resx
Normal file
@ -0,0 +1,353 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="resourceNameLabel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="openButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="closeButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="commandLabel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="commandTextBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="enableSRQButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="configuringGroupBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="selectResourceLabel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="writingGroupBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="writeTextBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="writeButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="readingGroupBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="clearButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="readTextBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>33</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAIAICAAAAEAGACoDAAAJgAAADAwAAABABgAqBwAAM4MAAAoAAAAIAAAAEAAAAABABgAAAAAAAAM
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAjn54Xks/YlUudGIvgW43g3E0eGgsZ1cnaFs1i4VwAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP///////wAA////////
|
||||
AAD///////8AAP///////wAA//8AB///AAD//AAB//8AAP/wAAB//wAA/+AAAD//AAD/wAAAH/8AAP+A
|
||||
AAAP/wAA/wAAAAf/AAD+AAAAA/8AAP4AAAAD/wAA/AAAAAH/AAD8AAAAAf8AAPgAAAAA/wAA+AAAAAD/
|
||||
AAD4AAAAAP8AAPgAAAAAfwAA+AAAAAB/AADwAAAAAH8AAPAAAAAAfwAA8AAAAAB/AADwAAAAAD8AAPAA
|
||||
AAAABwAA8AAAAAADAADwAAAAAAEAAIAAAAAAgQAAgAAAAADDAACAAAAAAf8AAIAAAAAB/wAAgAAAAAP/
|
||||
AACAAAAAA/8AAIAAAAAH/wAAwAAAAA//AADAAAAAH/8AAMAAAAA//wAA4DgAAP//AADgfAAB//8AAPD/
|
||||
gA///wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
13
NI-VISA/Examples/.NET/ServiceRequest/ReadMe.txt
Normal file
13
NI-VISA/Examples/.NET/ServiceRequest/ReadMe.txt
Normal file
@ -0,0 +1,13 @@
|
||||
Example Title: Service Request
|
||||
|
||||
Category: NI-VISA
|
||||
|
||||
Description: This example demonstrates how to use the service request event and
|
||||
the service request status byte to determine when generated data is ready
|
||||
and how to read it.
|
||||
|
||||
Language: Visual C#
|
||||
|
||||
Required Software: NI-VISA
|
||||
|
||||
Required Hardware: GPIB Instrument
|
||||
117
NI-VISA/Examples/.NET/ServiceRequest/ServiceRequest.2010.csproj
Normal file
117
NI-VISA/Examples/.NET/ServiceRequest/ServiceRequest.2010.csproj
Normal file
@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>10.0.21006.1</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>App.ico</ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>ServiceRequest</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>NationalInstruments.Examples.ServiceRequest</RootNamespace>
|
||||
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG;NETFX2_0;NETFX3_5;NETFX4_0</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<Optimize>false</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;NETFX2_0;NETFX3_5;NETFX4_0</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Ivi.Visa, Culture=neutral, PublicKeyToken=a128c98f1d7717c1, processorArchitecture=MSIL" />
|
||||
<Reference Include="NationalInstruments.Visa, Culture=neutral, PublicKeyToken=2eaa5af0834e221d, processorArchitecture=MSIL" />
|
||||
<Reference Include="System">
|
||||
<Name>System</Name>
|
||||
<HintPath>..\..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Data">
|
||||
<Name>System.Data</Name>
|
||||
<HintPath>..\..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Drawing">
|
||||
<Name>System.Drawing</Name>
|
||||
<HintPath>..\..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Windows.Forms">
|
||||
<Name>System.Windows.Forms</Name>
|
||||
<HintPath>..\..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml">
|
||||
<Name>System.XML</Name>
|
||||
<HintPath>..\..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.XML.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="App.ico" />
|
||||
<Compile Include="AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="MainForm.resx">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<AppDesigner Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>
|
||||
</PreBuildEvent>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
19
NI-VISA/Examples/.NET/ServiceRequest/ServiceRequest.2010.sln
Normal file
19
NI-VISA/Examples/.NET/ServiceRequest/ServiceRequest.2010.sln
Normal file
@ -0,0 +1,19 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceRequest", "ServiceRequest.2010.csproj", "{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
119
NI-VISA/Examples/.NET/ServiceRequest/ServiceRequest.2012.csproj
Normal file
119
NI-VISA/Examples/.NET/ServiceRequest/ServiceRequest.2012.csproj
Normal file
@ -0,0 +1,119 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>11.0.50522.1 RCREL</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>App.ico</ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>ServiceRequest</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>NationalInstruments.Examples.ServiceRequest</RootNamespace>
|
||||
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;DEBUG;NETFX2_0;NETFX3_5;NETFX4_0;NETFX4_5</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<Optimize>false</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE;NETFX2_0;NETFX3_5;NETFX4_0;NETFX4_5</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Ivi.Visa, Culture=neutral, PublicKeyToken=a128c98f1d7717c1, processorArchitecture=MSIL" />
|
||||
<Reference Include="NationalInstruments.Visa, Culture=neutral, PublicKeyToken=2eaa5af0834e221d, processorArchitecture=MSIL" />
|
||||
<Reference Include="System">
|
||||
<Name>System</Name>
|
||||
<HintPath>..\..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Data">
|
||||
<Name>System.Data</Name>
|
||||
<HintPath>..\..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Drawing">
|
||||
<Name>System.Drawing</Name>
|
||||
<HintPath>..\..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Windows.Forms">
|
||||
<Name>System.Windows.Forms</Name>
|
||||
<HintPath>..\..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml">
|
||||
<Name>System.XML</Name>
|
||||
<HintPath>..\..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.XML.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="App.ico" />
|
||||
<Compile Include="AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="MainForm.resx">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<AppDesigner Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>
|
||||
</PreBuildEvent>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
19
NI-VISA/Examples/.NET/ServiceRequest/ServiceRequest.2012.sln
Normal file
19
NI-VISA/Examples/.NET/ServiceRequest/ServiceRequest.2012.sln
Normal file
@ -0,0 +1,19 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceRequest", "ServiceRequest.2012.csproj", "{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3E318495-ADD7-4B3C-927B-A8E38E77FCEE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Reference in New Issue
Block a user