Search found 5666 matches

by dodicat
May 24, 2019 0:15
Forum: Beginners
Topic: File i/o question.
Replies: 3
Views: 132

Re: File i/o question.

Or -- Load a text file into a udt array of ubyte arrays 50, 50, and 10 (Freebasic has a problem loading to a udt array of string fields, whether fixed length strings or fixed length zstrings) When you have loaded the text file into the udt array of ubyte arrays then transfer the data to a udt of str...
by dodicat
May 22, 2019 23:01
Forum: Community Discussion
Topic: Wiindows 10
Replies: 24
Views: 968

Re: Wiindows 10

badidea wrote:
dodicat wrote:Might as well be on 1809 goatskin for all the good it is.

Code: Select all

...

If that code is meant to run on Linux, then use double for timer variables :-p

Done
It is a bit jumpy here on Linux.
by dodicat
May 22, 2019 22:09
Forum: Community Discussion
Topic: Wiindows 10
Replies: 24
Views: 968

Re: Wiindows 10

Might as well be on 1809 goatskin for all the good it is. ' FONTS Function Filter(Byref tim As Ulong Pointer,_ Byval rad As Single,_ Byval destroy As Long=1,_ Byval fade As Long=0) As Ulong Pointer #define map(a,b,_x_,c,d) ((d)-(c))*((_x_)-(a))/((b)-(a))+(c) If fade<0 Then fade=0:If fade>100 Then fa...
by dodicat
May 22, 2019 8:48
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 50
Views: 1177

Re: Creating (scientific) plots via gnuplot

The thing is gnuplot is huge (~85 MB in windows) and can be accesses via shell. But dislin is one dll file (1.387 MB) with excellent plotting capabilities, and can be used totally by a freebasic.bi binding file. (Or the .a file by marpon also via a .bi) Off topic yes, I suppose. Anyways, I have no d...
by dodicat
May 21, 2019 11:19
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 50
Views: 1177

Re: Creating (scientific) plots via gnuplot

jj2007 My origional code runs without any namespace. I suppose it is a nice idea to put #include "dislin.bi" within a namespace and pluck out only the functions needed. Regarding the scaling of the graph, looks like you can axslen(2200-500,1200) To shorten the x domain a little. The font h...
by dodicat
May 21, 2019 9:40
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 50
Views: 1177

Re: Creating (scientific) plots via gnuplot

I cannot see the screenshot on Chrome or Firefox or Internet explorer.
My microsoft edge is not working, but it no great loss.
I tried my other machine with Linux Firefox, but there is no screenshot.
I think it is just one of those days to try the lottery.
by dodicat
May 21, 2019 8:59
Forum: General
Topic: using gnuplot in Windows
Replies: 13
Views: 300

Re: using gnuplot in Windows

Srvaldez.
I got hold of gnuplot for windows.
gp526-win64-mingw.7z
It works well here with the examples.
Thank you.
by dodicat
May 21, 2019 8:18
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 50
Views: 1177

Re: Creating (scientific) plots via gnuplot

jj2007 with your code If I put namespace dislin #INCLUDE "dislin.bi" end namespace and put the underscores back on name and color your code runs fine. So what is going on with this namespace and underscore issue? Your windows template also works with a couple of warnings. Passing scalar as...
by dodicat
May 20, 2019 20:46
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 50
Views: 1177

Re: Creating (scientific) plots via gnuplot

jj2007 Perhaps your ide! Here is a windows quickrunner. Compile to .exe. click the .exe. Find your compiler via select compiler. For the dislin examples get a 32 bit fb compiler. Open, navigate to the dislin folder and choose an example (say curve.bas) press compile then run (the compile run is in e...
by dodicat
May 20, 2019 19:48
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 50
Views: 1177

Re: Creating (scientific) plots via gnuplot

You can unpack the dislin folder on the desktop. Put my above snippet into the dislin folder and run it. Then test the other examples. No sense in going anywhere near the fb distribution folders unless you want to perhaps keep hold of dislin, then pop the folder somewhere you know, as suggested, per...
by dodicat
May 20, 2019 17:35
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 50
Views: 1177

Re: Creating (scientific) plots via gnuplot

jj2007 As with freebasic in general, have the dll alongside the .bas code. So just run the code from within the dislin folder from mediafire. If you do this then the dislin.bi inside the same folder will be used. (I think I have included newdislin.bi in some examples, should be dislin.bi, you should...
by dodicat
May 20, 2019 13:22
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 50
Views: 1177

Re: Creating (scientific) plots via gnuplot

Thanks TJF. Here is some dislin code for the original voltage over current display. #INCLUDE "dislin.bi" dim as double current(...) = {120, 125, 122, 119, 134, 138, 141, 159, 162, 178} dim as double voltage(...) = {250, 210, 180, 155, 140, 125, 110, 100, 90, 80} metafl ("cons") d...
by dodicat
May 19, 2019 21:56
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 50
Views: 1177

Re: Creating (scientific) plots via gnuplot

Here is dislin for 32 bit win. https://www.mediafire.com/file/ptg394tg6xfr6kd/dislin.zip/file I have popped in the required .dll and and the .bi calling it.(although dislin.bi is in the fb distribution anyway, but asking for a different .dll). Test the examples in the folder , Dislin is an ongoing p...
by dodicat
May 19, 2019 9:52
Forum: General
Topic: Need faster Exponentiate
Replies: 21
Views: 641

Re: Need faster Exponentiate

Did anybody here actually finish Return to castle wolfenstein? I got to the village, caused some carnage and went into the pit. There I got stuck. My other machine overheats badly now, so I don't have enough time to traverse the pit. The horror of the ever speeding fan on top of everything else! Thi...
by dodicat
May 18, 2019 22:52
Forum: General
Topic: Squares
Replies: 6387
Views: 366323

Re: Squares

Not 100% sure of your requirements Albert. Here is a string tally function. Function TALLY(SomeString As String,PartString As String,a() As Integer) As Long Dim As Long LenP=Len(PartString),count Dim As Long position=Instr(SomeString,PartString) If position=0 Then Return 0 While position>0 count+=1 ...

Go to advanced search