12-01-2023 10:02 AM
Hello,
My goal is to control three FESTO motorcontrollers of a test rig in LabVIEW using the CANopen interface and the FHPP device profile by FESTO. I am using an cRIO9024 and a NI9881 module.
The CANopen Application (Motorsteuerung_FHPP_CANopen_neu.vi) that I built is working fine if I use it as a separate VI. However, it is the goal to include this VI in the main UI of the test rig in order to simplify the usability.
Therefore, I want to use my CANopen VI as a Sub-VI in Motorsteuerung_MAIN.vi, but I still want to be able to control all the frontpanel elements of my Sub-VI while it is running. Right now, this is not working yet. I am just able to set the frontpanel elements once before running the Main VI, but while it is running, I cannot make any changes.
Does anyone know how to solve this problem? How do I have to change my VI and/ or Sub-VI to make it work?
Or is there a different way how I can control my CANopen Application from another VI?
I would be grateful for any tips. Thanks!
Best regards,
Veronika
12-01-2023 11:28 AM
You can consider subpanel.
Display or Use Multiple SubVIs in Main VI Front Panel
Integration of Sub-Panel in the Front Panel of LabVIEW Executable