Skip to content

Loop recognition #42

Open
Open
@philipstarkey

Description

@philipstarkey

Original report (archived issue) by Jan Werkmann (Bitbucket: PhyNerd, GitHub: PhyNerd).


Loops in experiment scripts should get recognized an not waste Pulsblaster commands.
If we do something like the following code we quickly reach the maximum commands of the Pulsblaster this is suboptimal.

#!python

start()
t = 1
for i in range(2000):
    digitaloutput_name.go_high(t)
    t += 1
   digitaloutput_name.go_low(t)
    t += 1

stop(t + 6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions