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
2 posts
• Page 1 of 1
LabVIEW to FlowStone - For and While Loops
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
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.
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
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 38 guests