LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remplissage d'un tableau 1D dans un IF

J'ai quelques problèmes avec la création d'un tableau 1D. En effet, je cherche à ajouter un nouvel élément à mon tableau à chaque fois que j'ai une condition vrai dans ma structure condition.
Qui peux m'aider ? Est ce possible de faire en sorte que l'indexation corresponde à chaque condition Vrai de mon programme. Bref, est ce possible de faire sans loop For et While avec auto indexation


0 Kudos
Message 1 of 8
(3,053 Views)
Hello Nono.
 
To get an answer on this part of the forum, you should post in English.
I advice you to repost your topic here : http://forums.ni.com/ni/board?board.id=4170
 
Why didn't you want to use loops "for" and "while"?
 
 
Yours faithfully.

Romain D.
National Instruments France

0 Kudos
Message 2 of 8
(3,028 Views)

Hello Romain,

In fact I use a WHILE loop with a IF inside, but I want to fill in my array only for the right condition.

For the moment, the array is filled for the two conditions right and false. For the false condition, i put Pi value by default. As a consequence, after my while loop, I have to sort my array to have the element different from Pi.

That why I ask the question to know if it is possible to fill in an array without auto indexing

Best regards

0 Kudos
Message 3 of 8
(3,026 Views)
Could you attach your VI? I just want to have a look.
 
Thanks.

Romain D.
National Instruments France

0 Kudos
Message 4 of 8
(3,016 Views)
So, I've extract a part of my vi to have a simple example.
 
What i want to do is simply fill in the array only for the right condition
 
0 Kudos
Message 5 of 8
(3,013 Views)
I forgot to say that I have the basic 8.2 version of labview
0 Kudos
Message 6 of 8
(3,010 Views)
I attach this VI.
I let you have a look about it.
 
 


Message Edité par R_Duval le 01-10-2008 05:05 PM

Romain D.
National Instruments France

0 Kudos
Message 7 of 8
(2,993 Views)

Ok, It's the best solution to do what I want.

Thanks a lot

Kind regards

Nono

0 Kudos
Message 8 of 8
(2,983 Views)