Automatization of PCANView

Windows® Compatible Software for Displaying CAN Messages
Charlie
Posts: 11
Joined: Thu 7. May 2015, 16:33

Automatization of PCANView

Post by Charlie » Thu 7. May 2015, 16:40

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! :)

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: Automatization of PCANView

Post by M.Maidhof » Fri 8. May 2015, 09:07

Hello

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

best regards

Michael

Charlie
Posts: 11
Joined: Thu 7. May 2015, 16:33

Re: Automatization of PCANView

Post by Charlie » Mon 11. May 2015, 10:19

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

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: Automatization of PCANView

Post by M.Maidhof » Mon 11. May 2015, 10:21

Hi,

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

regards

Michael

Charlie
Posts: 11
Joined: Thu 7. May 2015, 16:33

Re: Automatization of PCANView

Post by Charlie » Mon 11. May 2015, 11:13

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
Last edited by Charlie on Mon 11. May 2015, 11:59, edited 1 time in total.

Charlie
Posts: 11
Joined: Thu 7. May 2015, 16:33

Re: Automatization of PCANView

Post by Charlie » Mon 11. May 2015, 11:19

PS: sorry, I meant the "Demo.../Release" folders

K.Wagner
Software Development
Software Development
Posts: 1082
Joined: Wed 22. Sep 2010, 13:36

Re: Automatization of PCANView

Post by K.Wagner » Mon 11. May 2015, 13:00

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 14789 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:
Best regards,
Keneth

Charlie
Posts: 11
Joined: Thu 7. May 2015, 16:33

Re: Automatization of PCANView

Post by Charlie » Mon 11. May 2015, 13:42

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
Attachments
Windows Installed Programs
Windows Installed Programs
Capture.PNG (45.16 KiB) Viewed 14787 times

K.Wagner
Software Development
Software Development
Posts: 1082
Joined: Wed 22. Sep 2010, 13:36

Re: Automatization of PCANView

Post by K.Wagner » Mon 11. May 2015, 14:03

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
Best regards,
Keneth

Charlie
Posts: 11
Joined: Thu 7. May 2015, 16:33

Re: Automatization of PCANView

Post by Charlie » Mon 11. May 2015, 14:21

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.

Post Reply