07-02-2016 10:03 PM
@RavensFan wrote:Do the check inside the loop. Use a conditional tunnel to build an array of values if it is a palindrome.
I don't understand why you wired upper limit to the N terminal, and use lower limit. You are just going to figure out if the lower limit value is a palindrome a number of times in a row to equal "upper limit".
Try running your code with Highlight execution turned on so you can figure out how it works.
And use block diagram cleanup.
I have probelm for this, that why i dunno how to build to check the palindrome number in given range. for example i want find all the palindrome number in the range between 0 - 100000 like that. I first time using LabVIEW and still no idea how does it works.
07-02-2016 10:37 PM
You need to put the value you are checking into a shift register so that when increment it the next iteration, you check the next value.
07-02-2016 10:54 PM
@RavensFan wrote:You need to put the value you are checking into a shift register so that when increment it the next iteration, you check the next value.
Could you please show me the code how does it look like?
07-02-2016 10:59 PM
07-03-2016 12:05 AM
@RavensFan wrote:this
The number of times is it my end of number range? How i going to display all the number in the range between example 0- 99999? am i did the wrong code?
07-03-2016 12:28 AM - edited 07-03-2016 12:33 AM
@Ambrose1464 wrote:
@RavensFan wrote:this
The number of times is it my end of number range?
Yes
How i going to display all the number in the range between example 0- 99999? am i did the wrong code?
Look at my picture again. You did not put in the condtional auto-indexing tunnel.
The Equals to check if the number is a palindrome is part of the check to see if it is a palindrome and belongs in the frame I showed, not outside of everything.
Have you been running the code with highlight execution on to understand how it works? I don't think you have, otherwise you'd have an idea as to why what you have now doesn't work and could fix it.
Also, in that inner while loop, make both of the 10 constants blue integer data types.
07-03-2016 01:47 AM
@RavensFan wrote:
@Ambrose1464 wrote:
@RavensFan wrote:this
The number of times is it my end of number range?
Yes
How i going to display all the number in the range between example 0- 99999? am i did the wrong code?
Look at my picture again. You did not put in the condtional auto-indexing tunnel.
The Equals to check if the number is a palindrome is part of the check to see if it is a palindrome and belongs in the frame I showed, not outside of everything.Have you been running the code with highlight execution on to understand how it works? I don't think you have, otherwise you'd have an idea as to why what you have now doesn't work and could fix it.Also, in that inner while loop, make both of the 10 constants blue integer data types.
chane to this?
07-03-2016 02:17 AM
What is the point of the boolean control?
07-03-2016 02:42 AM
i'm confusing. I totally no idea how to display the palindrome number range example between 0- 99999
07-03-2016 10:17 AM - edited 07-03-2016 10:18 AM
Ambrose,
I'm puzzled. You appear to be taking a class in LabVIEW, as this sounds like an interesting Homework Assignment, yet you seem to know almost nothing about LabVIEW, the common Structures (While Loops, For Loops, etc.), how arrays behave, the principles of Data Flow, and other topics that should have been covered in the first few classes.
Have you spent any time with the Tutorial material listed on the upper right corner of the LabVIEW Forum's first page? You can also do a Web search for LabVIEW Tutorials -- a number are videos.
To help you get started, I'm attaching Project Palindrome, a LabVIEW Project (which you probably don't know about) that contains three VIs -- Find Palindromes (which directly returns an array of all the Palindrome integers up to some "Top" Integer), a sub-VI, Is Palindrome, which tests an Integer and returns a Boolean (True if it is an Palindrome), and another sub-VI, Reverse Digits, that returns the reversed-digit version of its input integer.
These are exactly the VIs I suggested to you in my reply yesterday. One of my colleagues showed you something similar to my Find Palindromes, but included a "Starting Integer" (whereas I implicitly start at 0).
Some things to note about this Project and the VIs inside:
I realize that this is probably "overkill", given your level of expertise, but I'm hoping that maybe you'll take an interest and apply yourself to learning LabVIEW by doing some work, yourself, instead of coming to us and asking us to do it for you. And if not, maybe another student who might follow this thread will learn something useful ...
Bob Schor
P.S. -- oops, almost posted without the attachment ...