How to connect to a function generator?
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 23 de Jun. de 2013
"Read": input
"Write": output
Z
el 23 de Jun. de 2013
Walter Roberson
el 25 de Jun. de 2013
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.
dpb
el 25 de Jun. de 2013
"...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
el 25 de Jun. de 2013
Z
el 26 de Jun. de 2013
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Instrument Control Toolbox en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!