Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

generate CVI code from plug & play driver

I am writing CVI code using plug & play driver. To avoid remembering all the syntax of instrument driver, is it possible to generate the code by using the uir to set up the parameter? In the attached file (PastCommand.jpg), I try to initialize TK TDS7254 scope by  { tktds7k_init ("GPIB8::1::INSTR", INit_SKIP_QUERY,  INIT_DONT_RESET, 22) }. The command is in the lower right pane but I can't copy it to clipboard.

 

Please advise. Thanks.

0 Kudos
Message 1 of 2
(3,265 Views)

Hello CCT,

       You will need to load the instrument driver and run the uir in interactive mode.  Once you have the panel for the function running in interactive mode, you can select Code>>Insert Function Call.  To Load the Instrument, go to Instrument>>Load and select the fp file of the instrument.  To run it interactively, choose Instrument>>Driver Name.

 

Cheers,

 

NathanT

Message 2 of 2
(3,250 Views)