Description

With this experimental setup, user can observe effects of the first order systems on the RC circuit.

Experimental setup is consisted of:

-NI6008 DA/AD converters
-Serial first order RC circuits with galvanic insolation

Through Python script, user can control voltage passed to the inputs of the RC circuits, and observe outputs of said RC circuits.

There is one mandatory function, def petlja(t,y), where

t - current timestep

y - current output of the RC circuit

function is returning a value that will be passed to the input of the RC circuit.

Duration of experiment is 20 seconds, and sampling time is 125 ms.

There is a plot that shows input and output, and console, where user can print arbitrary information.

Python math library is included, so user can use math functions (sin, exp, etc.).

User can write control program in any text editor, and then upload it onto the web laboratory for program execution.

Voltage range that AD/DA converter can handle is 5 volts. Voltage reference is 2.5 volts, so user can make inputs in the range from -2.5 to 2.5 volts.
Example program for passing a unit step signal and observing output:

def petlja(t, y):
    u = 1 #1 volt
    print str(t) + ',' + str(u) + ',' + str(y) #print timestep, input and output as comma separated
    return u #send 1 volt to the DAC

 

Screenshots

No votes have been submitted yet.

View and write the comments

No one has commented it yet.