Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I attached an example project of attempting to write values from a single ADC to two DACs. The long-term goal is to insert a filter before the second DAC and compare the analog signals, but I'm keeping this example as simple as possible for troubleshooting.
My strategy is to setup a chain of two TDs with the same source, but a different destination for each.
The attached code example has two scenarios. The first scenario only attempts to write to a single DAC, and this is successful. The second scenario attempts to write to both DACs, but only successfully writes to the second DAC, and the first DAC surprisingly remains unchanged.
This thread seems somewhat related, although the code example links are unavailable.
I'm trying to insert a code snippet of the configuration step below, but it's not being formatted correctly.
I'm going through the "Insert > Syntax Highlighting > C++" menu, then pasting my raw text in the box, but it's adding extra line breaks, removing indentation, and creating tables, which are really difficult to delete or undo. I resorted to deleting my original post due to these code snippet formatting issues.
const unsigned num_destinations = 2;
if (num_destinations == 1)
// ---------------- First ADC input to DAC
// This correctly copies to values to the first DAC