06-21-2017 01:18 PM
Hello,
I think the logic is straightforward, but I cannot figure out. I want to have a start value, an increment, a stop value, and a wait time between each increment and output the value each time after the increment. Let's say, if I start at 200 with an increment 10 and ends at 300, I want to have a value each time starts at 200, send to my other part of the code and wait for few seconds as I need to attach the value to a string to command a device to move, and then go to 210 send out again, and continue. I tried to use a while or for loop but the output will be an array not a value each time. Is there any simpler way to do this? Thank you.
06-21-2017 07:14 PM
Attach a VI of what you have tried so far and we can take a look at what's happening.
06-21-2017 08:13 PM
In 2016 and later you can use Channel Wires. Although I'm not very familiar with them, they're supposed to be (as far as I can tell) a simpler form of Queue/Notifier.
If you don't have 2016/7, and so can't use Channel Wires, you can look at a Queue for your use case. This then effectively becomes a Producer/Consumer setup.
White papers can be found at those links which explain in more detail.