09-22-2020 09:05 AM
Hello,
I'm currently developing a plugin for FlexLogger. The plugin VI "Configure Session.vi" seems to be played twice in a row and this is causing me problems since I'm opening a connection to a device.
I've looked into the NI example and I can see the same behavior (mouse example).
Is this the desired behavior? Is there a way to avoid that?
The Plugin Development Kit Manual doesn't say anything about this.
Thanks in advance!
Solved! Go to Solution.
09-22-2020 11:36 AM - edited 09-22-2020 12:15 PM
Thanks for the feedback. I believe older versions of the PDK/FlexLogger had this issue. I was just testing with the latest released version (PDK 1.3 and FlexLogger 2020 R4), and didn't have this problem with the Mouse plugin, so I would recommend upgrading to the latest version if possible. Did you verify that "Cleanup Session" was called for every "Configure Session"? If this is not the case, I would consider this a problem. If this is the case, I would hope your driver calls to the device can correctly cleanup so calling configure again would still work (you may need to add delays if the device can't configure/unconfigure too quickly). Hopefully upgrading to the latest version will work for you so you don't need to worry about extra configures being called too quickly.
Hope this helps,
Brad
09-23-2020 08:57 AM
Thanks Brad for your reply.
After updating to R4, the VIs are now running as expected.
Thanks again!
09-23-2020 12:50 PM
Glad it's working as you expect now. Thanks for checking on this issue and let us know if you have other questions or issues.
Brad