VBIB-32.basをVB.netで使用したい
10 iwao_k 2003/12/02(火) 00:06
こんにちはiwao_kです。
こんな遅い時間にありがとうございます。
やはり、実際に見えない場所にまだ型の不整合があるのですね。
教えて頂いた、掲示板をチェックしてみます。
これで駄目な場合は、NIさんのMeasurment Studioという物を
購入すれば、VBIB-32.basで定義されているコマンドは使用出来ると
いうことなので、会社と掛け合ってみようと思います。
もう少しではないかと思っていたので残念ですが‥
マニクさん、何度もお返事を頂きありがとうございました。
11 k 2004/01/06(火) 17:49
iwao_kさん、今日は。
私も同じようにVB.NET2003でVBIB-32.basを使いたいと思い
色々トライしてみました。
アップグレードウイザードで変換後、下記のように修正したところ
送受信共に問題なくできるようになりました。
私も他に問題が出るか知りたいので
VBIB-32.VBの内容を詳しく知りたい場合は書き込みして下さい。
Declare Function ibwrt32 Lib "Gpib-32.dll" Alias "ibwrt" (ByVal ud As Integer, <MarshalAsAttribute(UnmanagedType.VBByRefStr)> ByRef sstr As String, ByVal cnt As Integer) As Integer
Declare Function ibrd32 Lib "Gpib-32.dll" Alias "ibrd" (ByVal ud As Integer, <MarshalAsAttribute(UnmanagedType.VBByRefStr)> ByRef sstr As String, ByVal cnt As Integer) As Integer
12 tyjoe 2004/02/19(木) 15:01
i got a same problem as your discussion when i upgrade my program to vb.net 2003 from vb6.0
i can debug my program but when my program call the function just as ibwrt32 and ibrd32 etc.
'bi-bi' rings the machine .i don't know what's happened..
by the way what is the mean of <MarshalAsAttribute(UnmanagedType.VBByRefStr)>
writen by MR.K.? thanks all
13 tyjoe 2004/02/19(木) 15:43
hi iwao_k san
did you work out your project?
i am also bummed out that i should take out a
proposal about that upgrade in short time.
maybe you can give me some suggestion ,Thanks a lot
14 匿名488 2004/02/19(木) 17:23
<MarshalAsAttribute(UnmanagedType.VBByRefStr)>
It permits that the Unmanaged-code (Gpib-32.dll) changes a content of "sstr".
15 匿名488 2004/02/19(木) 22:22
VBIB-32.BASなんかで悩まないでVISA使えばいいじゃん。
16 匿名488 2004/02/20(金) 03:02
>>15
新規案件は別として、この手の事例は、
現存製品のマイナーチェンジの際か、
将来的な保守と MS 開発環境の寿命を考えて行う
プラットフォーム移行で、どちらかというと
動いている部分には手を掛けたくないが多いんじゃないかと。
この手法は JavaVM から(JNI 経由?)で DLL を呼ぶ
のと同じような違和感はあるのですが。
17 tyjoe 2004/02/23(月) 17:16
Thank you Noname488 and your suggestion
i worked out my project with the method writen by Mr./Ms.K.
but i got a other problem when my program go into the Gpib-32.dll
my program is stopped sometimes.if i restart my computer everything become Ok.
i don't know what is happened.
18 Typejp 2004/05/17(月) 17:02
以前、以下のWebで記載されていましたが、今は???
URL
サンプルソフトの動作確認は、以下の環境で行っています。
PC: IBM-PC/AT 互換機
OS: Windows2000/XP
GPIB I/F: National Instruments (以下 NI) 社製 GPIB I/F ボード
開発言語: VisualBasic.net
VB.net 用のプロジェクトを使用する場合には、別途 当社の以下のファイルを、
プロジェクトの標準モジュールに追加してください。
NIGLOBAL.bas
VBIB-32.bas
19 匿名488 2004/05/20(木) 08:19
>>18
当社って、NIの社員?