03-07-2008 12:51 AM
03-07-2008 08:03 AM
Without the commands you are sending and the make and model of your instrument, it's next to impossible to say what might be wrong. IYou need to provide that information.
Did you do a search for an existing driver for the power supply? You can go to your Tools menu and select Instrumentation>Find Instrument Drivers. You could also go straight to http://sine.ni.com/idnetwork/. If you don't find a driver, you should debug the commands/queries in MAX first before writing any code.
I would also recomend that you use VISA instead of the lower level GPIB functions. You'll have a more portable program if you do. If you stick with the GPIB functions, there is no reason to do the initialization every time.
03-07-2008 01:06 PM
Hi,
A bit of a messy VI., you dont need to use the Sequence Frame especially as your linking your vi's with the error in / error out.
But to see if you write and read are working, send *idn? with the byte count at least 200. Assuming your instrument response to *idn? you should get the instrument name, model, version etc.
Secondly, you might just try the example supplied with labview for GPIB. "LabVIEW - GPIB.VI".
Finally, try looking for the instrument driver as Dennis suggested.
Regards
Ray Farmer
03-07-2008 01:24 PM
03-10-2008 05:00 PM
03-10-2008 09:23 PM