Hello to all,

please, can me somebody help with tis math calculation in VB6:

I have 2 textbox, in first go Vmeasured, in second then come calculation Pout done with button. Here is this math calculation:

Thank you very much for help!

# Help for math calculate?

Page 1 of 1## 6 Replies - 1119 Views - Last Post: 16 October 2013 - 03:04 PM

##
**Replies To:** Help for math calculate?

### #2

## Re: Help for math calculate?

Posted 16 October 2013 - 01:21 PM

.. what sort of help are you looking for? All of that is found in the math namespace/library.

### #3

## Re: Help for math calculate?

Posted 16 October 2013 - 01:57 PM

Ok, I think I found solution. Please, anyone confirm me that is ok?

Private Sub Command1_Click() a = Text1.Text b = ((a + 0.55) / Sqr(2)) ^ 2 / 50 Text2.Text = b End Sub

### #4

## Re: Help for math calculate?

Posted 16 October 2013 - 02:01 PM

What happens you when you put a value in? Do you get the expected results?

### #5

## Re: Help for math calculate?

Posted 16 October 2013 - 02:37 PM

Problem is that I do not know what results must be.

This formula is to get mWatts from radio transmitter antenna, readed with RF probe sonde and measured with Digital Volt Meter that give result in mV.

I have try to measure one transmitter, and on the end I have on my Digital Volt Meter value of 100 mV, and this math calculation give me 101 mWatts (that is I think near real measurement).

Sorry for my English.

This formula is to get mWatts from radio transmitter antenna, readed with RF probe sonde and measured with Digital Volt Meter that give result in mV.

I have try to measure one transmitter, and on the end I have on my Digital Volt Meter value of 100 mV, and this math calculation give me 101 mWatts (that is I think near real measurement).

Sorry for my English.

### #6

## Re: Help for math calculate?

Posted 16 October 2013 - 02:40 PM

Okay.. step back and just look at the forumula. If you pump a few different values in there - by and - and then in your code snippet do they appear to be the same?

### #7

## Re: Help for math calculate?

Posted 16 October 2013 - 03:04 PM

No, then value is not the same, when I do this.

Page 1 of 1