LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert values from range of frequency to range of voltage for 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 2
(2,542 Views)

Hello Stergiou,

It looks like you already have most of it worked out.  You can just change the slide that you have into an array of slides.  Believe it or not, the numeric operations will work by subtracting a scalar from the array (2) and then multiply each element of the array by 5.  This way you can just change the control going into the operations to an array.  You may also need to change your selector to use a constant array instead of a constant scalar.  I hope this helps.

Steven T.

Message Edited by Steven T on 12-06-2006 10:38 AM

0 Kudos
Message 2 of 2
(2,508 Views)