09-17-2006 11:36 PM
09-18-2006 05:02 PM
09-26-2006 04:13 AM
09-26-2006 04:34 AM
Dear Sir:
The expected waveforms is attached to this reply.
Best regards!
Jingwei Zhu
26/09/2006
09-27-2006 10:54 AM
09-27-2006 07:21 PM
Dear Mr. Jeff Tipps:
Thank you very much for your reply.
I have checked my LabVIEW program. The ramp signal does not come from the outside analog input. I generate it with labVIEW signal generator. The sampling frequency is 40KHz (when experiment I set it to 80KHz) and I only get one sample at each loop. I have checked the comparator output signal in waveform chart2. The period of this waveform is about 3.33ms.
After I change the number of samples in analog input task (4472) to 100, I measure the window time with PWM signals using Tetronix oscilloscope. The window time is about 300ms. It is longer than 3.3ms.
My hardware is PXI-8196RT with PXI-4472 and PXI-6602 cards and. The PXI-8196RT is connected with a host PC(PXI-8196 controller). I develop and run my program in the host PC. I donot have any other card.
I would like to use these hardware to control brushless permanent magnet AC motor. I measure the rotor position signal with encoder (like a ramp signal), then according to rotor position to generate six channel PWM signals. Are there any examples to realize this function with LabVIEW PXI card?
Thank you for your time!
Best regards!
Jingwei Zhu
09-28-2006 09:06 AM
09-28-2006 07:55 PM
Dear Jeff Tipps:
I am sorry I did not include total files. The files is attached to this reply. The main labVIEW file name is PWM_control_926.VI
Best regards!
Jingwei
09-29-2006 02:23 PM
09-30-2006 03:28 AM
Dear Mr. Jeff Tipps:
Thank you for your reply.
I have understood your explaination and the reason why my window time was too long. When I ran your modified VI in low Fs, the window was not in same width.
In real time motor control, I would like to acquire encoder information by PXI-6602. Then by comparing the encoder information with constant such as pi/6, 5*pi/6, 3*pi/2....,I can generate control windows in which the PWM signals are produced. The frequency of encoder signal is about 100Hz. I am not sure if my hardware can fulfill my function. I wonder what is the maximum sampling rate of the encoder acquisition by 6602. My hardware includes PXI8196RT, PXI-6602 and PXI-4472.
If I use outside signal to trigger the PWM generator, I only can generate fixed number of pulse. I would like to know that can I trigger and stop pulse generator by outside signals. For example, the rising edge triggeres it and falling edge stops it.
In your reply you said the real time system is the only way to meet my control loop rate. What does the real time system mean? Is it not my hardware mentioned above?
I am a new LabVIEW user. Please give me some suggestion for my control requirement.
Thank you very much!
Best regards1
Jingwei Zhu