From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-04-2022 03:24 PM
Case structure's takes a constant and an array and multiples them. However, to create a subVI, I need to an output node. What function should I be using to accomplish this? The subVI is merely for the purpose of multiplying an array by the constant.
Solved! Go to Solution.
02-04-2022 03:35 PM - edited 02-04-2022 03:37 PM
To multiply an array by a constant, all you need is this, no subVI!
What does the case structure do?
Have you done any tutorials, e.g. to learn about the connector pane?
(You typically get much more specific help if you show us what you have, i.e. attach your VI)!
02-04-2022 04:15 PM
Sorry, I'm new and am still learning how to navigate around the forums. I'm required to use a subVI. Yes, I used the multiply function and am having trouble figuring out what to connect to the connector panel as an output to pass on data.
02-04-2022 06:04 PM
@User002 wrote:
Sorry, I'm new and am still learning how to navigate around the forums. I'm required to use a subVI. Yes, I used the multiply function and am having trouble figuring out what to connect to the connector panel as an output to pass on data.
If you are referring to your Delete2.vi, you are already outputting the value through the Out indicator, which is connected to the bottom right connector on the connector pane. From an API perspective, I would move it to be horizontally across from the In on the connector pane. This helps to visually see the data going through the subVI call.
02-04-2022 06:36 PM
There is no problem with your subVI. the output is already defined and connected in your caller.
Of course you have some real problems in the caller because your FOR loop iterates only once and your entire construct with the shift register and array appending makes no difference. With every run, you start over.
Can you explain how you are using this, what you see, and what you expect to see instead? (and no, "continuous run" should not be used). My guess is that the subVI is not the problem!