06-18-2012 12:23 PM
I want to make a VI that allows the user to press a button control and then a sequential list of numbers appear in an array. Then when the user presses the same button, the next sequence of numbers appear.I will have an array of 25 numbers. So when the user hits the button control, first the numbers 1-25 appear; when the user hits the button control again, the numbers 26-50 will appear in the same array; then 51-75, 76-100, etc.
Can someone post some code of how I can do this?
Thanks.
06-18-2012 12:28 PM
Have you tried writing any code to do this on your own yet? For a relatively simple task like this, you will get more help if you post your code demonstrating that you've already made some effort.
06-18-2012 12:28 PM - edited 06-18-2012 12:30 PM
That looks like homework. What have you tried so far and where did you get stuck?
06-18-2012 01:33 PM
Just to get you started, I would start with an empty array. Use the Empty Array? function to select a case in a case structure. If the array is empty, initialize the array. If you have data, add 25 to all of the elements. If you desire more help, you need to show that you made an effort. There is the general consensus here that we do not give hand outs. If you get stuck somewhere, show us where and we can help you learn.
06-18-2012 02:14 PM
You were very specific in your needs, so my solution only speaks to that. See if you can think of a more efficient way. We really wish you could of posted some of your own code 😉
*See attached png
-chazzzmd
06-18-2012 02:21 PM
Thank you all for your responses. This is actually for my job. We are getting Labview to run our test fixtures; it is a slow process making the change over from our normal way of running test fixtures to getting Labview to run them. I am heavily involved with this so I am slowly getting into it. My knowledge of labview is soley based on literature, so I am new to a lot of things concerning labview. I will get my code that I tried to do on here when I get the chance. I will also use what you all have given me.
Thanks Chazzzmd for that example. That gives me a good start on this issue, as I was having a total programmer's block.
06-18-2012 03:05 PM