It sounds like you are generating a 40 Hz PWM (pulse width modulation) signal. I can think of two general options.
1. LV RT and a counter timer card (e.g. 6602/6608). The card can generate a very stable signal and you can update the pulse parameters (length of the high and low phase) from your host application (LV RT). The transition from one duty cycle to another will be seamless. However the card can not store an array of duty cycles. You will need to update the card with the desited duty cycle (pulse widths) each time. The 25 ms requirement to update the duty cycle is relative to what other event? i.e. what will cause you to update the duty cycle being generated.
2. The second option is to use a FPGA/RIO card to generate the PWM signal. You can
store the array of duty cycles in memory on the FPGA and then just index the array form your host application. It will take about 1.5 microseconds to change from one duty cycle to another controlling this from a LV RT application.
Christian L
authored byChristian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX

