08-06-2017 10:05 PM - edited 08-06-2017 10:05 PM
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
08-07-2017 05:23 PM
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
08-07-2017 08:49 PM
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!
08-08-2017 04:01 PM
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
08-08-2017 09:13 PM
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!