Hi, I am receiving integers on a few DCSourceInt modules and I would like to be able to select between different submodules to output to subsequent stages. Are there some logic modules or other modules available to accomplish this? Any examples or something similar available online?
6:26pm
Hi Shaikath,
Sorry if I misunderstood your question, but I've attached an example of what I think should help you. We have a module called 'Param Set' (We have a Param Get module as well) that will set a variable of another module. You'll find an argument in the arguments tab of the 'Param Set' properties called modVar. This takes an argument in the format module.variable. Here you'll enter the variable of the module you want to set. In the case of the example .awd I've provided, a DCSourceInt module is feeding the Param Get module, which feeds another DCSourceInt (in this case it is in the same top level hierarchy, but it could be anywhere in the design), that feeds the control pin of a Mux. From the DCSourceInt>ParamSet Module pair, you can change which subsystem you want to send out.
Please let me know if that helps you out at all. If it doesn't, feel free to elaborate or edit the design to help illustrate what you mean.
Thanks,
Kevin