From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(3,737 Views)
I added what I would do to the top of your orginal vi.
Tim
GHSP
Message 2 of 12
(3,728 Views)

Hi nihil,

 Check whether it will satisy your requirement....

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


Message 3 of 12
(3,726 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
(3,725 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
(3,720 Views)
This is the way I would ultimately do it. A little more simple than your orginal idea.
Tim
GHSP
Message 6 of 12
(3,716 Views)
Solution
Accepted by topic author Nihil
Here is an 8.0 version.
Tim
GHSP
Message 7 of 12
(3,713 Views)

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

 

:smileyvery-happy::smileyvery-happy:

0 Kudos
Message 8 of 12
(3,704 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
(3,699 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
(3,683 Views)