<font =“apple-style-span” size=“5”><span =“apple-style-span” style="color: rgb(68, 68, 68); ">
各位大大好,
我用labview製作了一個dll,其功能只是out=in1+2如下圖
<span =“text_Only_11px text_green_1” style="color: rgb(107, 142, 12); ">[+]放大圖片 |
使用LabView可以將此dll載入並使用,如下圖
<span =“text_Only_11px text_green_1” style="color: rgb(107, 142, 12); ">[+]放大圖片 |
<span =“text_Only_11px text_green_1” style="color: rgb(107, 142, 12); ">[+]放大圖片 |
然後我將此dll加入vb中,根據NI網站上的教學,如下連結
http://zone.ni.com/devzone/cda/tut/p/id/3925
輸入
Private Declare Sub addk Lib “C:\addk\addk1.dll” Alias “ADDK” (ByVal IN1 As Double, ByRef out As Double)
執行以下程式
Dim DegreeF As Double
Dim DegreeC As Double
DegreeF = FTextBox.Text
addk(DegreeF, DegreeC)
CTextBox.Text = DegreeC
但是發現回傳值一值都是’0’,如下圖
<span =“apple-style-span” style="color: rgb(68, 68, 68); "><span =“apple-style-span” style="color: rgb(68, 68, 68); ">所以想請問各位大大,我是否漏了甚麼步驟?少了設定,或是須注意??