LabVIEW OOP VI Terminates with No Errors

Updated Sep 10, 2018

Reported In

Hardware

  • CompactRIO Controller

Issue Details

I am using a class to apply configurations to my C-Series I/O modules. My VI is terminating itself without any reported errors; it just stops executing. Why is this happening?
 

Solution

Check the implementation of your accessor VIs. Make sure you are not using Property Nodes to read/write class properties. Instead, use the Unbundle By Name and/or Bundle By Name Functions to read or write class properties, respectively.

For instance, with class 'C-Series Module', we are using an accessor to write the Slot Number using a Property Node. This will result in a terminated VI because the accessor is referring to itself.

Instead, use the Bundle By Name function to change the Slot Number:

WAS THIS ARTICLE HELPFUL?

Not Helpful