How to connect to a function generator?

Hi guys, I am using a GPIB cable to connect to a function generator and I am aware of all the articles out there that explain how to create wave forms and what not, but I'm not sure how to start.
For instance, I don't know what "Read" and "Write" mean on the Instruments Control Toolbox! i'm not sure the data type, format, or even where to put the code if I want to create a waveform on a function generator.
I clicked on 'Connect" only, but the MATLAB workspace says I have not connected.
Thank you.

6 Commenti

"Read": input
"Write": output
Z
Z il 23 Giu 2013
How do I know the data type and format? Does the code go onto a script?
And why can't I click anything in the "Communicate" section? Is it because it has not connected?
Thank you very much!!
Put the code into a script if you like. A function would probably be better than a script. It doesn't really matter, though: if you can't get it to work from the command line then using a script or function is not going to make it start working.
I do not have that toolbox and have never used it, so I am not able to offer advice as to why you cannot click on anything in the Communicate section.
For information on the datatype and format, read the documentation for the function generator.
"...why can't I click anything in the "Communicate" section? Is it because it has not connected?"
Like Walter, I've never had access to the Instrumentation Toolbox having used standalone coding for all the GPIB interfacing I've done but...
One possibility is that you have the instrument in GTL (Go To Local) mode in which case it's ignoring the external commands.
The first thing in getting going w/ GPIB interfacing on any new (to you) instrument is to start w/ the documentation for it and first get familiar w/ how to operate it manually to do the operations you wish so you do then know what commands you're needing to send over the bus.
Then, read the GPIB programming sections for the instrument to learn how to find out its instrument address and how to get it to respond to the remote controller.
Z
Z il 25 Giu 2013
Thanks!
Z
Z il 26 Giu 2013
Your comments would make good answers^^ Maybe put ti down there so I can accept it.

Accedi per commentare.

 Risposta accettata

Z
Z il 28 Giu 2013
Use the command connect(f) when f is the variable indicating fgen.

Più risposte (0)

Categorie

Scopri di più su Instrument Control Toolbox in Centro assistenza e File Exchange

Richiesto:

Z
Z
il 23 Giu 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by