LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to send arbitrary signal to Dc power supply. Help. Please.

Solved!
Go to solution
What is that subVI? The only thing you should have changed is the source of the voltage setting.

You are converting the dynamic data to a scalar (single value). Don't you know what you have wired? You can't expect a waveform when you are not passing a waveform to the instrument. You could concert the dynamic data to an array and pass the array to the instrument write function inside a for loop to write each element of the array. This is basic LabVIEW knowledge.
Message 21 of 48
(1,930 Views)
I have not looked at the driver but there is probably a function to actually turn the output on and you are not calling that. Please go to Help> Find Examples and under Hardware Input and Output, you should find instrument driver examples. An example for your instrument should be there. Run that before doing anything more.
Message 22 of 48
(1,914 Views)

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!

 

Agilent_test_BD.png

Message 23 of 48
(1,895 Views)

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.  

0 Kudos
Message 24 of 48
(1,856 Views)

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>   ---'


0 Kudos
Message 25 of 48
(1,844 Views)

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:

 

Agilent_test_BD.png

0 Kudos
Message 26 of 48
(1,829 Views)

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 ? 

0 Kudos
Message 27 of 48
(1,788 Views)

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?

0 Kudos
Message 28 of 48
(1,785 Views)
Have you connected the random number to the correct terminal? Have you even tried the example that comes with the driver?
0 Kudos
Message 29 of 48
(1,780 Views)

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. 

  • Yes sir, I've checked the example that comes fir output DC supply. But probably there's some error coming due to channel name. 

     

    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'

0 Kudos
Message 30 of 48
(1,760 Views)