You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I call my build VIs manually, either directly from the development environment or via my build GUI, the "Start CLI Interface.vi" throws an error (scan from string fails because list of parameters is empty). What I would like to be able to do is tell the CLI interface that it should just ignore all following calls and not throw any errors, so I don't have to disable all of the occurances of the "Write String.vi"s all over my code.
The text was updated successfully, but these errors were encountered:
Definitely, have a better handling of the connect case to give a specific error and perhaps a Boolean flag you can work from.
I am slightly concerned about having the API disable itself in the case of a failed connection. Whilst I appreciate it would be more convenient if it did, this feels like something that would be better handled at the application layer.
Happy to get the opinion of others though, is this something that makes sense to have in the library (point 2)?
I didn't mean it should disable itself automatically, my thought was to have just the property inside the class so I can set it whenever I want.
I can see two alternatives for me: Wrap all "Write String.vi"s into a subVI with a case structure inside (but I still would have to wire the CLI reference and the enable/disable info), or create a child class that implements the disable feature.
As per our discussion yesterday, I will implement a wrapper class for the functionality I'd like to see. It will enable me to either output to the command line if called via CLI or to a GUI if called from my LabVIEW build tool.
If I call my build VIs manually, either directly from the development environment or via my build GUI, the "Start CLI Interface.vi" throws an error (scan from string fails because list of parameters is empty). What I would like to be able to do is tell the CLI interface that it should just ignore all following calls and not throw any errors, so I don't have to disable all of the occurances of the "Write String.vi"s all over my code.
The text was updated successfully, but these errors were encountered: