LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control for Instrument I/O assistant

My current aim in Labview 7.0 is to create one or more dialogue boxes on the front panel into which I can enter values so as to control a pulse generator(HP 8131A) and its variables ie. ampl, delay, dcyc...

I do not have a driver for the device so i'm using an Instrument I/O assistant that supports query, query and parse.etc. but can not support control of the certain devices values.
I have also tried "GPIB write" but with no success.

Essentially I wish to control the generator input from Labview!

Is it possible?

Thanks
0 Kudos
Message 1 of 3
(2,495 Views)

Certainly it's possible. If you have debugged the instrument calls in your I/O Assistant, then you could convert that to a VI and modify it to accept variables that you pass from a higher level VI. In the converted I/O Assistant, you will find some VISA Writes and VISA Reads (assuming you created both types of steps in the I/O assistant). If you have a write step that does something like SET:AMP:2 and want the amplitude to be a variable, create a front panel numberic control, use that as an input to Format Into String with the string format of SET:AMP:%f and take the output of the function to your VISA Write, you've now got a VI that you can programtically set the amplitude.

Personally, I find it easier to just debug instrument I/O in MAX and write t
he driver from scratch instead of using the assistant. For information on this, I would suggest going here to check out the guidelines, instructions, and development tools. The Instrument Driver Network has thousands of examples that you can look at to give you an idea on how others have been written.

Message 2 of 3
(2,495 Views)
The ability to create parameter inputs for Instrument I/O Assistant is currently under development, and will be in a future release of the Assistant. Currently, I would recommend doing what Dennis suggests, and create an Express VI that performs a Write step, and then modify the generated code to format a string based on front panel control inputs instead of using the static string for the command generated by the Assistant.

-Tommy
0 Kudos
Message 3 of 3
(2,495 Views)