10-05-2010 02:59 PM
Hi Olivier,
i already have corrected the coersion dots dot you have told me about and use the convertion method that you advise me to use in all channels but the problem still there..now when i multiply my data acquisition by one there is something wierd happening, only the DC values that didn't pass through convertion seems to be good. the values that pass through convertion just gives 0 or -16.
Do you think that i should try the scaling in the Host.vi??
Thanks
Regards
M_Silva
10-13-2010 07:23 PM
Hello guys,
i'm desperate for help, i'm trying to implement a PID on FPGA and i think i'm almost there... since the output values of PID doesn't go as far as i want to (like tick values), i decide to relate them to obtain the values that i after send to PWM tick comparison to generate the PWM duty-cycle. I already am capable of view the values generated by PID varying from 0 ticks to 40M ticks, although i can see the values in my indicators and in a graph that i have on Host, when put them to be comparated my channel 1 goes high and my channel 2 goes low and never change. The strange thing is that the PWM out put didn't change but the PID values of OUT_I32 that i have in the same SCTL keeps on changing to compensate as drop or rise the voltage value. May the problem be the relate code that i'm doing?? or is it because i'm getting the values to the SCTL by a local variable?
I have attached the project code.
Please help or give me some idea.
Thanks in advance.
Mário Silva