Help setting up Xblite

40 views
Skip to first unread message

Travis James

unread,
Mar 26, 2012, 2:38:26 AM3/26/12
to xbl...@googlegroups.com

Hi
 
I used Xblite several years ago with some success but now I can't seem to get it going.
 
I'm using a modified version of the PID demo, I had this going back then but now it compiles OK but does not make an EXE file, also it deletes the .def file every time I BUILD
 
Attached is MODIFIED pid.x file  note this was going
 
 
 
The messages after build are - with CLEAN selected in the Compiler options
 
> Executing: C:\XBLITE~2\xblite\bin\xmake.exe -f "C:\xblite_241\xblite\demo\gui\pid\pid.mak" clean
Microsoft (R) Program Maintenance Utility   Version 1.50.4048
Copyright (c) Microsoft Corp 1988-93. All rights reserved.
IF EXIST pid.def DEL pid.def
IF EXIST pid.obj DEL pid.obj
IF EXIST pid.asm DEL pid.asm
IF EXIST pid.exp DEL pid.exp
IF EXIST pid.res DEL pid.res
IF EXIST pid.rbj DEL pid.rbj
COPY /B pid.lib /B C:\XBLITE~2\xblite\lib\pid.lib /Y
The system cannot find the file specified.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.
> Execution finished.
 
With CLEAN not selected
> Executing: C:\XBLITE~2\xblite\bin\xmake.exe -f "C:\xblite_241\xblite\demo\gui\pid\pid.mak"
Microsoft (R) Program Maintenance Utility   Version 1.50.4048
Copyright (c) Microsoft Corp 1988-93. All rights reserved.
goasm pid.asm
GoAsm.Exe Version 0.56.8 - Copyright Jeremy Gordon 2001/9 - J...@JGnet.co.uk
Output file: pid.obj
NMAKE : fatal error U1073: don't know how to make 'pid.def'
Stop.
> Execution finished.
 
 Can some one help please
 
Travis
pid.x

Guy1954

unread,
Mar 26, 2012, 6:15:57 AM3/26/12
to xblite
Hi James,

1. I saved your attachement pid.x in a directory ...\Test_bugs
\bug_pid,
2. loaded pid.x into XSed,
3. compiled it (function key F9) without any problems,
4. linked it (function key F10) again without any problems,
5. ran pid.exe with (withing XSed, function key F11) and it displayed
a correct screen.

Are you using a different make than the one downloaded from D.'
website?

Bye! Guy

Travis James

unread,
Mar 27, 2012, 12:08:16 AM3/27/12
to xbl...@googlegroups.com
Hi Guy

Thanks I'm now underway - I had to work in the /demo/pid folder and use the
name pid.x but that's ok

Another question how do I display "-0.1" rather than "-.1" ? I'm using
this

FOR aa# = 1.00 TO -1.00 STEP -0.20
IF (aa#<0.01)AND (aa#>-0.01) THEN aa# = 0.00 END IF '------------- force a
0 (zero)
#label18 = NewChild ("static",STR$(aa#) ,$$SS_RIGHT, 60, 0+ abb, 22, 15,
hWnd, $$IDC_LABEL, 0)
abb = abb+51
NEXT aa#

Regards
Travis

> --
> You received this message because you are subscribed to the Google Groups
> "xblite" group.
> To post to this group, send email to xbl...@googlegroups.com.
> To unsubscribe from this group, send email to
> xblite+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/xblite?hl=en.
>

gentsky

unread,
Mar 27, 2012, 1:08:57 PM3/27/12
to xblite
Hi Travis,

You can use the FORMAT$() intrinsic to control trhe look / format of
numbers.

Try this for instance:

FOR aa# = 1.0 TO -1.0 STEP -0.2

PRINT FORMAT$("*.#", aa#)

NEXT aa#

The Xblite help file gives full details of all the options

Regards,

Alan

Travis James

unread,
Mar 27, 2012, 6:19:49 PM3/27/12
to xbl...@googlegroups.com
Hi Allan


I used


FOR aa# = 1.00 TO -1.00 STEP -0.20
IF (aa#<0.01)AND (aa#>-0.01) THEN aa# = 0.00 END IF '------------- force a
0 (zero)

aaa$ = FORMAT$("+#.##", aa#)
#label18 = NewChild ("static",aaa$ ,$$SS_RIGHT, 60, 0+ abb, 22, 15, hWnd,

$$IDC_LABEL, 0)
abb = abb+51

Next aa#

Thanks
Regards
Travis

----- Original Message -----
From: "gentsky" <alan...@ukgateway.net>
To: "xblite" <xbl...@googlegroups.com>
Sent: Wednesday, March 28, 2012 3:38 AM
Subject: [xblite] Re: Help setting up Xblite

Guy

unread,
Mar 27, 2012, 8:42:56 PM3/27/12
to xbl...@googlegroups.com
Le 28/03/2012 00:19, Travis James a �crit :
Hi James,

It's better to always use the logical and (&&) in your IF statements.
Just the same, always avoid OR (binary operator) and use rather the
logical or (||).

Seems like a detail but you might stumble into corner cases for no good
reasons.

Bye! Guy

Travis James

unread,
Mar 27, 2012, 10:32:40 PM3/27/12
to xbl...@googlegroups.com
OK

Thanks

While I have you I'm trying to modify a graphic and can't find the
information that will enable me to understand what is happening.

In the below statements

set graph properties
SendMessageA (#graph1, $$WM_SET_GRAPH_LINE_WIDTHS, -1, 2)
SendMessageA (#graph1, $$WM_SET_GRAPH_STEPSIZE, 0, 2)
SendMessageA (#graph1, $$WM_SET_GRAPH_GRID_UNITS, 0, 20) ' changed
SendMessageA (#graph1, $$WM_SET_GRAPH_LINE_COLORS, -1, 0xFFFF00)

I belive the Set_Graph_Stepsixe controls the horizontal movement for each
data point. but varying the arguments has no effect. The others do change
the graph characterists but the step one does not.

At the moment the program draws a shape (sine curve) inside a graph area but
each horizontal movement is far too large to display the curves, How can I
control this?

David Szafranski

unread,
Mar 28, 2012, 3:33:27 AM3/28/12
to xbl...@googlegroups.com
Your step size must be equal to or larger than your line width. So if your line width is
2 pixels, then your step size must be equal to or larger than 2. I would try setting
the line width to 1 and then try various step sizes and see what happens.

D.
Reply all
Reply to author
Forward
0 new messages