11-18-2014 05:44 PM
Hi All,
I have a question about how to report multiple results. Here is my setting:
Please see my attached VI
Thanks in advance,
Solved! Go to Solution.
11-18-2014 05:50 PM
I don't see what your question is. Doesn't something not quite work they way you want?
11-18-2014 05:57 PM
My question is how to report multilple results such as the total of T1+T2 or the product of T1*T2, etc..Yes, my VI does not work the way I wanted.
11-18-2014 06:04 PM
I'm thinking that I need to save the result of test1 and test2, then recall them back to do any cases that I want, but I don't know how at this point.
11-18-2014 06:13 PM - edited 11-18-2014 06:27 PM
That would be because you need some getting started training.
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
The basic problem is that there are no memory elements (Feedback Node or Shift Register) to hold the data from multip[le runs
If you select "Test 1" the default data for "Test 2" (a ZERO) is output from the first case structure. Vice-versa if you select "Test 2"
A pair of Feedback nodes wired through the case structure are needed to "Remember" the last test value.
Somethimg like this would work much better
attached in 2011
11-18-2014 09:06 PM - edited 11-19-2014 12:06 PM
@JÞB wrote:
Somethimg like this would work much better
I think the two enums need to be inside the event, else you get a stale value of the control that fired the event. The terminal got read at the start of the iteration and that's all you get from the tunnel when the event triggers. Once the terminal is inside the event, it will get read once the event has fired and the new value is now available.
There is also the problem that the initial result is not displayed until there is a value change in a control.
11-19-2014 11:41 AM
Hi Jeff,
Thanks for your help.
Feedback nodes is a key to crack my head. I already thought about Shift Register, but it did not work out.
11-19-2014 11:45 AM
CP_AT wrote:Feedback nodes is a key to crack my head. I already thought about Shift Register, but it did not work out.
Thinking about shift registers should always work. Implementing them in LabVIEW requires understainding of them. Show us what you tried and we explain what went wrong. 😉
11-19-2014 12:02 PM - edited 11-19-2014 12:03 PM
11-19-2014 12:38 PM
In my real case, I can't use the loop, so the shift register does not apply to it. Truly, I appreciated all your enthusiasm to help out the labview users.
Using the forums is the best way to learn and understand the meaning of each element because it’s real problem, real guru. Fun to learn this way!