03.01.2015 Views

Complete set: Intro to C - Bill Buchanan

Complete set: Intro to C - Bill Buchanan

Complete set: Intro to C - Bill Buchanan

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.6 IIInstrument example<br />

///copyright agilent technologies 2003<br />

///filename: IInstrumentMeasModule.cs<br />

///author: Nick McALonan<br />

///date: Oct 2003<br />

///change his<strong>to</strong>ry -<br />

///module testing his<strong>to</strong>ry -<br />

///description - This file is the Measurement level public I/F for generic<br />

instrument calls<br />

///and as such the implemeation should be contained within each measurement<br />

module project that requires it.<br />

using System;<br />

namespace Agilent.Sqf.Of.Instrument<br />

{<br />

///copyright agilent technologies 2003<br />

///filename: IInstrumentMeasModule.cd<br />

///author: NickMcALonan<br />

///date: Oc<strong>to</strong>ber 2003<br />

///change his<strong>to</strong>ry -<br />

///module testing his<strong>to</strong>ry -<br />

///description - This file is the Measurement level public I/F for generic<br />

instrument calls<br />

///and as such contains only declarations of the methods that applly at ALL<br />

instruments.<br />

///This interface should be ///inherited by all other measurement interfaces<br />

public interface IInstrumentMeasModule<br />

{<br />

void QueryFirmware(out string Firmware);<br />

void Re<strong>set</strong>();<br />

}<br />

}<br />

duction <strong>to</strong> .NET<br />

<strong>Intro</strong><br />

using System;<br />

namespace Agilent.Sqf.Of.PPMC<br />

{<br />

/// <br />

/// Summary description for IPPMCInstrument.<br />

/// <br />

public interface IPPMCInstrument<br />

{<br />

int StartUpPPMC(int comPort);<br />

void RebootPPMC(int comPort);<br />

void SetupPPMCParams(int comPort, string pathToFirmware, string<br />

downloadParamsFile);<br />

void DownloadFirmware(string pathToFirmware, string downloadFilename);<br />

void UpdateBootSettings(string pathToFirmware, string bootFileInfo);<br />

}<br />

}<br />

///copyright agilent technologies 2003<br />

///filename: IPowerMeterMeasModule.cs<br />

///author: Steve Welsh<br />

Agilent .NET Course: More Objects 13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!