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.
04-30-2014 06:53 PM
I have been putting together a calculator on labview, which works except for when I input a second number the calculator doesn't produce the correct value if the second number is more than 1 digit. I believe this is down to the use in shift registers and the fact the operation is forgotten when a button is pressed. I've attached the programme, if anybody could confirm that this is the problem / suggest potential methods around this problem that would be a great help
Solved! Go to Solution.
04-30-2014 07:05 PM
Use Default if Unwired. Several of your tunnels are set this way, including the orange (double precisions) wire where you are storing your first operand.
If you execute an event where a wire is not wired through, the tunnel will output the default value (empty for string, zero for double), and the shift register will then forget whatever it originally had in it.
04-30-2014 08:51 PM
@RavensFan wrote:
Use Default if Unwired. Several of your tunnels are set this way, including the orange (double precisions) wire where you are storing your first operand.
If you execute an event where a wire is not wired through, the tunnel will output the default value (empty for string, zero for double), and the shift register will then forget whatever it originally had in it.
I think you meant don't use Default if Unwired? I think you meant to tell him to use Linked Input Tunnel --> Create and Wire Unwired Cases instead?
04-30-2014 09:01 PM - edited 04-30-2014 09:02 PM
You're right.
Uncheck the setting on the tunnel "Use Default if Unwired"
I wasn't thinking of Linked Tunnels at all. Just that they need to wire through all the cases. Of course Linking the tunnels and setting that to wire them is the more automatic way of doing it.
05-01-2014 05:12 AM - edited 05-01-2014 05:14 AM
Thank you! The programme works perfectly now!