LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fraction to integer

Hi
how to multiply a fractional voltage with integer voltage value ??
i mean i want to represent say a voltage like 1.234 , how can i do that ??
thanks
 
sridhar
0 Kudos
Message 1 of 12
(4,134 Views)

I am not sure I understand.  You can multiple integers and doubles together and you will get a double result, simply wire them into the multiple function.

As far as how to "represent" them, if it is fractional I would suggest a double.

 

I am not sure this is actually what you are asking though, so if you have some example code we can look at that or help us understand what you are trying to do.

0 Kudos
Message 2 of 12
(4,126 Views)

let me ask some thing in this regard

i want to multiply an input voltage os 2 volts with 0.125 , how can i do that in labview??

0 Kudos
Message 3 of 12
(4,118 Views)
0 Kudos
Message 4 of 12
(4,111 Views)
Hi tul,

you can do it like this:

Message Edited by GerdW on 11-02-2006 05:26 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 12
(4,110 Views)
whats the story when i am targeting an FPGA ??? i mean it is not supporting DBL precession !!!!!!!!
0 Kudos
Message 6 of 12
(4,100 Views)
Just use a lower precision.

I would suggest cracking open the LabVIEW User Manual and going through some LabVIEW tutorials as your question is extremely basic. I would suggest looking at some of the online information regarding LabVIEW. Take a look at the second post in this article for several links.
0 Kudos
Message 7 of 12
(4,090 Views)
Hi tul,

aahh, there's a special condition! You didn't tell in your first post...

Does FPGA support SGL? RTFM!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 12
(4,086 Views)
i did not get you quite well what does SGL mean
0 Kudos
Message 9 of 12
(4,079 Views)
Hi tul,

that's what smercurio is talking about: SGL is a different floatingpoint-format which is just using less precision...
And please do as smercurio and me is telling you: RTFM!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 12
(4,073 Views)