05-24-2017 07:45 AM
05-24-2017 07:57 AM
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
05-24-2017 08:14 AM
Yes its my homework but i don't understand you. Can you give me Photo?
05-24-2017 08:18 AM
@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
05-24-2017 08:33 AM
Okey i understand you but i can't imagine for answer. i try many different method but i can't find answer.
05-24-2017 08:44 AM
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
05-24-2017 09:02 AM
i understand you. You are right. But its emergency. i don't have time
05-24-2017 10:13 AM - edited 05-24-2017 10:15 AM
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.
05-24-2017 10:26 AM
i first class i dont know log function if you can take Photo i Will be happy
05-24-2017 10:33 AM
Mathematics >> Elementary >> Exponential. Called log 10.
Or use the Search Palettes feature on the palette for "log 10"