LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

easy question what puzzle me

Here is my vi,I want to get X a fixed value not a random value between 0 and 1.This is very easy question, but it really puzzles me a long time. Aha
_________________________


EZCONN TEST ENGINEER
-- --

V
0 Kudos
Message 1 of 7
(3,180 Views)
Well, then you don't really need any of the code, right?
 
Here are a few possibilities:
  • Delete everything except the X indicator, then right-click on its terminal and select "create constant". GIve it any value you want.
  • Only keep the X indicator and type in your desired constant. Now right-click it and "make current value the default". Save the VI.

🙂

0 Kudos
Message 2 of 7
(3,173 Views)

No,I want to control it in the same stucture,because i must use the value in another value.

So I want to get some suggestion how to achieve this function.

Maybe what I say is not clear enough.

Ps:I want to keep this stucture and get the value fixed 11.

_________________________


EZCONN TEST ENGINEER
-- --

V
0 Kudos
Message 3 of 7
(3,172 Views)

Then just replace the "dice" with a diagram constant of 11....or replace the "equal" with a "not equal"... or ...

(I guess I still don't quite understand what you actually want to do...)

Message Edited by altenbach on 07-26-2006 08:36 PM

0 Kudos
Message 4 of 7
(3,165 Views)
Are you expect this method.find the attahment.
 
by,
kumar.
0 Kudos
Message 5 of 7
(3,161 Views)

Your example VI and question don't make any sense. What the example VI is functionally the equivalent of just having a random number generator wired to an indicator as shown in the attachment. You really need to explain what the heck you are trying to do.

Message Edited by Dennis Knutson on 07-27-2006 07:42 AM

0 Kudos
Message 6 of 7
(3,130 Views)
If you want the constant result and the random results, you need to output to an array.  Right click the loop tunnel and select "Enable Indexing" to change the output from the last iteration of the loop to an array of all the iterations.

I changed your example to a for loop because while loops with a fixed number of iterations bug me.


Message Edited by jasonhill on 07-27-2006 09:01 AM

0 Kudos
Message 7 of 7
(3,114 Views)