hooovahh Posted April 20, 2020 Report Share Posted April 20, 2020 Okay so I have a normal class. In that class is a private VI that I will open a reference to and run it asynchronously using the Static VI Reference, an Open Reference by name, and a Start Asynchronous Call. All normal and all good. I realized I might want to capture the response from this VI once it finally returns in the Close so I keep the reference to this VI in the class. Now for me to be able to get the response using the Wait On Asynchronous Call I need to have the VI reference be strict, which includes things like the terminals used. Notice I have a coercion dot in the image above because the Helper Reference in the class is a normal non-strict VI reference. As soon as I change this to be a strict reference my private data type has an error "VI Refnum 'Helper Reference': Private data control of this class uses an illegal value for its default data." So for now I have a non strict VI reference, going to a variant, then variant to data with the type I want, and things seem to work. Is this just some kind of recursion issue that LabVIEW can't resolve? Is there a proper way of doing this? I also just thought of another solution, that my terminals in the VI could be variants, and then just convert to and from the class data. Is this okay? Thoughts? Thanks. Quote Link to comment
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.