11-16-2011 01:44 PM - edited 11-16-2011 01:48 PM
Thats exactly my point. I am not asking you (ni community) to solve my homework/thats not my policy.
I just want to learn new programming skills and to understand more LabVIEW inorder to know how to tackle these problems next time I face them.
Further,
the problem was solved from the first 7 replies yet I'm still asking question regarding altenbach's programing.
11-16-2011 01:46 PM
@A.A.A. wrote:
I have mentioned here thatI had a homework but I needed help in it.
You did not say it was homework until I forced the issue. Remember what I said about honesty? There's a big difference between asking a specific question and mentioning it's homework and simply asking a question and not saying "oh, by the way this is homework". The former will lead us to give you hints instead of providing you full solutions, as has been done not only here, but in the other thread as well. The latter will likely get you full solutions since many people on this forum are quite enthusiastic about helping people and will provide full answers. At what point is that taking advantage of our nature?
11-16-2011 02:01 PM
I don't believe if I mentioned I had a homework or not would have made a difference. (My second new message about insert button clearly shows that I asked for help on a homework/yet I tried understanding and doing my own VI.
I had a problem with the local variables (i didn't want to use them) that doesn't mean I want the help in the entire homework but a concept in LabVIEW.
I want to clarify that I didn't mean to take advantage of your nature; future posts will CLEARLY indicate the nature of the problem.
11-16-2011 02:18 PM
@smercurio_fc wrote:
@A.A.A. wrote:
I have mentioned here thatI had a homework but I needed help in it.
You did not say it was homework until I forced the issue. Remember what I said about honesty? T
I just want to pinpoint that I was talking here about the insert button and I clearly showed there that it was a homework. http://forums.ni.com/t5/LabVIEW/Problems-with-the-quot-INSERT-quot-button/m-p/1765592#M614473
11-16-2011 04:24 PM
Yes, you stated it was homework. For the other question. Which was a different problem, as far as one could tell by simply looking at thread titles. There are dozens of messages posted on this forum on a daily basis, and often people post different questions in the same day. It's also quite possible to not see all messages. I, for one, never saw your other message (which I'm guessing you're quite happy about). What I saw were two threads called "Two equal consecutive integers", and based on the other posting it became clear this was also homework and two people were asking about it. It's not the first time, and it won't be the last.
I don't have anything against people seeking help on their homework. What I have a peeve about is people not being forthright about it in the beginning on each of their questions. I also have a peeve on people just posting near-full solutions on what are clearly homework problems, but that's a different matter.
11-19-2011 12:03 PM
@altenbach wrote:
A.A.A. wrote:If I am not mistaken the %09d format changes the number to x.xxxxxxxx
No!
A.A.A. wrote:I didn't find the palette that is linked to the Enter Your Number ID, but I think we subtracted the 48 due to the 8 digits (represented as hexa decimal) after the decimal point. The maximum distance between 00000000 and 77777777 is 48
No!
altenbach, why did you subtract by 48? What does the format %09d do? I couldn't find it in the functions nor use the help.
11-19-2011 12:29 PM - edited 11-19-2011 12:31 PM
A.A.A. wrote:: What does the format %09d do?
I already said it! In an early post above I said:
"Since the ID input has 9 digits, use a format of %09d to display all leading zeroes. (if the possibility exists that longer numbers are entered, you should also set input limits)"
Do the experiment! What you should do is create a string indicator after the format statement, and play around with the format and ID number to see how the output changes.
For example, try formats of %9d, %012d, and %d with numbers of 12345678, 1234, and 0.
A.A.A. wrote:: why did you subtract by 48?
Again, create an array indicator at the output of the subtraction (right-click...create indicator...resize to show all elements) and see what happens if you subtract a diifferent number (e.g. zero). 😄 Now study the ASCII codes table. All clear now?
11-19-2011 12:57 PM
Yeah I found the palette; its clear now
thank you
11-19-2011 01:08 PM
@A.A.A. wrote:
Yeah I found the palette; its clear now
I am glad that things are clear now, but I have no idea what these two questions have to do with the palette. 😉
11-19-2011 01:22 PM
I saw your ID numberMOD3.png
and I couldn't understand what the function that is attached to "Enter your ID number" (I found it an hour ago; format into string)
and I wasn't sure about what it does; paintings don't explain as much as VIs as I couldn't use context help.
After I found format into string function its clearer.
ty