5980_2666JA.qxd



Similar documents
JA.qxd

JA.qxd

JAJP.qxd

ex01.dvi

untitled

JAJP.qxd

コンピュータ概論

Java演習(4) -- 変数と型 --

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

double float

ex01.dvi

JAJP.qxd

‡©‡ª‡Ý.P65

94 expression True False expression FalseMSDN IsNumber WorksheetFunctionIsNumberexpression expression True Office support.office.com/ja-jp/ S

My関数の作成演習問題集

Copyright c 2008 Zhenjiang Hu, All Right Reserved.

ASP.NET 2.0 Provider Model 概要

45 VBA Fortran, Pascal, C Windows OS Excel VBA Visual Basic Excel VBA VBA Visual Basic For Application Microsoft Office Office Excel VBA VBA Excel Acc

5988_7454JA.qxd

卒業論文.PDF

D0050.PDF

新・明解Java入門

Q&A集

SystemC言語概論


PR300 電力モニタ 通信インタフェース (RS-485通信,Ethernet通信)

sinfI2005_VBA.doc

B 5 (2) VBA R / B 5 ( ) / 34

r07.dvi

ohp07.dvi

9399-TOOLSGRJA

ALG ppt

lexex.dvi

ii

para02-2.dvi

WinHPC ppt

JAJP.indd

LogisticaTRUCKServer-Ⅱ距離計算サーバ/Active-Xコントロール/クライアント 概略   

Condition DAQ condition condition 2 3 XML key value

r08.dvi

/ SCHEDULE /06/07(Tue) / Basic of Programming /06/09(Thu) / Fundamental structures /06/14(Tue) / Memory Management /06/1

D0120.PDF

アルゴリズムとデータ構造1

XMPによる並列化実装2

yacc.dvi

橡実践Oracle Objects for OLE

PowerPoint プレゼンテーション

Excel Excel Excel = Excel ( ) 1

第5回お試しアカウント付き並列プログラミング講習会

6-1

新版明解C言語 実践編


"CAS を利用した Single Sign On 環境の構築"

Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2

Excel Excel Excel = Excel III 7 ( ) 1


やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル

JAJP.qxd

Title.PDF

PowerPoint プレゼンテーション

fp.gby

ohp08.dvi

comment.dvi

JAJP.qxd

橡vb_kikai0.PDF

卒 業 研 究 報 告.PDF

ArcObjects実践 ーオブジェクト・モデル・ダイアグラムの読み方とヘルプの活用ー

untitled

D0020.PDF

新・明解C言語 実践編

ohp03.dvi

<リスト1> AD コンバータへのデータの出力例 NEC PC98 用 mov al,22h // CLK -> 1, CS -> 0, DI -> 0 out 32h,al // シリアル ポートにデータ出力 PC/AT 互換機用 mov al,00h // CLK -> 1 mov dx,3fb

LogisticaTRUCKServer-Ⅱ距離計算サーバ/Active-Xコントロール/クライアント 概略   

120802_MPI.ppt

mbed_library_study_meeting_v1.0.key


PowerPoint プレゼンテーション

LogisticaTRUCKServer-Ⅱ距離計算サーバ/Active-Xコントロール/クライアント 概略   

解きながら学ぶJava入門編

Microsoft Word 練習問題の解答.doc

1.ppt

II 3 yacc (2) 2005 : Yacc 0 ~nakai/ipp2 1 C main main 1 NULL NULL for 2 (a) Yacc 2 (b) 2 3 y

£Ã¥×¥í¥°¥é¥ß¥ó¥°(2018) - Âè11²ó – ½ÉÂꣲ¤Î²òÀ⡤±é½¬£² –

VB.NETコーディング標準

Microsoft Word - C.....u.K...doc

PowerPoint プレゼンテーション

VB 資料 電脳梁山泊烏賊塾 音声認識 System.Speech の利用 System.Speech に依るディクテーション ( 音声を文字列化 ).NetFramework3.0 以上 (Visual Studio 2010 以降 ) では 標準で System.Speech が用意されて居るの

K227 Java 2

JA.qxd

2 X Y Y X θ 1,θ 2,... Y = f (X,θ 1,θ 2,...) θ k III 8 ( ) 1 / 39

Oracle Lite Tutorial

presen.gby

untitled

haskell.gby


untitled

