03-09-2016 11:24 AM
So Im trying to figure out what to do next. I need to create a lottery generator simulator. Numbers must be betwen 1-69 and they cannot repeat.
03-09-2016 11:36 AM - edited 03-09-2016 11:37 AM
You posted a blank VI, are you kidding? This is not the place for you to post your homework. You could have at least gone to the effort of putting down some controls/indicators to show how you wanted the user interface to look...
Try taking some LabVIEW tutorials, think about the code you need to produce (e.g. try to explain it in pseudocode / draw a flow chart) and then implement it.
Then, and only then, come back to us once you have specific questions about your VI.
03-09-2016 11:53 AM
Go meet up with Carlos_111. You two must be in the same class.
http://forums.ni.com/t5/LabVIEW/LabView-Help/m-p/3264723
He might have gotten a little farther along. At least you knew enough to create a meaningful subject title for your message.
03-09-2016 12:37 PM - edited 03-09-2016 12:45 PM
This will work, but I can't guarantee that it will be the simple solution your teacher is expecting:
This is a Snippet! Drag it to your LabVIEW block diagram to import the code directly.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
03-09-2016 12:53 PM - edited 03-09-2016 12:54 PM
James,
You are answering questions that are supposed to be homework assignments for these people. Do you really want to just hand them answers? Wouldn't you rather have them learn how to do something? When someone graduates and applies for a LabVIEW job at your company, would you want to hire someone who got an easy A because they were given the answer as opposed to someone who tried to learn?
I've marked your post as spam so that it can be quarantined.
03-09-2016 01:03 PM - edited 03-09-2016 01:04 PM
@RavensFan wrote:James,
You are answering questions that are supposed to be homework assignments for these people. Do you really want to just hand them answers? Wouldn't you rather have them learn how to do something? When someone graduates and applies for a LabVIEW job at your company, would you want to hire someone who got an easy A because they were given the answer as opposed to someone who tried to learn?
I've marked your post as spam so that it can be quarantined.
I don't think that was handing an answer to them. It was very highly obfuscated, which I've found forces people to understand in order to use.
The last post (Guessing Game) I admit to handing out a straight answer, but that was just because it was an interesting challenge and I had fun with it.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
03-09-2016 01:06 PM
03-09-2016 01:29 PM
@James.M wrote:
@RavensFan wrote:James,
I don't think that was handing an answer to them. It was very highly obfuscated, which I've found forces people to understand in order to use.
The last post (Guessing Game) I admit to handing out a straight answer, but that was just because it was an interesting challenge and I had fun with it.
Ummm. Here's a snippet. Drag and drop it to a VI. There's your answer. It works. It doesn't matter how obfuscated the answer is, it is still giving them the answer.
It's okay for you to have fun and work the challenge. But don't do it for someone who is supposed to be doing it as part of their learning. The OP would probably be violating their school's code of ethics if they proceeded to use it.
03-09-2016 01:35 PM - edited 03-09-2016 01:36 PM
Ok, I get it.
Solrac, this code will work, but is highly obfuscated. I suggest you look closely and figure out how it works in order to help you understand the wide range of possibilities of LabVIEW and how there is a wide range of ways to get to the same answer.
This is NOT a Snippet! Just an image.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
03-09-2016 01:38 PM - edited 03-09-2016 01:39 PM
Okay. So it is not a snippet. It is still an answer.
Quit doing their homework for them !