¿ªÔÆÌåÓý

Re: Making a Q-meter /


 

On Fri, 12 Aug 2022 at 17:29, Tam Hanna <tamhan@...> wrote:

Hi,

do NOT use JavaScript for something so complex.


WebAssembly allows you to use a real programming language. You can, for example, use C# and the Uno Framework, and then get a WebAssembly output web page which can run in ANY web browser, even on Linux and Mac OS.


Tam


It's not so complex - just tedious. I attach the specifications from the 4285A LCR meter manual. On page 8 it describes how to work out the accuracy. On page 9 you see equations for A1, A2, A3 ....A16. But only one of those is relevant. To determine what one is applicable you have to look at the graphs on pages 11 and 12. Then there's a cable length factor Ac, which depends on the length of the cables and frequency. There are other factors N1 and N2 which depend on frequency.? Another factor depends on temperature. Once you know all these factors you can work out accuracy of inductance, capacitance resistance etc. Then to work out Q you have to apply more formulas, and factors which depend on the indicated Q.

It basically becomes a big tedious mess. I would like a web page that does those calculations for the 4284A and 4285A.

Keysaid said they would consider having a spreadsheet for the newer meter. If they did that, I could probably hack it for my older meters.

I thought Javascript would be the way to create a webpage, although I admit my knowledge of web design does not extend beyond HTML and a bit of CSS. You mentioned not to use that, but use WebAssembly

According to Wikipedia at least


in the limitations section, the first item mentioned is

" In general, WebAssembly does not allow direct interaction with the . All interaction must flow through JavaScript interop."

So it seems I would need JavaScript anyway. I might as well do the rest in JavaScript, as I don't think the problem is sufficiently complicated that I would really warrant using a lange and toolset I dont know.

Dave

Join [email protected] to automatically receive all group messages.