04-19-2012 07:59 PM
Hi,
I opened MAX and selected a GPIB instruement that I want to communicate with. Is there a way to send the Go To Local (GTL) command to the instrument through the Communicator? How would I send GTL to an instrument through a C program? Do I need to use a VISA viWrite() call?
Thanks!
Solved! Go to Solution.
04-20-2012 08:27 AM
Many instruments have a SCPI command to take it out of Remote mode. You may want to look at the manual.
04-20-2012 08:48 AM
Thanks for your reply. I read the manual before posting and there is not a SCPI command to go to local mode. The manual only says that the instrument automatically goes to remote whenever it receives a command over the IEEE-488 bus. I would understand how to transmit SCPI to the instrument. I do not know how to transmit an IEEE-488 command. Thank you.
04-20-2012 09:36 AM
Did you read the help? With the communicator open, just type Help like it says. Find ibloc command. There is also detailed NI-VISA help that you simply have to open up and read. The function you would implement is viGpibControlREN. If you intend to do any programming, you have to really understand what is detailed in the help file.
04-20-2012 09:52 AM
Dennis,
Thank you for pointing me in the right direction. No thank you for your sarcasm and insults. I looked in the NI Communicator help and even searched NI's website and a Google search for GTL and could not find what I was looking for. I will try calling the function viGpibControlREN() on Monday when I am in the lab. Have a nice day.
04-20-2012 10:08 AM - edited 04-20-2012 10:09 AM
You're welcome.
04-23-2012 02:53 PM
Mr. Knutson,
As I mentioned in my opening post, I was using NI 488.2 COMMUNICATOR inside of MAX. The help file that you posted is from NI-VISA. I typed GTL into the Help in MAX and came up with zip. Perhaps you should take some of your own criticism and read what someone writes before you flame them. I have posted very few times in these forums for the simple reason that I almost always figure things out on my own. Have a good day, sir.
04-23-2012 03:13 PM
I actually posted the help from the NI-488 communicator as well as the VISA help. Mainly to show other people that might come across this thread that the help actually does link to the information you requested. Don't take it as a flame.
04-23-2012 08:26 PM
@danzimmer wrote:
Mr. Knutson,
As I mentioned in my opening post, I was using NI 488.2 COMMUNICATOR inside of MAX. The help file that you posted is from NI-VISA. I typed GTL into the Help in MAX and came up with zip. Perhaps you should take some of your own criticism and read what someone writes before you flame them. I have posted very few times in these forums for the simple reason that I almost always figure things out on my own. Have a good day, sir.
On my Windows 7 laptop, the NI 488.2 Help file through Start Menu -> All Programs -> National Instruments -> NI-488.2. The Help file is one of the items in the folder.