Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection to other Ports #4

Open
AustinLukery opened this issue May 9, 2024 · 1 comment
Open

Connection to other Ports #4

AustinLukery opened this issue May 9, 2024 · 1 comment

Comments

@AustinLukery
Copy link

Hi, I've just been starting to use this library and for me it works great when connecting to port 851 over ADS.
However, I have used TwinCAT to create a specific Task with an image which I intend to use as the interface to labVIEW on Port 301.
I've found that the "Register Event Callbacks.vi" within "Connect.vi" throws an error when trying to connect to port 301, but If I remove the Register Event Callbacks from the connect vi, I am able to connect to port 301 and read Symbol information as expected.

Currently I am looking to use this "bodged" modification myself, but it would be great if a more thorough fix could be implemented in a release

@fisothemes
Copy link
Owner

Hi @AustinLukery

Thanks for raising the issue, I did some debugging and it turns out the AdsStateChange event isn't supported on ports that don't have a runtime.

Your quick fix should be fine. The only thing I see you losing is event reading. Your solution will have to include some polling I'm afraid.

I'll sit down and investigate come up with a solution. Please note that I've only tested the library on ports that include a run time. Thing like the AMS Logger on port 100 may not work.

Ads State Change Test Results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants