sharprain.dws, FNS Glossary

Learning APL or new to Dyalog? Ask "silly" questions here, without fear...

sharprain.dws, FNS Glossary

Postby Leo on Mon Oct 09, 2017 3:31 pm

DyalogAPL Version 15.0.27982.0 64Unicode
Windows 7

Hello DyalogAPL friends,
At the start of the DyalogAPL-FNS "Glossary" in sharprain.dws I get the following error message:
      Glossary 
⍎VALUE ERROR
MakeTable[0] Causeway.LineStyle.Solid
(In rainpro, Glossary works.)

The program sequence is shown in the following pictures:
      ∇ r←Glossary;hm;vm
[1] ⍝ Shows some basic concepts, such as chart area and margins
[2]
[3] ch.Set('style' 'boxed,xyplot,grid')('head' 'This is the Heading')
[4] ....


∇ {res}←Set vec
[1] ⍝ Override graphics defaults for (prop,value) pairs
[2] ⍝ Help ctx#620
[3] res←sp∆init
[4] CH∆SET vec



∇ {res}←sp∆init;dyalog;using;MakeTable
[1] ⍝ Set default/starting values for all chart options
[2]
[3] :If 0=⎕NC'sp'
[4] ⍙wince←'P'=1↑⊃2↓'.'⎕WG'APLVersion' ⍝ For Pocket Rain
[5] dyalog←(2 ⎕NQ'.' 'GetEnvironment' 'Dyalog')
[6] ∆homedir←dyalog,'Samples\Causeway\'
[7] ⍝ We look here for the help file rainpro.chm
[8] ∆helpdir←dyalog,'help'
[9] sp∆using
[10]
[11] ⍝ US cycles
[12] MakeTable←{⍵[;1 2 3],⍎¨⍵[;4]} ⍝ evaluate SharpPlot values
[13] sp⍙lines←MakeTable ∆lines......



The trace of the spΔinit function returns the following results in the individual lines:
      sp∆init[1]
sp∆init[2]
sp∆init[3]
sp∆init[4] 0
sp∆init[5] C:\Program Files\Dyalog\Dyalog APL-64 15.0 Unicode
sp∆init[6] C:\Program Files\Dyalog\Dyalog APL-64 15.0 UnicodeSamples\Causeway\
sp∆init[7]
sp∆init[8] C:\Program Files\Dyalog\Dyalog APL-64 15.0 Unicodehelp
sp∆init[9]
sp∆init[10]
sp∆init[11]
sp∆init[12] ∇MakeTable
⍎VALUE ERROR
MakeTable[0] Causeway.LineStyle.Solid


Probably is my sharpplot-installation wrong.
I have therefore following questions:
1. Where do come the FNS Causeway and MakeTable ?
2. How does the matrix ⍵ result in MakeTable?
      MakeTable←{⍵[;1 2 3],⍎¨⍵[;4]}  ⍝ evaluate SharpPlot values

In addition, I can not find the functions
      C:\....\Dyalog APL-64 15.0 UnicodeSamples\Causeway\ 		 
C:\....\Dyalog APL-64 15.0 Unicodehelp

with Windows Explorer

For your hints, I thank you in advance!
Best regards
Leo
Leo
 
Posts: 38
Joined: Mon Sep 18, 2017 12:10 pm

Re: sharprain.dws, FNS Glossary

Postby Vince|Dyalog on Thu Oct 12, 2017 8:55 am

Hi Leo,

I also see the problem in 15.0's sharprain.dws with sp∆init. However, Glossary works for me.

We should have updated sharprain.dws to work with the new value for our DYALOG environment variable.

That particular issue can be fixed by adding the following line after the GetEnvironment call:
      dyalog←(2 ⎕NQ'.' 'GetEnvironment' 'Dyalog')
dyalog,←'\'



In a clear workspace, you should get (Causeway) if you type Causeway in the session after doing this:
      ⎕using←',SharpPlot.dll'
Causeway


Then, you can ask for Causeway.LineStyle and Causeway.LineStyle.Solid.

      Causeway
(Causeway)
Causeway.LineStyle
(Causeway.LineStyle)
Causeway.LineStyle.Solid
LineStyle [1,Solid]


I think that the Causeway assembly is not being loaded by the .NET interface on your computer. Please contact Dyalog Support so that we can find out what is going wrong.

Regards,

Vince
Vince|Dyalog
 
Posts: 412
Joined: Wed Oct 01, 2008 9:39 am

Re: sharprain.dws, FNS Glossary

Postby Vince|Dyalog on Thu Oct 12, 2017 10:07 am

Hi Leo,

I have added a post to this FAQ topic which may help you get our .NET interface working on your computer:

http://www.dyalog.com/forum/viewtopic.php?f=22&t=185

Regards,

Vince
Vince|Dyalog
 
Posts: 412
Joined: Wed Oct 01, 2008 9:39 am

Re: sharprain.dws, FNS Glossary

Postby Leo on Fri Oct 13, 2017 3:49 pm

Thank you Vince,
thanks for your help I could fix the error in sharprain.dws.
After reinstalling
      Microsoft Visual C++ 2015 Redistributable (x64)-14.0.23026 
(EXE-File: vc_redist.x64.exe)

run the functions in sharprain.dws.
It was missing
      c:\Windows\System\vcruntime140.dll.

Thanks again and greetings
Leo
Leo
 
Posts: 38
Joined: Mon Sep 18, 2017 12:10 pm


Return to New to Dyalog?

Who is online

Users browsing this forum: No registered users and 1 guest