Hello,
the quote from Wikipedia is correct in the theory, wrong in the practice.
WebAssembly itself is but an ISA which is implemented in the browser. The magic takes place a logical layer above, where frameworks such as Uno Framework can take a, say .net app, and transform it into a WebAssembly page. Of course, this transform also includes the DOM access wrapper which renders the, say, XAML in the browser.
I am currently stuck in Vienna helping my ex wife. When I come back next week, I can set up on my workstation a demo app for you.
Tam
On August 12, 2022 11:26:32 PM GMT+02:00, "Dr. David Kirkby, Kirkby Microwave Ltd" <drkirkby@...> wrote:
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
With best regards
Tam HANNA
--
Enjoy electronics, 3D printing and cigars? Join more than 21000 followers on my Instagram at