User manual - labAlive



Get started building labAlive apps

Give it a try and see how easy it is to build a runnable app. Take these steps to create a simulation. In this example a sine signal shall be fed into a low pass.

  • Step 1

    First look for a source that generates the wanted signal. Use any of the waveforms or sources listed below. Let's take a sine waveform and type in:


    first step simulation
  • Step 2

    Now the signal is input to the next system for further processing. Use any system name listed below to create an instance. Here we take the lowpass. To connect a system type in ' - ' and the subsequent system's name. Optionally proceed with further systems.


    second step simulation
  • Step 3

    The signals can be analyzed with measures. The oscilloscope, "scope", shows the signal over time what is useful for our lowpass experiment. You can just open any measure interactively at runtime. This script opens all scopes right from the start. All its parameters are set to default values.


    third step simulation
  • Step 4

    To adjust specific system settings, use an extra line in the format 'system method value'. However, you can change all settings manually interactively at runtime.


    fourth step simulation

Now start and create your very own simulation. The following table gives an overview of usefull systems.

Basic systems

Create your own simulation app on the fly!

Give it a try and see how easy it is to build a runnable app. Connect systems and start. labAlive text looks like a simple programming language. Please note that the documentation is in progress...

Enter your simulation description:

Available waveforms:

Available sources:

Available systems:

myLabAlive - examples

Hello World!

Create a sine wave
Show sine wave in a scope.
Show sine wave signal s(t) in a scope.

 

System chain

Systems are connected to a chain.
Systems are connected to a chain.
Additional spaces and explicit sink.
Two system chains and adder.

 

Initialization

Create sine wave of specific frequency and amplitude.
Same as above using explicit method names.
Initialization of systems (in separate line).
Same as above with inline initialization.
Same as above with inline Lowpass constructor (parameter cutoff frequency)
Gain has a one parameter constructor.
Brackets might be used. Equivalent to expression above.

 

Active

Example for user interactive scope settings
Initialization of systems (in separate line).
Fourier transformation example.

 

Measures

Spectrum analyzer settings are done using 'spectrum'. It is the general setting for all spectrum analyzer.
Scope settings are done using 'scope'. It is the general setting for all scopes.
A special scope setting can be set for a system's out signal. Note that it inherits prior general settings for all scopes.
Same as above.

 

Further

constructor with parameter followed by method call
constructor with parameter followed by method call
constructor with parameter followed by method call
A special scope setting can be set for a system's out signal.
Two system chains and adder.
x
x
x

 

Basic systems

In order to make using labAlive for the first time as simple as possible, the following chapter shows you an overview of basic systems. With these systems you are able to construct simple simulations.

Signals & waveforms

  • sine
  • cosine
  • triangle
  • sawtooth
  • square
  • dc
  • randomSquare
  • LaplaceDistributed
  • DiracDelta
  • SignalGenerator
  • SineGenerator
  • GaussianNoise

Pulse

  • sinc
  • sinc2
  • Pulse
  • ExponentialPulse
  • SqarePulseGenerator
  • TimeLimitedPulse

Filter

  • Lowpass
  • RcLowpass
  • GaussLowpass
  • RectLowpass
  • RectBandpass
  • RectHighpass
  • RectPass

Else (need better name)

  • adder
  • multiplier
  • multi
  • splitter
  • sink
  • delay
  • gain

Measures

  • scope
  • multimeter
  • spectrum
  • powermeter

Preferences (Diagram- Settings)

Simulations can use a graphic-based measuring device e.g. oscilloscope or spectrum analyzer. Most times, default settings fit the purpose.

But to give the user the chance to change the settings, labAlive has implemented the preferences menu. Picture 1 shows the variety of functions. Every function is listed in the tables 1 & 2 with the given options.

Picture 1: Preferences GUI
Table 1: Spectrum analyzer settings
Minimum Maximum
XY-meter beam stroke 0.3 10
Selfhtml Selfhtml
XY-meter subdivisions 1 10
Selfhtml Selfhtml



Table 2: Given options of the preferences menu
Preferences
Setting Options Example
XY-meter beam stroke

Hover over the setting to see the changes

1.0pt - 10.0pt
XY-meter presentation

Hover over the setting to see the changes

🛈 The Presentation-designs are a combination of the following preferences

Measure

Diagram

Scope R

Scope T

Diagram w/o Grid

Diagram script

Squared paper

Graph paper

Plot

XY-meter Colors

Hover over the setting to see the changes

black-white-gray

black-white-black

yellow-black

yellow-green-black

black-white-pink

black-white-cyan

red-black

random beam color

XY-meter Style

Hover over the setting to see the changes

Measure

Measure-small

Scope T

Scope R

Diagram

Diagram-small

Diagram w/o Grid

Diagram plot

Plot axes only

Curve only

Axes & grid

Axes

XY-meter Stroke widths

Hover over the setting to see the changes

fine

x-fine

fine & bigger font

bold

bold & bigger font

x-bold

xx-bold

xxx-bold

XY-meter grid

Hover over the setting to see the changes

fine dash

dash

dotted dash

solid

XY-meter unit-line

Hover over the setting to see the changes

bold

grid

normal

Signal generator - operate and control

The signal generator is one of the key instrument for the simulations. The basic function of a signal generator is to provide a waveform. Table 1 contains a preview available waveforms.

For a better overview of waveforms, check out the waveform website.

GUI signal generator
Picture 1: GUI signal generator
Table 1: Overview of signal generator settings
Signalgenerator
Amplitude Changes amplitude.
Frequency Adjust frequency
Output Turn signal generator output on / off.
Waveform

sine

cosine

triangle

sawtooth

square

dc

random square

laplace distributed

dirac delta

TextCode fuer Oscilloscope Demo

TextCode fuer Oscilloscope Demo
TextCode fuer Fourier transforms
TextCode fuer LTI system example:RC-lowpass
TextCode fuer AM example: Amplitude Modulation
TextCode fuer Signal Spectra 1
TextCode fuer Signal Spectra 2

zu Fourier transforms

Centerfrequency einstellen!(Spectrum)

zu LTI system example:RC-lowpass

Simulation Speed!c

zu AM example: Amplitude Modulation

Draw Funktion noch implementieren

zu Signal Spectra 1

Draw Funktion noch implementieren

zu Signal Spectra 2

Window Funktion und Filter length stimmen nicht überein

How o change the signal

sine

spectrum draw Dirac amplitude 0.2 show frequency 2e3

List of waveforms

The table contains all common waveforms. Use this table to get an overview of various waveforms. The corresponding code can be used to simulate the waveform.

Name Form Code
sine sine sine show scope
cosine cosine cosine show scope
triangle triangle triangle show scope
sawtooth sawtooth sawtooth show scope
square square square show scope
dc dc dc show scope
random sqare randomsquare random square show scope
laplace distributed laplace laplace distributed show scope
dirac delta dirac dirac delta show scope