LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i seperate digit in array

0 Kudos
Message 1 of 11
(4,043 Views)

Is this homework?

 

Feed the array of numeric into a For loop with three conditional output tunnels. Wire the index array values to all three conditional tunnels.

 

Inside the For loop wire the numeric to three "Inrange" functions where the limits of the Inrange are set for each of the three ranges. The "inrange" value returned from each of the three inrange functions can then drive the condition terminal of the tunnels.

 

As the For loop iterates the value will be placed in which ever of the conditional output tunnels that it belongs in.

 

Have fun!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 11
(4,033 Views)

Yes its my homework but i don't understand you. Can you give me Photo? 

0 Kudos
Message 3 of 11
(4,023 Views)

@orhnglsn wrote:

Yes its my homework but i don't understand you. Can you give me Photo? 


I can but I will not since it will not do you good and it may harm me or other LV developers.

 

Start searching for the times I mentioned and try putting it together yourself. When you get stuck post an image or the code you have and tell us where you are stuck.

 

You will learn much more by doing it yourself than anything I could possibly show you in a picture.

 

Ben 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 11
(4,019 Views)

Okey i understand you but i can't imagine for answer. i try many different method but i can't find answer. 

0 Kudos
Message 5 of 11
(4,012 Views)

Aside from right-clicking and constants the solution I outlined requires that you only find two things;

 

For Loop

Inrange and Coerce

 

The rest of it just wiring things up and selection the right type of output tunnels.

 

According to the images you have posted (NOT!) it appears you have not even found those two things on the palettes.

 

"if you give a man fish he will eat for a day. If you teach a man to wire a LabVIEW Program he will eat for a lifetime."

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 11
(3,998 Views)

i understand you. You are right. But its emergency. i don't have time

0 Kudos
Message 7 of 11
(3,988 Views)

You can use the log base 10 function to determine how many digits a number would have.  Round down and add 1.  (Note though that I did this once in the macro of an Access database and found that it did not calculate the log10 of the number 1000 properly.  Probably floating point precision errors in the calculation came into play.  I have not seen that kind of error in LabVIEW yet.)

 

Or you could convert the number to a string using %d and check the length of the string.

Message 8 of 11
(3,958 Views)

i first class i dont know log function if you can take Photo i Will be happy

0 Kudos
Message 9 of 11
(3,947 Views)

Mathematics >> Elementary >>  Exponential.  Called log 10.

 

Or use the Search Palettes feature on the palette for "log 10"

Message 10 of 11
(3,944 Views)