IP L09( Tue) : Time-stamp: Tue 14:52 JST hig TCP/IP. IP,,,. ( ) L09 IP (2017) 1 / 28

ストラドプロシージャの呼び出し方

BW BW

Transcription:

Agilent Application Note 1408-13

2

3

http://na.tm.agilent.com/pna/dcomsecurity.html 4

5

6

\\\ 7

8

9

10

11

C:\Program Files\Agilent\Network Analyzer\Automation \\ \\ http://na.tm.agilent.com/pna/ DCOMSecurity.html 12

http://na.tm.agilent.com/pna 13

14

Option Explicit Dim app As AgilentPNA835x.Application Dim chan As AgilentPNA835x.Channel Dim meas As AgilentPNA835x.Measurement Dim result As Variant Dim i As Integer Dim num_points As Integer Dim message As String Private Sub Main() Connect to the PNA application on machine SLTSU044 Set app = CreateObject("AgilentPNA835x.Application","SLTSU044") Reset the analyzer to instrument preset app.reset Create S11 measurement app.createmeasurement 1, "S11", 1 Set chan variable to point to the active channel Set chan = app.activechannel Set meas variable to point to the active measurement Set meas = app.activemeasurement Setup the channel for a single trigger chan.hold True app.triggersignal = natriggermanual chan.triggermode = natriggermodemeasurement Make the PNA application visible app.visible = True Set channel parameters chan.numberofpoints = 11 chan.startfrequency = (1000000000#) chan.stopfrequency = (2000000000#) Send a manual trigger to initiate a single sweep chan.single True Store the data in the "result" variable result = meas.getdata(narawdata, nadataformat_logmag) Display the result num_points = chan.numberofpoints For i = 0 To num_points - 1 message = message & result(i) & vbcrlf Next If MsgBox(message, vbokonly, "S11(dB) - VBS COM Example for PNA") Then Set chan = Nothing Set app = Nothing End If End Sub 15

16

http://msdn.microsoft.com/scripting/ Option Explicit Shell objects Dim app Dim chan Dim meas Dim result Dim message Dim num_points Dim I Connect to the PNA application on machine SLTSU044 Set app = CreateObject("AgilentPNA835x.Application","SLTSU044") Reset the analyzer to instrument preset app.reset Create S11 measurement app.createmeasurement 1, "S11", 1 Set chan variable to point to the active channel Set chan = app.activechannel Set meas variable to point to the active measurement Set meas = app.activemeasurement Setup the channel for a single trigger chan.hold True app.triggersignal = 3 chan.triggermode = 1 Make the PNA application visible app.visible = True Set channel parameters chan.numberofpoints = 11 chan.startfrequency = (1000000000) chan.stopfrequency = (2000000000) Send a manual trigger to initiate a single sweep chan.single True Store the data in the "result" variable result = meas.getdata(0, 1) Display the result num_points = chan.numberofpoints For i = 0 To num_points - 1 message = message & result(i) & vbcrlf Next if MsgBox(message, vbokonly, "S11(dB) - VBS COM Example for PNA") then Set chan = Nothing Set app = Nothing end if 17

18

19

20

Option Explicit Dim app Dim chan Dim meas Dim result As Variant Dim i As Integer Dim num_points As Integer Private Sub Document_Open() Connect to the PNA application on machine SLTSU044 Set app = CreateObject("AgilentPNA835x.Application", SLTSU044 ) Reset the analyzer to instrument preset app.reset Create S11 measurement app.createmeasurement 1, "S11", 1 Set chan variable to point to the active channel Set chan = app.activechannel Set meas variable to point to the active measurement Set meas = app.activemeasurement Setup the channel for a single trigger chan.hold True app.triggersignal = natriggermanual chan.triggermode = natriggermodemeasurement Make the PNA application visible app.visible = True Set channel parameters chan.numberofpoints = 11 chan.startfrequency = (1000000000#) chan.stopfrequency = (2000000000#) Send a manual trigger to initiate a single sweep chan.single True Store the data in the "result" variable result = meas.getdata(narawdata,nadataformat_logmag) Display the result num_points = chan.numberofpoints For i = 0 To num_points - 1 ThisDocument.Tables(1).Cell(i + 2, 2).Range = result(i) Next Set chan = Nothing Set app = Nothing End Sub 21

22

23

Option Explicit Dim app Dim chan Dim meas Dim result As Variant Dim i As Integer Dim num_points As Integer Private Sub Workbook_Open() Connect to the PNA application on machine SLTSU044 Set app = CreateObject("AgilentPNA835x.Application", SLTSU044 ) Reset the analyzer to instrument preset app.reset Create S11 measurement app.createmeasurement 1, "S11", 1 Set chan variable to point to the active channel Set chan = app.activechannel Set meas variable to point to the active measurement Set meas = app.activemeasurement Setup the channel for a single trigger chan.hold True app.triggersignal = natriggermanual chan.triggermode = natriggermodemeasurement Make the PNA application visible app.visible = True Set channel parameters chan.numberofpoints = 11 chan.startfrequency = (1000000000#) chan.stopfrequency = (2000000000#) Send a manual trigger to initiate a single sweep chan.single True Store the data in the "result" variable result = meas.getdata(narawdata, nadataformat_logmag) Display the result num_points = chan.numberofpoints For i = 0 To num_points - 1 Sheet1.Cells(3 + i, 1) = result(i) Next Set chan = Nothing Set app = Nothing End Sub 24

25

#include <stdio.h> #include "atlbase.h" #include "objbase.h" // import the PNA type library //---------------------------------------------------------------- #import "C:\Program Files\Common Files\Agilent\PNA\835x.tlb" no_namespace, named_guids int main(int argc, char* argv[]) { // interface pointers to retrieve COM interfaces IUnknown* punk = 0; IApplication* pna = 0; IChannel* pchan = 0; IMeasurement* pmeas = 0; IArrayTransfer* ptrans = 0; int i, num_points = 0; float* pscalardata; HRESULT hr; // Initialize the COM subsystem CoInitialize(NULL); CoInitializeSecurity( NULL, 0, // authn svc entries NULL, // authn svcs NULL, // reserved RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_ANONYMOUS, 0, // authn info 0, // capabilities 0); // reserved //security descriptor // Create an instance of the network analyzer // Request the NA's IUnknown interface hr = CoCreateInstance(CLSID_Application,0,CLSCTX_ALL, IID_IUnknown, (void**) &punk); if (!FAILED(hr)) { // QueryInterface for the INetworkAnalyzer interface of the NetworkAnalyzer object hr = punk->queryinterface(iid_iapplication,(void**)&pna); if (!FAILED(hr)) { // Reset the analyzer to instrument preset pna->reset(); // Create S11 measurement pna->createsparameter(1,1,1,1); // Set pchan variable to point to the active channel pna->get_activechannel(&pchan); if (pchan) { // Set pmeas variable to point to the active measurement pna->get_activemeasurement(&pmeas); 26

if(pmeas) { // Setup the channel for a single trigger pchan->hold(true); pna->triggersignal = natriggermanual; pchan->triggermode = natriggermodemeasurement; // Make the PNA application visible pna->put_visible(true); // Set channel parameters pchan->numberofpoints = 11; pchan->startfrequency = 1e9; pchan->stopfrequency = 2e9; // Send a manual trigger to initiate a single sweep pchan->single(true); // QueryInterface for the IArrayTransfer interface of the NetworkAnalyzer object hr = pmeas >QueryInterface(IID_IArrayTransfer, (void**)&ptrans); if (!FAILED(hr)) { // Store the data in the "result" variable num_points = pchan->numberofpoints; pscalardata = new float[num_points]; ptrans->getscalar(narawdata, nadataformat_logmag, (long *)&num_points, pscalardata); // Display the result printf("s11(db) - Visual C++ COM Example for PNA\n\n"); for (i = 0; i < num_points; i++) printf("%f\n",pscalardata[i]); } } } punk->release(); pmeas->release(); pchan->release(); ptrans->release(); pna->release(); } else { printf("programmed failed to connect to the PNA."); } } CoUninitialize(); return 0; } 27

28

29

http://www.agilent.co.jp/find/vee/ 30

31

32

\\\ \\\ 33

\\ \\ 34

35

www.agilent.co.jp/find/pnaj www.agilent.co.jp/find/ecal-j www.agilent.co.jp/find/accessories 192-8510 9-1 9:00-19:00 12:00-13:00 FAXE-mailWeb 24 TEL 0120-421-345 (0426-56-7832) FAX 0120-421-678 (0426-56-7840) Email contact_japan@agilent.com www.agilent.co.jp/find/tm www.agilent.com/find/emailupdates-japan October 14, 2004 5980-2666JA 0000-00DEP