I am trying to use the programmable power supply as an offset for a signal. Using the offset with the WaveGen is not working because it is taking a long time to reach the target offset I need, so I am just using a dc power source instead.
Can I use the V+ and ground to use as a power source in the circuit? I only need the positive voltage, up to 3.7V, is that possible?
I can see this example in the SDK set (if you can point me to more examples I will be grateful):
// set up analog IO channel nodes
// enable positive supply
FDwfAnalogIOChannelNodeSet(hdwf, 0, 0, 1);
// enable negative supply
FDwfAnalogIOChannelNodeSet(hdwf, 1, 0, 1);
// master enable
FDwfAnalogIOEnableSet(hdwf, true);
printf("Total supply power and load percentage:\n");
Question
ssm
Dear Help,
I am trying to use the programmable power supply as an offset for a signal. Using the offset with the WaveGen is not working because it is taking a long time to reach the target offset I need, so I am just using a dc power source instead.
Can I use the V+ and ground to use as a power source in the circuit? I only need the positive voltage, up to 3.7V, is that possible?
I can see this example in the SDK set (if you can point me to more examples I will be grateful):
// set up analog IO channel nodes
// enable positive supply
FDwfAnalogIOChannelNodeSet(hdwf, 0, 0, 1);
// enable negative supply
FDwfAnalogIOChannelNodeSet(hdwf, 1, 0, 1);
// master enable
FDwfAnalogIOEnableSet(hdwf, true);
printf("Total supply power and load percentage:\n");
for(int i = 0; i < 60; i++){
// wait 1 second between readings
Wait(1);
// fetch analogIO status from device
FDwfAnalogIOStatus(hdwf);
// supply monitor
FDwfAnalogIOChannelNodeStatus(hdwf, 3, 0, &vSupply);
FDwfAnalogIOChannelNodeStatus(hdwf, 3, 1, &aSupply);
wSupply = vSupply * aSupply;
prcSupply = 100 * (aSupply / 0.2);
printf("%.3lf W \t%i%%\n", wSupply, prcSupply);
// in case of over-current condition the supplies are disabled
FDwfAnalogIOEnableStatus(hdwf, &fOn);
if(!fOn){
// re-enable supplies
FDwfAnalogIOEnableSet(hdwf, false);
FDwfAnalogIOEnableSet(hdwf, true);
}
}
Edited by ssmLink to comment
Share on other sites
14 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now