06-02-2015 01:57 PM - edited 06-02-2015 02:08 PM
I am talking with a California Instruments MX15 power supply using TCP/IP. I downloaded their GUI to control the power supply remotely so I could familiarize myself with how it works. The GUI works fine without any connection issues. I am now trying to make my own driver (the driver download they provide on their website does not work) to control the power supply remotely. I have attached the VI that I am trying to simply send the *IDN? command and query back a response. If I can get this to work I will have no problem figuring out the rest. However I have been trying to figure this out for the past day or so and to no avail. I am new to TCP/IP but I now understand the basics because of all my google work the past many hours :/.
I attached my VI to look at. As you can see I tried using the VISA function as well as the TCP function. The TCP function works fine without any errors returned, but does not return anything in the buffer and times out. The VISA function on the other hand opens communications to the power supply but when I try to send a command to the power supply it gives me this error:
Error -1073807194 occurred at an unidentified location
Possible reason(s):
VISA: (Hex 0xBFFF00A6) The connection for the given session has been lost.
Any help is appreciated, thanks in advance.
Solved! Go to Solution.
06-02-2015 02:28 PM
Have you installed VISA server? Sounds like this is what you need to do.
http://digital.ni.com/public.nsf/allkb/F3AB0B5D7DBA367C86257982005BBF2C
06-03-2015 07:28 AM
Well I did have VISA installed but I didn't have the "Run the VISA server on startup" box checked. I checked it( as you can see in the picture) but I still am not getting an *IDN? response back. The VI runs without any errors but doesn't return the IDN? string. Any other thoughts?
06-03-2015 07:34 AM
Whenever I have a new device that I need to "play with" to see how connections work, I usually start with MAX. If you open MAX, can it "see" your Power Supply? Can you configure your VISA to that port? If so, try doing a VISA Write (open Test Panels) and see what VISA Read returns.
BS
06-03-2015 07:59 AM
I went ahead and started a new connection in MAX and, as you can see in the pictures, I can sent the *IDN? command and receive a response! However, when I try to do the same thing with my VI I dont get anything in return, frustrating. Any other thoughts? I also attached a screenshot of my VI.
06-03-2015 08:07 AM - edited 06-03-2015 08:11 AM
Are you sure that there's a response to the IDN? query immediately? How long does your VI take from start to finish now?
06-03-2015 08:16 AM
It's at least as fast as I can click the execute button 2x for the read and write. I see what you are saying, I put a 5000ms delay in between my write and read in my VI, still no reply.
06-03-2015 08:16 AM
It now takes like 5010ms maybe?
06-03-2015 08:24 AM
06-03-2015 08:39 AM
You are a lifesaver!!! Thanks so much!