Benchtop Measurement and Test
Distributed Measurement and Control
High-Performance Test
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-10-2014 11:43 AM - 已編輯 09-10-2014 12:05 PM
工程師您好,我的儀器是Agilent 66321B,用GPIB-USB-HS接到電腦,我是剛接觸的新手,由於想使用MFC去寫控制儀器的UI,請問要如何在程式中呼叫到可以控制儀器功能的函式呢? 有甚麼相關的資料可以研讀?因為不太了解,謝謝您。
在 09-11-2014 02:51 AM
如果你安裝了NI-VISA,你可以參考VISA裡面C的範例程式,裡面應會包含基本的VISA read/write的函式,再由這邊整合到你的MFC程式。這個方法你會需要瞭解兩個部分,其中一個是VISA API的使用方式,另一個則是儀器本身所支援的VISA指令,這個要看儀器的說明書。
但事實上一般做儀器控制,用LabVIEW是比較容易做到的。
若是你有使用LabVIEW,你可以在
http://www.ni.com/downloads/instrument-drivers/zht/
找到你使用的儀器的驅動程式
http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=1676
用這個儀器驅動程式開發儀器控制程式會簡單得多,你可以用LabVIEW寫好儀器控制的程式,再整合到你的MFC程式裡面。
在 09-11-2014 03:42 AM
那想請問是不是有兩種方式1.您說的NI-VISA 2.使用NI-488.2 呢? 由於也沒學過LabVIEW,應該只能從MFC直接下手,若是我剛說的兩種方式,請哪種方式會比較好使用?最後一個問題就是,我所要的功能是不是都可以在範例程式都有,而這樣就能夠整合到MFC中? 很謝謝您!
在 09-11-2014 04:58 AM
VISA是一個儀器溝通的通用架構
http://www.ni.com/visa/
可以支援不同的儀器介面(例如GPIB、Serial、USB等)
因此你現在使用GPIB的介面,NI-488.2這個GPIB的驅動程式是需要的。但若是要直接寫介面的指令(例如488.2)來做儀器控制,等於是寫更底層的指令,會比透過VISA更複雜。
你要的功能範例程式有沒有,最好的方式還是還是請你先看過範例程式,再自行評估你想要做到的應用,會比較可靠。
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!