11-21-2023 09:40 AM
@gok010 wrote:
I am using NI PXIe 6345 IO card in NI PXIe 1088 chasis. the current should be in the range of 0 to 300mA in for both AC and DC. I have to generate the input signal using the DAQ device no other devices are available except a power amplifer
This is something you must have provided in the first post. You missed to provide details about the power amplifier.
Up to what frequency in AC?
11-21-2023 10:01 AM
Hi,
I have some doubts about the dt(s) in the PID VI is it ok to set it as the reciprocal of the sampling rate? Do we need a DAQ Mx start Start task VI, if we enable the auto start in the DAQ mx write VI.
11-22-2023 01:30 AM
Hi gok,
@gok010 wrote:
I have some doubts about the dt(s) in the PID VI is it ok to set it as the reciprocal of the sampling rate?
Did you read the (detailed) help for that function? It explains how to use that PID input…
(Usually you don't need to wire anything here.)
@gok010 wrote:
Do we need a DAQ Mx start Start task VI, if we enable the auto start in the DAQ mx write VI.
No.
On your image:
11-22-2023 06:37 AM
Hi GredW,
11-22-2023 07:30 AM
Hi gok,
@gok010 wrote:
- Since I am reading a current output across a resistor of 30 ohms, I divided the value with 30, so that it gives the value of current.
- Does the AI/AO read/write continuously if set to 1 channel 1 sample mode in a while loop? Won`t it be affected by delay in the loop?
11-26-2023 06:03 AM
Hello GerdW,
I would like to generate both AC current and DC current, I think this this program can only be used for controlling DC current as the setpoint is a DBL value. For generating an AC signal, is it possible to give a sine wave (from signal processing pallet) with a customizable inputs as the setpoint to the PID controller?
11-26-2023 02:39 PM
Software implemented PID controllers are not be fast enough to generate a clean AC current waveform.
You just have a lot of latency causing inefficient PID loop to settle fast enough within the period of the waveform.
You're at a the stage to find the right instrument for the job instead of spending so many engineering hours and at the end find out it is not possible.
11-26-2023 04:25 PM
11-27-2023 12:46 PM
11-27-2023 09:35 PM
Have you identified the power amplifier?
You can move the feedback control loop to the analog circuit and keep LabVIEW code simple to just source the voltage equivalent of the current if you adopt circuits as listed below,
https://www.ti.com/lit/an/sboa325/sboa325.pdf
https://www.ti.com/lit/an/sboa327a/sboa327a.pdf