From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to take output at different voltage

Solved!
Go to solution

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.

0 Kudos
Message 1 of 6
(2,115 Views)

Simply create an array of your random voltages and pass it into a for loop instead of your while loop.

0 Kudos
Message 2 of 6
(2,108 Views)

but i dont know how to creat array of random voltage .please me a demo vi.

0 Kudos
Message 3 of 6
(2,102 Views)

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.

0 Kudos
Message 4 of 6
(2,091 Views)

thank you . i have already done it but it's not working.  should i put this array constant inside the while loop or outside.

0 Kudos
Message 5 of 6
(2,084 Views)
Solution
Accepted by topic author jkumar.1986@yahoo.com

Outside. And I said FOR loop.

0 Kudos
Message 6 of 6
(2,064 Views)