PCAN_ERROR_ILLMODE
PCAN_ERROR_ILLMODE
Hello,
I have a problem concerning the following error code: Driver object state is wrong for the attempted operation (PCAN_ERROR_ILLMODE).
I am relatively new to programming so I don't know exactly wether this problem is due to any missing file/driver or an error in the code.
I am using the PCAN_USB and I used the attached code from the example of the documentation.
I would be grateful if someone could tell me what to do.
I have a problem concerning the following error code: Driver object state is wrong for the attempted operation (PCAN_ERROR_ILLMODE).
I am relatively new to programming so I don't know exactly wether this problem is due to any missing file/driver or an error in the code.
I am using the PCAN_USB and I used the attached code from the example of the documentation.
I would be grateful if someone could tell me what to do.
- Attachments
-
- My code with the Erro Message (in german)
- PCAN_USB.PNG (39.81 KiB) Viewed 7106 times
-
- Sales & Support
- Posts: 1083
- Joined: Fri 20. Sep 2019, 13:31
Re: PCAN_ERROR_ILLMODE
Hello,
Do you have the PCAN-Drivers including PCANBasic installed?
https://www.peak-system.com/quick/DrvSetup
Please report back to us regarding this
Best Regards
Marvin
Do you have the PCAN-Drivers including PCANBasic installed?
https://www.peak-system.com/quick/DrvSetup
Please report back to us regarding this
Best Regards
Marvin
---
Marvin Heidemann
PEAK-Support Team
Marvin Heidemann
PEAK-Support Team
Re: PCAN_ERROR_ILLMODE
Hello,
thank You for the fast reply.
Unfortunately this was not the issue, the drivers were already installed.
Are there perhaps any other possibilities for the upcoming error?
Best Regards
Matthias
thank You for the fast reply.
Unfortunately this was not the issue, the drivers were already installed.
Are there perhaps any other possibilities for the upcoming error?
Best Regards
Matthias
-
- Sales & Support
- Posts: 1083
- Joined: Fri 20. Sep 2019, 13:31
Re: PCAN_ERROR_ILLMODE
Hello,
Please check the following:
- Do you have the device intialized with another software, for example PCAN-View?
- Do you have local PCANBasic DLLs? Does the behaviour also occur, when the local DLLs are removed?
Please report back to us regarding this.
Best Regards
Marvin
Please check the following:
- Do you have the device intialized with another software, for example PCAN-View?
- Do you have local PCANBasic DLLs? Does the behaviour also occur, when the local DLLs are removed?
Please report back to us regarding this.
Best Regards
Marvin
---
Marvin Heidemann
PEAK-Support Team
Marvin Heidemann
PEAK-Support Team
Re: PCAN_ERROR_ILLMODE
Hello,
after deinstalling the drivers and reinstalling them again, and also after reincluding the dlls + restarting the PC, the error disappeard.
I am very grateful for your fast support.
Best Regards
Matthias
after deinstalling the drivers and reinstalling them again, and also after reincluding the dlls + restarting the PC, the error disappeard.
I am very grateful for your fast support.
Best Regards
Matthias
Re: PCAN_ERROR_ILLMODE
I ran into the exact situation. I'm not able to run PCANBasicExample.exe from either Win32 or x64 folders. I did try renaming the local PCANBasic.dll files, but the results were identical. I uninstalled/reinstalled the 4.2.3 PEAK-Drivers, but the results were the same. I didn't have any other software competing for the PCAN HW (USB) at the time I ran the test. I am able to use the PcanView, so I know the HW works.
I get the same error message whether the drivers are installed or not. SO, it appears that they are "not really installed" for me?!
Anything else I could try to remedy this?
I get the same error message whether the drivers are installed or not. SO, it appears that they are "not really installed" for me?!
Anything else I could try to remedy this?
- Attachments
-
- Untitled.png (12.17 KiB) Viewed 6461 times
Re: PCAN_ERROR_ILLMODE
IGNORE - It started working after a second computer restart.
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: PCAN_ERROR_ILLMODE
thy for teh feedback - topic closed
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------