05-02-2006 09:21 AM
05-03-2006 10:28 PM
05-04-2006 08:04 AM - edited 05-04-2006 08:04 AM
Message Edited by nyc on 05-04-2006 09:05 AM
05-04-2006 09:59 AM
05-04-2006 11:05 PM
05-04-2006 11:44 PM
05-05-2006 12:10 PM
06-12-2006 08:32 AM
06-12-2006 10:05 AM
http://forums.ni.com/ni/board/message?board.id=140&message.id=17237
you'll need to port it over to Visual Basic 2005
06-12-2006 08:18 PM - edited 06-12-2006 08:18 PM
Using VISA, an IEEE488.1 "get" message can be sent to multiple devices at a time with the following method. Mind that you must have an INTFC session (equivalent to NI-488.2M board-level session).
' Open INTFC session, then reference to INTFC interface
Dim gpintfc As IGpibIntfc
Set gpintfc = rm.Open("GPIB0::INTFC")
' If needed, send IFC and REN (probably unneeded)
' gpintfc.SendIFC
' gpintfc.ControlREN GPIB_REN_ASSERT
' Send ATN-true command
Dim cmd(0 To 4) As Byte
cmd(0) = &H3F 'UNL
cmd(1) = &H40 + gpintfc.PrimaryAddress 'TA
cmd(2) = &H20 + 1 'LA1
cmd(3) = &H20 + 2 'LA2
cmd(4) = 8 'GET
gpintfc.Command cmd, 5
This will send a GET message to GPIB address 1 & 2 at the same time. You can have multiple sessions (such as INSTR and INTFC) kept open at the same time.
このメッセージは 06-13-2006 11:20 AMに Makoto が編集しています。
このメッセージは 06-13-2006 11:21 AMに Makoto が編集しています。
このメッセージは 06-13-2006 11:26 AMに Makoto が編集しています。