LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Charging and discharging multiple capacitors

Hello,

We have a PXI system running LabVIEW 8.5 on Win XP.  We want to charge and discharge a bank of capacitors in a very controlled manner.  I was wondering if anyone else has performed a similar task and has some examples of the code to control a capacitor system.  We have a PXI-6225 DAQ card for our analog input from the V and I sensors, and a PXI-2567 relay output card to control the charge and discharge of the cap bank.

Thanks,

Munk 
0 Kudos
Message 1 of 3
(2,982 Views)
Hi Munk,

It sounds like you have all of the hardware you need to build this application. If you need a good place to start, I would recommend using either the DAQ Assistant or the DAQmx examples to acquire data from your sensors. The Example Finder can be accessed through the LabVIEW Help menu. The DAQmx examples can be found browsing by task under Hardware Input and Output » DAQmx. The switching can also be programmed using DAQmx. A good example demonstrating the functions being used can be found along with the DAQmx examples under Switching. It seems that you will need to use one channel of the relay to connect the source to your capacitor and another channel of the relay to connect your capacitor to a resistor. These relays can be programmed to open or close whenever you want. It can be dependent on time or the sensor measurements.

Regards,
Kent
Applications Engineer
0 Kudos
Message 2 of 3
(2,949 Views)

Hi Kent,

Thanks for your reply!  Yes, I have looked through the examples analog I/O and NI-Switch vi's.  I was looking for some examples of vi's upon which to base my new vi.  I'm relatively new to LabVIEW, but I've had some success with building several vi's to handle multiple channel AI and AO with the standard DAQmx tools.  

Eventually we will be using the real-time module to control this system; this is another aspect of our project which I need to study.

Thanks again,

Munk

0 Kudos
Message 3 of 3
(2,931 Views)