LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i convert from one range to another with array for analog out of usb6008

hello,
i made a block diagram as shown at the attachment to convert frequency values (range from 2 to 3, increment 0,1),which are selected from a horizontal pointer slide control of front panel, to voltage values (range 0-5V, increment 0,5) for analog outputs of my usb6008. The way i made this conversion is a mathematical way. HOW CAN I MAKE THIS CONVERSION WITH ARRAYS, OR SOMETHING ELSE? Sorry for my english.I 'll appreciate any help.Thanks
 
STERGIOU KOSTAS
0 Kudos
Message 1 of 5
(2,793 Views)
duplicate post and this question is confusing. What exactly do you need an array for? You have a static frequency value with nothing related to a range or increment. If that is what you want to generate, you can easily do this with a for loop or the Ramp Pattern function. This array cound then be converted to another array if that is what you need. I would think you would want to do this outside the existing loop.
0 Kudos
Message 2 of 5
(2,782 Views)

ok wrong question.I want to match 10 different frequency values to 10 different voltage values.For example 2.3 GHZ to 0.5V, 2.4GHz to 0.63V, 2.45GHz to 1V, 2.5GHz to 1.25V etc.

so that i can choose the frequency from a control on the front panel and take the voltage from the analog output of usb6008 

0 Kudos
Message 3 of 5
(2,780 Views)

Okay, if you want to pick from a list and output a voltage (take implies reading a voltage), then a simple way is to have a ring control with the frequency values as the list of items and use it to index an array of your voltages.

Message Edited by Dennis Knutson on 12-05-2006 10:42 AM

0 Kudos
Message 4 of 5
(2,773 Views)
Thanks a lot Dennis, if i have any new problems i `ll post again. Goodnight from Athens
0 Kudos
Message 5 of 5
(2,760 Views)