Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-Spy and NI I/O Trace: How it work?

Hi everyone,

 

I want to write a program that work similar to NI-Spy or NI I/O Trace using VBA

Could anyone explain me how they work? or which API should i use?

 

Thank you so much

0 Kudos
Message 1 of 5
(4,017 Views)

Hi Huy,

 

I am not entirely sure how NI I/O Trace or NI Spy work but here is a document with the NI-VISA API that you can use to reference:

 

NI-VISATM Programmer Reference Manual

"http://www.ni.com/pdf/manuals/370132c.pdf" 

0 Kudos
Message 2 of 5
(3,968 Views)

Hi Rleonard3,

Have a nice day to you

 

Thank for your support me

But as my understanding, this reference manual is APIs to control equipment

What I need is how to capture APIs calls made by applications.

 

For examples when I send a command to instrument "Set sg_inst.IO = sg_mgr.Open("TCPIP0::192.168.0.18::INSTR")"

The problem will return me viOpenDefaultRM(xxxxxxxxxxxxx). Something like that

 

Thank you!

0 Kudos
Message 3 of 5
(3,963 Views)

Hi Huy,

 

The API for NI IO-Trace is unfortunately for internal use only. What exactly are you trying to accomplish? Does IO-Trace not work for you?

 

Have a great day!

 

PoteetB

Applications Engineering

National Instruments

0 Kudos
Message 4 of 5
(3,932 Views)

Dear PoteetB,

 

Thank for kindly support me

Let's me explain my problem. Plz see the attachment as well

Now I want to write application 1 using VBA to control Signal generator

The application 1 is running parallel with application 2. Application 2 is fixed, can't modify, it comes from my supplier

When I run two application 1 & 2, it will make a crossing and stop all applications

 

But when I run NI I/O trace parallel with application 2, it works well and no crossing

I wonder how NI I/O trace works. I want to write application 1 similar to NI I/O trace

 

Whether having another way to make application 1?

 

Thank you, everyone!

0 Kudos
Message 5 of 5
(3,925 Views)