LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple results

Solved!
Go to solution

Hi All,

I have a question about how to report multiple results. Here is my setting:

  1. I have 2 test
  2. I want to report the result of test 1, test 2, and total of test1+test2

Please see my attached VI

Thanks in advance,

 

0 Kudos
Message 1 of 12
(4,174 Views)

I don't see what your question is.  Doesn't something not quite work they way you want?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 12
(4,172 Views)

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.

0 Kudos
Message 3 of 12
(4,164 Views)

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.

0 Kudos
Message 4 of 12
(4,148 Views)
Solution
Accepted by topic author CP_AT

That would be because you need some getting started training.  

NI Learning Center

NI Getting Started

-Hardware Basics

-LabVEW Basics

-DAQ Application Tutorials

 

3 Hour LabVIEW Introduction

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

Example_VI_BD.png

attached  in 2011

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 12
(4,140 Views)

@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.

Message 6 of 12
(4,110 Views)

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.

0 Kudos
Message 7 of 12
(4,039 Views)

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. 😉

0 Kudos
Message 8 of 12
(4,031 Views)

Here's a simple shift register implementation (LabVIEW 2011).

 

Download All
0 Kudos
Message 9 of 12
(4,021 Views)

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!

0 Kudos
Message 10 of 12
(4,007 Views)