06-20-2014 09:08 AM
Hello, I am trying to communicate via GPIB to a Lakeshore 7300 VSM. I am using NI-VISA to send commands for testing communication in real time. Unfortunately, none of the commands I send are working. I have tried querying with *IDN?, but the response always times out. Any help or documents on how to use GPIB to communicate with this device would be very much appreciated. Also, if someone could provide an example command with exact syntax to use in VISA for testing purposes, that would be very helpful as well. Thank you in advance!
06-20-2014 10:16 AM
06-20-2014 10:17 AM
I have been trying, but I am not really certain how to include that in the command...
06-20-2014 10:21 AM - edited 06-20-2014 10:22 AM
You just need to concatinate an End Of Line constant. In the example below, notice that the botton string constant has the display set to '\ codes'
06-20-2014 10:34 AM
06-20-2014 01:22 PM - edited 06-20-2014 01:28 PM
I am trying to communicate with the gpib instrument directly through NI MAX (the communication tool - i think NI-VISA?). I have been using the carriage return character. I have also tried using labview to communicate. Although the write functions seem to be sending to the instrument. I cannot read any data. I keep receiving a timeout error. I am wondering if maybe I need to somehow reset the GPIB to read instead of write before trying to read the query?
Furthermore, although the device receives write messages, it does not seem to be responding or changing settings accordingly.
06-20-2014 02:08 PM
jfherrm wrote:
Furthermore, although the device receives write messages, it does not seem to be responding or changing settings accordingly.
That just screams your are not sending your commands properly. Can you post the VI you have been using?
06-20-2014 03:38 PM
06-23-2014 05:30 AM
When you say in MAX, do you mean in the NI-VISA communication box, or in the real-time command box? I tried the \r\n, but the command still did not elicit a response from the machine. Would you be able to give me an exact command (with exact syntax) that should give me a response? That way I can see exactly what I am doing wrong (I'm new to gpib communication).
Also, my computer has a PCIe-GPIB+ card (IEEE 488.2), but I am nearly certain the VSM only has an IEEE 488 card. Is it possible that communication between the two different cards is not possible because one is newer than the other? (maybe a different communication protocol?)
06-23-2014 06:53 AM
In Max, select the instrument under the GPIB interface and hit the "Communicate with this Instrument". Now for a querry, try putting in "ADDR?\r\n". The instrument should respond with its GPIB address.