12/21/2021 12:52 PM | |
Joined: 6/19/2017 Last visit: 9/6/2024 Posts: 8171 Rating:
|
New question published by bulek is split to a separate thread with the subject How can write to analog output from several places?. Best regards |
12/30/2021 11:05 PM | |
Joined: 12/13/2021 Last visit: 1/3/2022 Posts: 23 Rating:
|
Hello, made some progress. Have created 16 state machine, each state with settable duration in seconds. In each state, custom value is on analog outputs. State machine cycles from last state back to first one, as long as enable signal is on. Also, trigger happens when Enable goes to 1. Have I done this right ? Can it be done more optimal (less blocks) ? I still don't now if I can implement 2-stage analog MUXes in more optimal way and with UDF ? Thanks in advance, regards. AttachmentTimedScene16_v1.zip (933 Downloads) |
1/2/2022 5:51 AM | |
Joined: 12/18/2014 Last visit: 9/16/2025 Posts: 35964 Rating:
|
Here's a example for 16 scenarios with UDFs. For every analog output you need 2 UDFs, total 14 UDFs for 7 analog outputs. In every UDF you can change 8 parameter values. In the screenshot you see how many blocks uses the program etc.. Attachment16_scenarios_for_7_analog_outputs_0BA8.Standard.zip (796 Downloads) |
This contribution was helpful to
2 thankful Users |
1/2/2022 11:57 AM | |
Joined: 12/13/2021 Last visit: 1/3/2022 Posts: 23 Rating:
|
Wow, thanks for the example. Will analyze it and learn from it. And maybe ask few questions Regards.
|
1/3/2022 1:59 PM | |
Joined: 12/18/2014 Last visit: 9/16/2025 Posts: 35964 Rating:
|
Here's a new version with a random selecting of the scenario number.
AttachmentTest.zip (783 Downloads) |
Follow us on