08-02-2012 09:00 PM - edited 08-02-2012 09:02 PM
hi ..
i want the labview to be able to execute ((loop one )) ten time on((( each value))) from loop two..
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
each sample from signal from loop two enter loop one and on this sample i will excute ten time .
any change i accept..
thank in advance
mustafa
(( figure that attached below ))
Solved! Go to Solution.
08-02-2012 09:34 PM
mangood wrote:i want the labview to be able to execute ((loop one )) ten time on((( each value))) from loop two..
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
each sample from signal from loop two enter loop one and on this sample i will excute ten time .
I have no idea what that means. Is this some kind of text based code? What do the colors mean? What to the parentheses mean? Maybe you could explain it by writing an english paragraph instead.
Your VI picture makes very little sense. Maybe you should start with a few simple tutorials.
08-02-2012 11:24 PM
sorry.
Again with diffrent figure
in (loop two) suppose that contain a wave generatore that i take a sample from it at each 1 second
then this sample go to (loop one) then here i will compare this sample with random value ten time to produce stream's of 1's and 0's
that exact what i want stream's of one's and zero's for each value of one sample.
thank
08-02-2012 11:36 PM
1. Eliminate the sequence structure.
2. Eliminate the first while loop that is only running once.
3. Change the tunnel going into the second while loop to be a regular tunnel instead of auto-indexing. (This will actually happen automatically.)
4. Look at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
08-03-2012 12:42 AM
hi
first i would to thank alot who help me
i solve it my brother in this vi excute it with highlight feature .
08-03-2012 01:04 AM - edited 08-03-2012 01:05 AM
Your code still makes absolutely no sense. You are autoindexing on a while loop and since the while loop stop after one iteration, you never see the rest of the data. So what's the point?
08-03-2012 03:07 AM - edited 08-03-2012 03:13 AM
my point is that i looking to built a multiplayer by use only one gate based on what is called stochastic logic.
i will post the entire project after completing it ,since this is my first try on labview so many error will be happen and i try to avoid it as possible.
//////////////////////////////////////////
mustafa
08-03-2012 08:48 AM
I have no idea what "multiplayer" you are referring to, or what "stochastic logic" is supposed to mean.
You really should mark Altenbach's post as the solution to your problem rather than your own message. He was the one who first told you what was wrong with the code, and you obviously paid attention to part of what he told you.
@mangood wrote:
,since this is my first try on labview so many error will be happen and i try to avoid it as possible.
Yes many errors can occur when you first start working in LabVIEW. And the best way to avoid them is to actually pay attention to the advice you've been told by an expert rather than insisting on continuing to do things the way you are.
08-03-2012 09:06 AM - edited 08-03-2012 09:06 AM
@mangood wrote:
my point is that i looking to built a multiplayer by use only one gate based on what is called stochastic logic.
It does not matter what kind of fancy colored names you give it. You only get the first point of your square wave, which is always 0.5. You might as well replace the entire while loop with a simple index array. In fact, you can replace the entire thing with a 0.5 diagram constant and the result would still be exactly the same (see image). Are you running this once or are you using "continuos run" mode?
= same thing!
08-03-2012 09:07 AM - edited 08-03-2012 09:08 AM
It should also be noted that a lot of the numeric and comparison functions work on arrays. So your code can be reduced to