07-06-2015 07:46 AM
07-06-2015 08:04 AM
07-06-2015 08:39 AM - edited 07-06-2015 08:41 AM
I have attached a zip file for your Agilent DC PSU. Unzip it into the following folder:
c:\Program Files (x86)\National Instruments\LabVIEW 2013\instr.lib\
Restart LabVIEW.
Create or open my example snippet. It should generate random numbers and set these values in the PSU. Note that, with this hardware you cannot change output voltage levels faster than 20 msec! This is called "Command processing time" : Average time for output voltage to change after receipt of digital data when the supply is connected directly to the GPIB bus.
In my example I change output values with a rate of 10 Hz, so the time between "data points" is 100 msec. I would not try to be much faster, maybe you can go up to 20 Hz to play "safe"...
Replace the random generator with your data array as convenient, if you have problems, post what kind of error you see. Before running my VI, set the actual GPIB VISA address!
Good luck!
07-06-2015 10:36 AM
Thanks for the reply. I've tried whatever you've guided.
Next I'll try to give my input as an array. Maybe it might work. But before that your code seems to show someError 1300 overvoltage,
The snapshot is attached. have a look at it and at the code too.
07-06-2015 10:56 AM - edited 07-06-2015 11:09 AM
This is an Intrument Specific error. Probably means an output value of "1" is too large for the device. Without looking at the documentation, I assume it expects values in Volts and can't handle 1 Volt. Divide the random number generator by 1000 or something to get it in to the mV range and try again. The error occured in Configure.vi, so look in to that VI to see what the configuration tries to do with setting up the voltage.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-06-2015 11:05 AM - edited 07-06-2015 11:08 AM
This error should only happen, if you request a voltage level which is out of range, higher compared to a predefined value (look into the Configure.VI). Your device is the model 6642A, which has a maximum output voltage of 20.48 Volts. So I cannot really understand why we cannot set a value between 0 and 1 Volts...
Try to reset the device, power cycle it, or set a logical true at the Initialize.vi 's reset input terminal.
edit: maybe you requested an overvoltage previously? Try the following modification:
07-07-2015 05:20 AM
Sir,
I've tried the way you have suggested and changed the code. The problem seems still to be present. Any ideas what to do and how to solve ?
07-07-2015 05:22 AM
Could you test the PSU manually? Try to set voltage levels between 0 and 1 Volts, and enable output. Does it work this way?
Do you have a load connected to the PSU? What is the resistance?
07-07-2015 05:27 AM
07-07-2015 06:33 AM
Yes I can test the dc supply manually.
I don't have any load connected to the PSY as if. Hence, I don't have resistance.
The error is : 'Error -1074135008 occurred at IviDCPwr IVI Error Converter.vi' .
'Possible reason(s):
Unknown channel or repeated capability name.
Complete call chain:
IviDCPwr IVI Error Converter.vi
IviDCPwr Configure Output Enabled.vi
IviDCPwr [MSR] - Output DC Volts.vi'