橡vb_kikai0.PDF

Similar documents
untitled

BASICとVisual Basic

コンピュータ概論

橡WINAPLI.PDF

コンピュータ概論

卒業論文.PDF

CommandMatrix_8230E

1. 入力画面

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

My関数の作成演習問題集

Excel Excel Excel = Excel ( ) 1

Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2

Microsoft Word - PIC-IOアプリケーションノート.doc

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

OS Windows Mac OS Windows Mac OS Windows XP Mac OS X OS Windows 95 Mac OS

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

D0050.PDF

の包絡線を求めることになる 包絡線は一次式で表せるのでこのときの係数 ( 切片 ) を求 めればよいことになる この係数 ( 切片 ) が粘着力となる 包絡線はモールの応力円に外 接する直線であるため 包絡線の式は下記三式を解くことにより求めることができる 包絡線の式 Y=A1 X + B1 ---

C++ ++ Wago_io.dll DLLDynamicLinkLibrary Microsoft VisualBasic Visual C Wago_io.dll Wago_io.dll Wago_io.dll WAGO_OpenCommPort WAGO_CloseCommPort WAGO_

untitled

D0020.PDF

PowerPoint プレゼンテーション

AccessVBA−‹ŠpŁÒ-flO“Z

D0120.PDF

untitled

Excel Excel Excel = Excel III 7 ( ) 1

model-600E用ActiveX取扱説明書


sinfI2005_VBA.doc

Title.PDF

AJAN IO制御コマンド コマンドリファレンス

(Microsoft Word - VB6_VBA\215\354\220\254\216\350\217\207\201i\211\374\222\371\224\305\201j doc)

csv csv

Microsoft PowerPoint - Visualプログラミング

untitled

<4D F736F F D208DEC90AC837D836A B81698F4390B394C5816A2E646F63>

08‘͆i”O“Z†j

Microsoft Word 練習問題の解答.doc

Microsoft Word - VBA基礎(3).docx

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

dp0206_j

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

(Microsoft Word \203v\203\215\203O\203\211\203~\203\223\203O)


3軸加速度センサーモジュール MM-2860 書込み済みマイコンプログラム通信コマンド概要

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

IM_J_BIND

9399-TOOLSGRJA

untitled

ii

Excel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 初版 1 刷発行時のものです.

2/ 土 :30 11:20 似通った科目名がありますので注意してください. 受験許可されていない科目を解答した場合は無効 整理番号と科目コードは受験許可証とよく照合し正確に記入


Łñ“’‘‚2004

プリント

Microsoft PowerPoint - vp演習課題

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

D0090.PDF

(J言語研究会 2007年2月14日)

