03-12-2010 10:28 AM
I can start MAX and it will find my power supplies. They are Sorensen (Ameteks) XG33-25s. They also respond to IDNs. Running from the program I get this error:
VISA Read in PowerSupply.lvlib:Read.vi->PowerSupply.lvlib:Initialize.vi->PowerSupply.lvlib:MvPowerSupply.vi->MvTransmitter.lvclass:ConfigureSystem.vi->MvTransmitter.lvclass:Initialize.vi->MvTransmitter.lvclass:MvTransmitter.vi->MvTransmitter.lvclass:MvTransmitter.vi.ProxyCaller
VISA: (Hex 0xBFFF0015) Timeout expired before operation completed. [Error Code: -1073807339].
However if I setup NI Spy to capture they work fine and come up to proper settings. Is the spy slowing it down enough so something isn't being missed? BTW we are using a NI PCI based GPIB card.
The capture is attached for your viewing pleasure...
Thanks,
jvh
03-12-2010 11:40 AM
03-12-2010 11:47 AM
03-12-2010 11:54 AM
03-12-2010 12:05 PM
You're right, there not much detail. To read from the supply you first need to send a command to it that will trigger a reply (as the *IDN? command). Then you will read the supply answer. If you send the read command without first sending a query command you will get a timeout. Between the visa write and read commands you can also insert the *WAI command to insure that the power supply completed processing the first command.
Ben64
03-12-2010 12:49 PM
03-12-2010 01:56 PM
03-12-2010 03:48 PM
ben64 wrote:From the spy file we can see GPIB addresses 3, 4 and 5. Do you have more than 1 instrument and are you sure you set the address correctly in you code?
Yes I have three instruments and yes the addresses are correct. Else they still would not program correctly with the spy running.
jh
03-12-2010 04:01 PM - edited 03-12-2010 04:03 PM
Hey, here something of interest.
After reading Jeff's post I searched google for Default gpib termination character and the very first hit sent me right back to this forum, almost 5 years ago. Looks like EOI should be asserted but some devices like to see LF.
http://forums.ni.com/ni/board/message?board.id=140&message.id=12947
03-12-2010 04:07 PM - edited 03-12-2010 04:08 PM
Guess when I learned about it as a newbie (and a one-hit flier on the forum) back in my Lv 5.1 days
I eventually got the MFG to update the interface