Silverfrost Forums

Welcome to our forums

raw beginner

27 Jan 2021 12:14 #26978

Looking at your forums I must admit I wonder whether I belong here as I am effectively a raw beginner. I'm now retired but I wrote some civil engineering software in fortran back in the 80's and have this mad idea of bringing it up to date. It used MSLIB and worked well.

I'm using a 64 bit laptop and Windows 10 and have worked through your videos and help pages and, I have to say, there are a few words I understand! My immediate problem is that I am following the Clearwin 1 video which makes reference to iw=winio@('%wi', 100). When I try to replicate this exactly as on the video, I get the error message that the %wi symbol is not recognised. I am very confused!

27 Jan 2021 2:30 #26979

Have a look in your 'private messages' and you will find my offer of help.

Eddie

27 Jan 2021 2:38 #26980

FalkyBob

I suggest that you start with the tutorial that you will find in the help file ftn95.chm. You can access this directly from Plato.

Look for section called ClearWin+ and then the topic 'ClearWin+ tutorial'.

27 Jan 2021 2:41 #26981

Welcome, we are all beginners one day!

I do not know which program you ran. You can attach the source code to your reply. The problem with using a video as the 'document' is that you have to specify the instant at which one has to stop the video and copy the code that is shown. Furthermore, one cannot copy the code from the video and paste the text into a file.

My suggestion is that you compile, link and run a few character I/O programs before writing GUI programs and programs with graphical output.

If you have some of your old programs on a listing or as a file, you may attempt to run them, and we can help you with that.

28 Jan 2021 4:27 #26987

Welcome on board. I have found the forum very useful - looking at other people's code snippets and discovering ways of doing things that I have never thought about.

Below is a link to a short program that opens a window, gets some data from the user, and does some calculations on that data when the user clicks on a button.

This action initiates the callback function calc_cb. At the beginning of calc_cb a 'sense check' is performed on the data.
If there are obvious errors an error message is displayed. If there are no errors the calculation proceeds and the output is updated in the main window.

The calculation, in this case, is to estimate the leakage inductance/reactance between two concentric coils - a very basic characteristic of an electrical transformer model.

Hope this helps.

https://www.dropbox.com/s/iof1g15682es6ot/leakage_reactance.f95?dl=0

29 Jan 2021 6:24 #26988

Can I thank everyone for their response, in particular, LitusSaxonicum, who has just spent two hours giving me a tutorial covering the basics of Clearwin. I now appreciate the potential of Clearwin.

I'll try everything suggested but my tutorial from our Saxon Shore has given me the best start possible.

The code from the first Clearwin video that I used was:
WINAPP PROGRAM Actionpage INTEGER iw,winio@ iw=winio@('%wi', 100) END I still, however, get an error with %wi which is used on the video.

30 Jan 2021 7:33 #26989

Here is the minimum program that you need to get started with 'Visual ClearWin+'...

  iw = winio@('%~wi',100)
  end

Note that %wi is a recent addition to the library so if it doesn't work then you will need to download new DLLs.

However, I agree that it is probably not the easiest place to start using ClearWin+.

Please login to reply.