LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IF [then] ELSE [void]

Solved!
Go to solution

Hello people. I need help figuring this problem out. 

 

IFthenELSEvoid.jpg 

The program's input is an array of strings. and is meant to do the following:

 

for each element in the array, checks if the string begins with "$GPRMC"

if this is true, then process the data and spit a value calculated from the string.

else, void (i.e.: not to generate an output value because it spoils the calculations)

 

i've attached a simplified version of the actual VI. [I'm running on 8.2] 

 

 

 

 

 

0 Kudos
Message 1 of 12
(4,563 Views)
I added what I would do to the top of your orginal vi.
Tim
GHSP
Message 2 of 12
(4,554 Views)

Hi nihil,

 Check whether it will satisy your requirement....

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


Message 3 of 12
(4,552 Views)

thank you guys!

can't see any of them (i have labview 8.2)

maybe an image? 

Mensaje editado por Nihil
0 Kudos
Message 4 of 12
(4,551 Views)

Hi,

  I think i uploaded 8.5 version.here is the 8.2 version.

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


Message 5 of 12
(4,546 Views)
This is the way I would ultimately do it. A little more simple than your orginal idea.
Tim
GHSP
Message 6 of 12
(4,542 Views)
Solution
Accepted by topic author Nihil
Here is an 8.0 version.
Tim
GHSP
Message 7 of 12
(4,539 Views)

Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

:smileyvery-happy::smileyvery-happy:

0 Kudos
Message 8 of 12
(4,530 Views)
You are welcome. Did you understand what I did? I would like to think that you are learning from what I have shown you.
Tim
GHSP
Message 9 of 12
(4,525 Views)

yes, instead of modifying the original array you created a new one. and to that new array inserted the elements in the old one that matter.

don't know if this is what you wanted me to see...? 

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