Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

LabVIEW to FlowStone - For and While Loops

For general discussion related FlowStone

LabVIEW to FlowStone - For and While Loops

Postby Aeronomer » Wed Aug 27, 2014 5:07 pm

LabVIEW provides graphical for and while loops - see http://www.ni.com/white-paper/7588/en/. How do you achieve similar constructs in FlowStone? Thanks.
Aeronomer
 
Posts: 1
Joined: Mon Jul 29, 2013 3:57 pm

Re: LabVIEW to FlowStone - For and While Loops

Postby KG_is_back » Wed Aug 27, 2014 5:19 pm

It depends on what you are trying to achieve.
For static calculation I recommend using the ruby component. Ruby is very easy to learn if you have basic programing skills.

In green, while loop can be created using the "int loop" primitive or "draw loop" if the code also draws something.
In both cases the primitive outputs indexes one by one in given range and outputs trigger each time. While loop is more complicated thing to do, so I really recommend Ruby for such case.

In code components only loop that is possible is static loop (with hard-coded number of iterations which also must be power of 2). The code component was meant to calculate DSP code fast as possible so it contains very little place for any code branching.
It is however possible in assembler. That is however very risky (you may crash Flowstone with bad code very easily) and quite complicated to do.
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia


Return to General

Who is online

Users browsing this forum: No registered users and 58 guests