Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

talker/listener

I need for a simulation bench to simulate a GPIB instrument.

I know all of the GPIB commands (text message) i can receive and i suppose to process.

How can i use the fonctions present in the NI-488 to perform my instrument simulation correctly. I mean my application is only a Talker/Listener application.

What i need to implement in my code ?
0 Kudos
Message 1 of 8
(4,565 Views)
Your best bet is to use NI-Device. This product was designed to be used as a talker/listener.
0 Kudos
Message 2 of 8
(4,564 Views)
My application is based on NI488.2 DDK and i problably cannot use NI-Device.

Is there any other method based on ibxxx functions only ?
0 Kudos
Message 3 of 8
(4,564 Views)
Hi,

The DDK ibrd and ibwrt do not perform any addressing on the bus. When Controller, your code needs to send the addressing commands using ibcmd. For Talker/Listener you don't send the commands, so the main concern is to determine the state of the interface.

You can poll the status and determine when the interface is TACS or LACS. Depending on the state you can call ibrd and ibwrt. That is how you would write a talker listener application.

If you were using NI-488.2 you would need to use only board-level functions. The 488.2 DDK only supports board level functions.

Note: NI-Device would be the best solution, since it is design specifically to implement 488.2 compliant talker/listener applications.

DiegoF
National Instrume
nts.
0 Kudos
Message 4 of 8
(4,565 Views)
What operating system and microprocessor are you using for your application?
0 Kudos
Message 5 of 8
(4,564 Views)
OS : QNX neutrino
Processor : x86
0 Kudos
Message 6 of 8
(4,564 Views)
You should be able to port the NI-Device DDK to work on QNX. Otherwise, Diego's suggestion of polling for TACS/LACS and doing the ibwrt/ibrd would be the other mechanism.
0 Kudos
Message 7 of 8
(4,564 Views)
I thing that Diego's suggestion is the best way for us to do what we need. But i am going to see about NI-Device.
0 Kudos
Message 8 of 8
(4,565 Views)