02-17-2013 11:29 AM
hi i have a vi in through which i want output at particular voltage for example at 1 , 4 , 7 , 11 volt instead of increasing voltage (1, 2,3,4..),what kind of input control should i use in while loop. please help. i have attached vi.
Solved! Go to Solution.
02-17-2013 12:00 PM
Simply create an array of your random voltages and pass it into a for loop instead of your while loop.
02-17-2013 12:32 PM
but i dont know how to creat array of random voltage .please me a demo vi.
02-17-2013 12:35 PM
Then you need to see the basics here. You simply go to the array palette and first drop an Array Constant on the block diagram and then drop a numeric constant inside the array.
02-17-2013 12:46 PM
thank you . i have already done it but it's not working. should i put this array constant inside the while loop or outside.
02-17-2013 01:07 PM
Outside. And I said FOR loop.