Oscilloscope VI and pid simulator

This commit is contained in:
2023-07-22 17:10:05 -03:00
parent b43886dc92
commit 0a53fdcb2f
4 changed files with 21 additions and 1 deletions

View File

@@ -1,2 +1,2 @@
#define WIFI_SSID "SSID" #define WIFI_SSID "SSID"
#define WIFI_PSK "secret" #define WIFI_PSK "secret"

BIN
Code/Oscilloscope.vi Normal file

Binary file not shown.

View File

@@ -0,0 +1,20 @@
close all; clc;
kp = 0.0017198;
ki = 0.04662;
kd = 0;
s = tf('s');
PID = kp + ki/s + kd*s;
G = 1108.7/(1+0.073597*s);
SYS = feedback(series(PID, G), 1);
opt = stepDataOptions;
opt.StepAmplitude = 500;
step(SYS, opt);
t = [0.005:0.01:0.295];
hold on;
plot(t, output03);

BIN
LabVIEW Data.zip Normal file

Binary file not shown.