Page 1 of 2

Automatization of PCANView

Posted: Thu 7. May 2015, 16:40
by Charlie
Hello,
I'm using PCANView for a presentation next Wednesday. I want the experience to be as smooth as possible for the user: when he starts the computer, I'd like PCANView to launch automatically (this works fine) & do a few steps:

1/ validate "OK" the main screen
2/ validate "OK" the "Connect to net" screen
3/ add a new transmit message with pre-defined values
4/ validate "OK".

Is it possible to script those actions through API/scripting ? I'm working on Windows 7.
Sorry if this has been discussed elsewhere, I couldn't find related posts.

Thanks in advance for your help! :)

Re: Automatization of PCANView

Posted: Fri 8. May 2015, 09:07
by M.Maidhof
Hello

PCAN-View don´t offer a script interface, this will only be possible with the optional available PCAN-Explorer software.

best regards

Michael

Re: Automatization of PCANView

Posted: Mon 11. May 2015, 10:19
by Charlie
Hello

Thanks for your reply.
Is it possible to use PACN API instead of PCAN-Explorer?
http://www.computer-solutions.co.uk/gen ... ic-dll.htm
"PCAN-Basic code API"

Regards

Re: Automatization of PCANView

Posted: Mon 11. May 2015, 10:21
by M.Maidhof
Hi,

with the free available PCANBasic API you can build own applications, similar to PCAN-View.

regards

Michael

Re: Automatization of PCANView

Posted: Mon 11. May 2015, 11:13
by Charlie
Hi,

Thank you for answering quickly; I really appreciate it.
I'm reading the PDF documentation in Docu folder.
When launching the demo apps in Demo..../release folders, this error message appears:
"Missing MFC71.DLL"

I guess I could install this DLL from the Web, or by installing VisualStudio?
Thanks again

Re: Automatization of PCANView

Posted: Mon 11. May 2015, 11:19
by Charlie
PS: sorry, I meant the "Demo.../Release" folders

Re: Automatization of PCANView

Posted: Mon 11. May 2015, 13:00
by K.Wagner
Hello,

this can have several causes:
  • The dll has get corrupted.
  • The uninstall of an application has removed the dll.
  • You don't have installed the C++ Redistributable (2008)
The only case in which we can help you is the last one. Check if you have installed the C++ redistributable in your system. For this, check the "Programs and Features" list of your Windows. For example:
Windows Intalled Programs
Windows Intalled Programs
Programs.jpg (58.16 KiB) Viewed 14796 times
If you don't have such an entry in your list, then you have to install the redistributable pakage. According with the plattform you are using you will need to install one or two packages, one for 32-Bit and another for 64-Bit. Here are the links for those packages:

Re: Automatization of PCANView

Posted: Mon 11. May 2015, 13:42
by Charlie
Hello Keneth,
Thanks a lot
The C++ Redistributable (2008) is already installed (cf screenshot)

I've downloaded mfc71.dll from this site (http://python.net/crew/skippy/win32/)
& added it to C:\Windows\SysWOW64 : the demos work fine :)

Now I guess I have to install VisualStudio to compile your demo projects
or is it possible to do it with QtCreator ?
Thanks

Re: Automatization of PCANView

Posted: Mon 11. May 2015, 14:03
by K.Wagner
Hello,

You guessed correctly. Here an overview of the compiler you need for the projects:

Visual Studio Projects:
C#, VB, C++/CLR: Visual Studio 2008 or newer (Express, Standard or Professional)
C++ (MFC): Visual Studio 2008 or newer (Standard, or Professional)

Borland/Enbarcadero Projects:
C++ Builder: CoceGear 2007 or newer (Entity C++Builder 2007)
Delphi: CodeGear 2007 or newer (Entity Delphi 2007)

Scripting Projects:
Python: Python 2.6/2.7

Re: Automatization of PCANView

Posted: Mon 11. May 2015, 14:21
by Charlie
Thank you
I'm currently downloading Visual Studio Professional 2013 from this address:
https://www.visualstudio.com/downloads/ ... -studio-vs

It's a 90-day trial but I guess this will be sufficient.