JKI-State-Machine-Objects icon indicating copy to clipboard operation
JKI-State-Machine-Objects copied to clipboard

SMO.lvclass:ListThisLevelDependencies.vi works differently (incorrectly?) after the latest updates

Open luferau opened this issue 2 years ago • 1 comments

Hello and thanks for great framework.

Describe the bug SMO.lvclass:ListThisLevelDependencies.vi does not return the expected list of dependencies. Output dependency array contains only one element: [ SMO.lvclass ]. This lead to receive error when trying to call SMO.lvclass:CastArrayDependenciesToClusterOrClass.vi:

Error 116 occurred at Flattened String To Variant in 
SMO.lvclass:CastArrayDependenciesToClusterOrClass.vi->
Microscope.lvclass:Microscope.GetDependencies.vi->
Microscope.lvclass:Microscope.GetDependenciesPublicEvents.vi->
Microscope.TestLauncher.vi

Possible reason(s):

LabVIEW:  Unflatten or byte stream read operation failed due to corrupt, unexpected, or truncated data.

This behavior was discovered after applying the latest updates.

To Reproduce Steps to reproduce the behavior:

  1. Clone https://github.com/JKISoftware/HAL-Webinar
  2. Open project
  3. Open Microscope.TestLauncher.vi
  4. Run

Incorrect code situated in Microscope.lvclass:Microscope.GetDependencies.vi

luferau avatar May 16 '22 12:05 luferau

Thanks @luferau for the report. I confirm I have reproduced the error. It seems the list of "This Level" is not correct. I get a microscope class instead of a XYStage. I'll look into it.

francois-normandin avatar May 16 '22 13:05 francois-normandin