LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send multiple commands to our instrument via GPIB?

Hi,I have a question for you :),tks firstly.
I wanna send multiple commands to our instrument via GPIB using CVI,so it can promote the speed!
Just a example see below:
fp=ibdev(...);
ibwrt(fp,command_1,stren(command_1));
ibwrt(fp,command_2,stren(command_2));
ibwrt(fp,command_3,stren(command_3));
It is a boring way,so I want a array or function to complete it by one sentence ibwrt().
How to ?
Tks very much!
0 Kudos
Message 1 of 2
(2,762 Views)
I don't know of any way to already do this, but I think it would be pretty easy. I would just write my own function and call it ibwrtMulti() or whatever you want. You could pass this function an array of the commands you want to send. The function could simply run ibwrt() in a for loop, and index through the array of commands.

Shawn B.
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
0 Kudos
Message 2 of 2
(2,748 Views)