Hi,
I want to do some tests with a PXIe-4135 to ramp up from A to B amps under a certain period of time.
First idea was to calculate the the ramp up rate and use the CurrentLevelRisingSlewRate but I'm getting an exception regardless what value I want to set the slew rate. Same exception when I just try to read the value.
Is there a work around for this or is there a better way to make this ramping?
Exception and code snippet below:
double startAmps = 0.5;
double endAmps = 0.7;
double currentSlew = 0.1;
double durationSeconds = 3;
string ch = "0";
using (NIDCPower dcPower = new NIDCPower(item.Name, ch, true))
{
dcPower.Source.Mode = DCPowerSourceMode.SinglePoint;
dcPower.Outputs[ch].Source.Output.Function = DCPowerSourceOutputFunction.DCCurrent;
dcPower.Outputs[ch].Source.Current.CurrentLevel = startAmps;
var test = dcPower.Outputs[ch].Source.Current.CurrentLevelRisingSlewRate;
dcPower.Outputs[ch].Source.Current.CurrentLevelRisingSlewRate = currentSlew;
dcPower.Outputs[ch].Source.Voltage.CurrentLimitHigh = endAmps;
dcPower.Control.Initiate();
}