Library missing

Use this forum to post Vensim related questions.
Post Reply
EstebanD
Junior Member
Posts: 8
Joined: Tue Mar 12, 2024 12:59 pm
Vensim version: DSS

Library missing

Post by EstebanD »

I have installed Vensim 10.1.3 on my computer, but it seems to be missing the library vdpdll64.dll, I cannot find it in the directory. I want to use it to extract data from Vensim to Excel using the vensim_get_data function as defined below. How can I retrieve it? I usually use Vensim in 32 bits, using the equivalent library (vdpdll32.lib).
Thank you.

Private Declare PtrSafe Function vensim_get_data Lib "VdpDLL64.dll" (ByVal filename$, ByVal varName$, ByVal timename$, varvals As Single, timevals As Single, ByVal maxpoints As Integer) As Long
Administrator
Super Administrator
Posts: 4858
Joined: Wed Mar 05, 2003 3:10 am

Re: Library missing

Post by Administrator »

We no longer supply that, you should be able to use vendll32.dll.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
EstebanD
Junior Member
Posts: 8
Joined: Tue Mar 12, 2024 12:59 pm
Vensim version: DSS

Re: Library missing

Post by EstebanD »

Hi,

I tried replacing "VdpDLL64.dll" in the " vensim_get_data" definition with vendll32.dll (see the line below), copying this library into this folder on my computer: C:\Users\Public\Vensim\DLL
In this case, the vensim_get_data function returns 0 instead of a fail; So, It still does not work. But I do not know why, I have checked that the path and the file name are accurate, as well as the other arguments. I have also tried with similar libraries (vdpdll32.lib for instance), but nothing seems to work. Have I missed something? Thanks.


Private Declare PtrSafe Function vensim_get_data Lib "vendll32.dll" (ByVal FileName$, ByVal varName$, ByVal timename$, varvals As Single, timevals As Single, ByVal maxpoints As Integer) As Long
Administrator
Super Administrator
Posts: 4858
Joined: Wed Mar 05, 2003 3:10 am

Re: Library missing

Post by Administrator »

It's impossible to say why it's not working given the limited information you have provided.

But a return value of 0 indicates the function was called correctly. So I would double check your path to the VDFX file and the variable name.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
EstebanD
Junior Member
Posts: 8
Joined: Tue Mar 12, 2024 12:59 pm
Vensim version: DSS

Re: Library missing

Post by EstebanD »

Hi, I am attaching a folder including a .mdl file, a .vdf file generated with Vensim 6.3E, a .vdfx generated with Vensim 10.1.3 and a .xlsm file including a function called VDFx which is used to extract data from a vdf or a vdfx file.
This function works well with 32-bit Excel and the .vdf file, but I get a #VALUE! error in 64-bit. I did not find a"0" like the last time I checked. Can you check if you have the same issue on your side? Thank you very much
Test Vensim 10.zip
Tests vensim_get_data function in Vensim 10
(24.05 KiB) Downloaded 9 times
.
Administrator
Super Administrator
Posts: 4858
Joined: Wed Mar 05, 2003 3:10 am

Re: Library missing

Post by Administrator »

The code is still loading the 32 bit DLL, have you tried loading vendll64.dll instead?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
EstebanD
Junior Member
Posts: 8
Joined: Tue Mar 12, 2024 12:59 pm
Vensim version: DSS

Re: Library missing

Post by EstebanD »

In the previous messages I understood that the vendll64.dll file was not longer provided, but that the vensim_get_data function should work with the 32 bit version even in 64 bit. When I installed Vensim 10.1.3 I could not find the vendll64.dll file, but if you can provide it, I would be happy to test it as that's probably why the function is not working.
Administrator
Super Administrator
Posts: 4858
Joined: Wed Mar 05, 2003 3:10 am

Re: Library missing

Post by Administrator »

No, VdpDLL64.dll is no longer provided. That was a double precision version of the Vensim DLL, all versions of Vensim are now double precision so no need for a separate DLL.

If Vensim has been installed properly, vendll64.dll will be present in the path (C:\Windows\System32). There should be no need to do anything special other than try and load it.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
EstebanD
Junior Member
Posts: 8
Joined: Tue Mar 12, 2024 12:59 pm
Vensim version: DSS

Re: Library missing

Post by EstebanD »

Thank you for this clarification. So I checked again, and I even uninstalled and reinstalled Vensim 10.1.3 but I could not find the file. Comparing with my current version of Vensim (Vensim 6.3E), I think the file should be here: C:\Users\Public\Vensim\DLL
I have attached you a screenshot of this folder as it currently stands, if that helps.
Public folder.png
Public folder.png (56.5 KiB) Viewed 2664 times
Administrator
Super Administrator
Posts: 4858
Joined: Wed Mar 05, 2003 3:10 am

Re: Library missing

Post by Administrator »

Don't compare with 6.3, that is over 10 years old. A lot has changed since then.

Make sure you install using admin permissions. vendll64.dll will be installed to c:\windows\system32, do not change this path or it will not work.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
EstebanD
Junior Member
Posts: 8
Joined: Tue Mar 12, 2024 12:59 pm
Vensim version: DSS

Re: Library missing

Post by EstebanD »

It seems to be working now! I just had to use the right library, indeed. Thank you for you help!
Post Reply