本サンプル問題の著作権は日本商工会議所に帰属します また 本サンプル問題の無断転載 無断営利利用を厳禁します 本サンプル問題の内容や解答等に関するお問 い合わせは 受け付けておりませんので ご了承ください 日商プログラミング検定 STANDARD(VBA) サンプル問題 知識科目 第 1 問 ( 知

受動的攻撃について

1. A0 A B A0 A : A1,...,A5 B : B1,...,B

Excel ダッシュボードのご紹介 株式会社アイエルアイ総合研究所内藤慶一

P15 P211 1 P1 P4 P2 P3 P4 P17

ルーレットプログラム

Case 0 sqlcmdi.parameters("?tencode").value = Iidata(0) sqlcmdi.parameters("?tenname").value = Iidata(1) 内容を追加します sqlcmdi.executenonquery() Case Else

1. 入力画面

バスケットボール

ファイル操作-インターネットキャッシュ

PowerPoint プレゼンテーション

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU

PowerPoint プレゼンテーション

.NETプログラマー早期育成ドリル ~VB編 付録 文法早見表~

橡実践Oracle Objects for OLE

第10回 コーディングと統合(WWW用).PDF

Oracle Lite Tutorial

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

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


目次 更新履歴... 1 はじめに... 3 レコードセット?... 3 準備... 5 SQL でデータを取得する... 6 データのループ処理... 7 列の値を取得する... 7 対象行を変更する (MoveFirst, MoveNext, MovePrevious, MoveLast)...


CD Microsoft, MS-DOS, Windows 95, Windows 98,Windows Me, Windows NT, Windows 2000, Visual Basic, Visual Basic.NET, Visual C#, Excel, ActiveX Microsoft

新・明解Java入門

Java (9) 1 Lesson Java System.out.println() 1 Java API 1 Java Java 1

Koblitz Miller field Fp p prime field Fp E Fp Fp Hasse Weil 2.2 Fp 2 P Q R R P Q O P O R Q Q O R P P xp, yp Q xq, yq yp yq R=O


MS-ExcelVBA 基礎 (Visual Basic for Application)

PowerPoint プレゼンテーション

Microsoft PowerPoint - VBA解説1.ppt [互換モード]

(18,26) 10/ GHz.xls [ (18GHz) ] GHz.xls [ (26GHz) ] +----all.sh [ 2 10 ] +----mesure-ryudai/ / _csv.log [

Microsoft Word - ŁtŸ^‡S

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

ファイル操作

PowerPoint プレゼンテーション

fiš„v3.dvi

スライド 1

ExcelVBA

PBASIC 2.5 PBASIC 2.5 $PBASIC directive PIN type New DEBUG control characters DEBUGIN Line continuation for comma-delimited lists IF THEN ELSE * SELEC

Components for RS-232c

PowerPoint プレゼンテーション

Transcription:

Visual Basic

OS Windows Visual Basic GPIBRS232C A/D Visual Basic Windows Visual Basic Visual Basic Visual Basic Visual Basic Windows GUI( ) OS Visual Basic Form Form 1

Visual Basic Microsoft Visual Basic 6.0 Microsoft Visual Basic6.0 Visual Basic Visual Basic 01 01Visual Basic 02 02 EXE 03 03 2

Form Form Form Form 04 04 3

Visual Basic Form Form 05 05 Form 06 06 4

07 07 Caption 08 08 5

Private SubEnd Sub 09 09 Form Form Form 10 10 6

11 11 7

GPIB GPIB General Purpose Interface Bus IEEE488-1975 IEEE488 1987 IEEE488.2-1987 IEEE488.1-1987 1992 IEEE488.2-1992 IEEE488 IEEE488.1 IEEE488 IEEE488.1 GPIB Windows Windows OS GPIB 13 13 GPIB ADVANTEST R6551 14 14ADVANTEST -8-

GPIB 15 15 GPIB 16 16 GPIB IEEE488.1 IEEE488.2 ADVANTEST 1/2 ASCII ASCII -9-

GPIB GPIB Windows OS OS OS OS 13 GPIB 17 PCMCIA-GPIB 18 17 18-10-

GPIB GPIB Visual Basic Visual Basic GPIB GPIB 19 GPIB 20 19 20GPIB -11-

Form cmddmm Private Sub cmddmm_click() Dim addr As Integer GPIB Dim dmm As Integer Dim rd As String Dim Spol As Integer addr=2 Call ibdev(0, addr, 0, T10s, 1, 0, dmm) GPIB Call ibclr(dmm) GPIB Call ibwrt(dmm, F1,RE5,H1 ) Do Call ibrsp(dmm, Spol) DoEvents Loop While(Spol And 16)=16 rd = Space$(20) Call ibrd(dmm,rd) Dim MyString, Head, DMMData MyString = rd Head = Mid ( MyString, 1, 3 ) Head DMMData = Mid ( MyString, 4, 11 ) DMMData DMM_Data.Text=DMMData GPIB Call ibloc(dmm) End Sub -12-

21 21GPIB 22 22-13-

GPIB NI Call ibdev ibdev GPIB GPIB GPIB GPIB EOI Call ibclr () ibdev Staibclr() ER ibsta Ibsta GPIB Call ibwrt Call ibrsp( ) Call ibrd ibloc -14-

RS232C RS232C R ecommended S tandard E lectronics Industries A ssociation T elecommunications Industries A ssociation EIA/TIA RS Dsub9pin MINI-Wiring Adapter 23 23MINI-Wiring Adapter -15-

TDS210 RS232C 24 24 TDS210 RS232C RS232C Visual Basic -16-

Visual Basic Microsoft Comm Control6.0 25 25 Microsoft Comm Control 6.0 OK 26 26 OK 27 27 MSComm Form 28-17-

28MSComm RS232C TDS210 Form MSComm Private Sub Form_Load() 'MSComm mscport.commport = 1 mscport.settings = "9600,n,8,1" mscport.handshaking = comrts mscport.rtsenable = True mscport.sthreshold = 1 mscport.rthreshold = 1 End Sub 2-18-

Private Sub Form_Unload(Cansel As Integer) ' If mscport.portopen Then mscport.portopen = False End If End End Sub ' Private Sub rsport_click() mscport.portopen = Not mscport.portopen If mscport.portopen = True Then Else End If End Sub rsport.caption = " " rsport.caption = " " LF Private Sub cmddata_click() ' If mscport.portopen = True Then mscport.output = cmdsend.text & Chr(&HA) End If End Sub -19-

Private Static Sub mscport_oncomm() Dim rsbuffer As Variant Dim rsdata, PointData Select Case mscport.commevent Case comevcd Case comevcts Case comevdsr Case comevring Case comevreceive rsbuffer = mscport.input rsdata = rsdata & rsbuffer Case comevsend Case comeveof Case Else MsgBox " ", vbexclamation, " " End Select PointData = Mid(rsData, InStr(rsData, "CURVE ") + 6) txtdata.text = PointData End Sub -20-

Private Sub trdata_click() Dim im As Long Dim i1, i2, i3 As Integer Dim strdata Dim P_Data, posdata Dim pos(30000) As Long Dim intdata(30000) As Long Dim k(10000) im = 1 i1 = 1 i2 = 1 P_Dat = 1 strdata = txtdata.text P_Data = Len(strData) Do While InStr(strData, ",") <> 0 strdata = Mid(strData, InStr(strData, ",") + 1) im = im + 1 Loop strdata = txtdata.text P_Data = Mid(strData, 1, P_Data - 1) posdata = 1 For i1 = 1 To im pos(i1) = InStr(posData + 1, P_Data, ",") posdata = pos(i1) Next i1 pos(im) = Len(P_Data) k(1) = Mid(P_Data, 1, pos(1) - 1) intdata(1) = CInt(k(1)) For i2 = 2 To im - 1 k(i2) = Mid(P_Data, pos(i2-1) + 1, pos(i2) - pos(i2-1) - 1) intdata(i2) = CInt(k(i2)) Next i2 k(im) = Mid(P_Data, pos(im - 1) + 1, pos(im) - pos(im - 1)) intdata(im) = CInt(k(im)) For i3 = 1 To im Print intdata(i3) Next i3 End Sub -21-

RS232C Form Form 29 30 29RS232C Form 30-22-

RS-232C Microsoft Comm Control 6.0 mscport CommPort ~ mscport.commport=1 Settings mscport.settings 9600,n,8,1 Handshaking RTSEnable SThreshold Rthreshold mscport.handshakingcomrts RTS(Request To Send ) mscport.rtsenabletrue oncomm mscport.sthreshold=1 oncomm mscport.rthreshold=1 oncomm CommEvent comevsend oncomm oncomm SThreshold comevreceive RThreshold Input comevcts Clear To Send comevdsr Data Set Ready comevcd High Low Carrier Detect comevring RI comeveof EOFEnd Of File EOF ASCII 26h -23-

PortOpen mscport.portopen=true Output mscport.output=cmdsed.text Input rsbuffer=mscport.input -24-

A/D A/D A/D A/D OS DAQCard-500 31 31DAQCard-500 DAQCard DAQ 32http://www.ni.com/support/jp/daqsupp.htm 32DAQ -25-

DAQCard-500-26-

OS Nidaq69Jpn.exe 33 33 LabVIEW, Visual C++, Borland C++, Borland Delphi, Microsoft Internet Explorer Visual Basic 34 34NI-DAQ 35-27-

A/D A/D 36 36A/D A/D 37 37A/D Form 38A/D -28-

AI_Vread 3000 Picture 39 Private Sub Command1_Click() Dim Vr(5000) As Double For i = 1 To 3001 Call AI_VRead(1, 0, i, Vr(i)) Text1.Text = Vr(i) Next i Dim Y1(5000) As Double Dim X1(5000) As Double Picture1.Cls For i = 1 To 3000 X1(i) = i * 1 Y1(i) = 2000-100 * (Vr(i) + 10) Picture1.Circle (X1(i), Y1(i)), 10 Next i End Sub -29-

DAQCard-500 4 DIG_Out_Port LED 40 Private Sub Command1_Click() Call DIG_Out_Port(1, 0, 15) End Sub Private Sub Command2_Click() Call DIG_Out_Port(1, 0, 0) End Sub -30-