KiloLima

Controling Agilent N6702a Power Supply

6 posts in this topic

Greetings,

I am a newbie to using Autoit but figured I would post the question on this forum. I am currently using a Agilent N6702a power supply that I would like to control using Autoit to enable and disable voltage/current on various test products. I was able to use Visa.au3 and Visa.dll and was successful with making a USB connection to the device my problem is I am looking for a sample script on how I could turn on and off voltage/current settings  on a specific channel on the power supply and maybe even try and set multiple staggered voltage settings across a range to test a range of voltages (18Vdc thru 28Vdc).

Thanks in advance for any info

--Keith

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

For doing that you need to obtain documentation for the SCPI interface of that specific Agilent device. A 2-second googling turned up this: http://cp.literature.agilent.com/litweb/pdf/5969-2937.pdf#page=16&zoom=auto,70,720

Note that this is only a list of SCPI commands. As they say: "For complete details on the SCPI (Standard Commands for Programmable Instruments) commands, refer to the Programmer’s Reference Help file included on the Agilent N6700 Product Reference CD. This CD-ROM is shipped along with your instrument."

Another 2-second googling found it: http://www.keysight.com/main/editorial.jspx?cc=FR&lc=fre&ckey=781505&nid=-35714.384346.00&id=781505

Edited by jchd

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

jchd Thanks very much for the information

Share this post


Link to post
Share on other sites

Very nice programmable power supply BTW. Have fun!


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Thanks, I have a scenario that I would like to program and just have not found any good example. I am using a application called "Auto-it" and would like to set the power supply to 18VDC @ 5 amps and run at that voltage for 30 minutes, then increase the voltage to 36VDC @ 5 amps and run for 30 minutes and then return back down to 18VDC  and continue to loop that.

Any good examples?

Thanks Keith  

Share this post


Link to post
Share on other sites

You'll have to first learn AutoIt basics. Use a global While loop with two inner while loops, each performing a dummy but visible action (e.g. ConsoleWrite('I'm doing step X') and then waiting for 30 minutes. Once the skeleton of your app works as intended, replace the dummy action by the required sequence of SCPI commands.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now