01-17-2006 11:12 AM
I have a file “HPE3631A configure output.vi” (DC power supply). This file I downloaded from NI web for using control our DC power supply. I would like to use a script file that can automatically process and configure the output voltage, current parameter? I do not have to click mouse for change the voltage and current parameter. We would like use this script file as one of our test automation.
What format file can use as a script? Is any example file I can use as a reference (it does not have to be HPE3631A).
01-17-2006 11:41 AM
01-17-2006 03:59 PM
Thank you for the email. Please let me know where can I find an example of the script file. I need find an example of the script file that can step by step process the HPE3631A configure output.vi. I have no experience of using TCL.
01-17-2006 04:04 PM
01-17-2006 04:41 PM
I don't have an example. You are free to create a script file in any format that you want. To give you a little help, say you have a comma separated file. The first field could be instrument address. The second field could be a function. This might be Initialize, Configure Voltage,Configure Trigger, etc. The following fields could be parameters that you pass. Some functions would require more parameters than others. Look at the number of functions in the driver and see if you want to duplicate them and how many parameters they require or whether you want to break some of them down into something smaller. When you've decided that, then you can determine how to read the file and parse out the commands. Do you want to do error checking here or someplace else? What I mean is, what if the file contains the word "Initilize" instead of "Initialize". What if a voltage parameter is out of bounds?