Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

stimulate ivi driver

hello all,

 

i would like your assitance on the following:

 

my system consist of the following:

1. a machine i need to simulate (i dont have current access to it)

2. a test application that uses VISA to communicate with the machine (when it's physically available)

 

the machine send reports of events and receives commands (GPIB level messages)

 

i need to replace the actual machine with a simulator (on simulaion mode of course) that will send the reports upon a press of a button and process commands when arrived from test applicaton.

 

meaning :

- one test application (send commands to simulation application)

- one IVI driver

- one simulation application (send reports to test application - upon a click of a button)

 

how can i do that ?

 

since the driver is a dll and not an application -

 

both application must "share" the same IVI driver , so it could trigger resports from simulator application to test application and send commands in the other direction...

 

is this the correct way to do that ?

is this possible ?, meaning two application share the same IVI driver (i'm asking since on init each application instanciate driver class and uses the object to communicate with hardware - so each is interfacing different object)

 

can you think of any better \ simplier way achieving this system simulation goal

 

 

thanks

 

Haim

 

 

0 Kudos
Message 1 of 3
(3,115 Views)

This definitely will not be easy to do, but here are my ideas.  You'll need two physical GPIB cards connected together, and two programs.  Your application will communicate and send commands to the first GPIB card, and the 'simulation program' will use the second card.

 

Your second program, which is acting as the simulator, will read data from the second card, process it, and send back whatever test data you would like.  The first program will receive this response, and send new commands.

 

I'm not positive how the IVI driver will be involved in this process or how to take it into consideration in the simulation, maybe other users have ideas about that.  It would be probably be easiest for the simulation purposes to not use the IVI driver, but that may nullify the purpose of the simulation.

Eric S.
AE Specialist | Global Support
National Instruments
0 Kudos
Message 2 of 3
(3,075 Views)

Hello Haim,

       Please provide more specific details about your situation.  Which instrument will you be using?  What type of measurements will you be taking and possibly needed to have simulated.  By "machine" do you mean a PC or a programmable instrument?

 

Cheers,

 

NathanT

0 Kudos
Message 3 of 3
(3,056 Views)