petebachant / ACSpy

Python package for working with ACS motion controllers.
MIT License
23 stars 21 forks source link

ACS SPiiPlus Error 132 #22

Open dhkim920 opened 1 year ago

dhkim920 commented 1 year ago

image

Dear, Pete Bachant

Thanks for your development.

Yesterday I installed ACSpy and trying to test some example with SPiipluse 3,11 simulator

but there were few problems : image

how can I fix this problem?

I am really sorry to bother you and Thank you for your hlep in advance.

hopefully you always are great.

petebachant commented 1 year ago

I'm not sure. Are you able to share your application so I can see what you're trying to do?

dhkim920 commented 1 year ago

I'm not sure. Are you able to share your application so I can see what you're trying to do? image image image image

First of all, Thanks for your reply. I appreciate it.

I've attached code and error messages

I just found out that other guy can use ACSpy with these codes without any errors, so I copied his package to my PC

but things don't get better.

At first I thought the main cause could be win32com but now I am feeling mixed

I have installed miniconda3, Pychram, Python 310-32 and packages : ACSpy, pywin32, etc

I am really sorry to bother you sir, but I am dying to solve this error last few days x(

From korean newbiee

petebachant commented 1 year ago

Looks like you're using the DCOM interface, which I have much less experience with. Have you tried some of the acsc C library-based examples?

dhkim920 commented 1 year ago

I tried "acsc_mpoint_test.py" just now. image

SPiiplus simulator have some problem on my pc i guess?

petebachant commented 1 year ago

Possibly. You'll need to ensure the SPiiPlus User Mode driver is installed and running to connect to the simulator.

dhkim920 commented 1 year ago

image

solved it! Thanks for your hlep, Mr. Petebachant.

I uninstalled SPiiplus ver 3.12 and than installed SPiiplus ver 2.70.2

Idk what differences between 3.12 and 2.70.2 but its pretty important to check the SPiiplus version.

have a great day!

srwohl commented 1 year ago

I think the underlying issues is that in the new SPiiplus (version 3.12 in my case) to open communication with the simulator the method to be called has changed. _acscOpenCommSimulator is the recommended method in this version. The fix I made was to change openCommDirect function to call this method instead of _acscOpenCommDirect.

petebachant commented 1 year ago

Sounds like there should be a new function added here to wrap that new function.