Sam Dexter Posted Thursday at 01:48 PM Report Share Posted Thursday at 01:48 PM The task is simple - call Florence virtual keyboard on a CompactRIO programmatically but I must be overlooking something as I cannot get it to work... I have Florence installed with opkg and I also made a little bash script to call it. When I execute it from CompactRIO terminal - everything works but if I try to call the script from my application using SytemExec VI - I get the echo output from my script and the error code is 0 but the virtual keyboard does not start. Seems like a trivial problem but I am stuck here... Can someone explain to me what I've done wrong here and/or, maybe, suggest a better way of doing it, please? Quote Link to comment
Mads Posted Thursday at 05:37 PM Report Share Posted Thursday at 05:37 PM (edited) Have you installed sudo and added the lvuser to the sudoders list? If you are calling a script make sure lvuser has access to the file (ownership defaults to admin if you have transferred it onto the device logged on as admin). The LabVIEW RT Linux site has some threads with pointers for this, like these: https://forums.ni.com/t5/LabVIEW/Mount-NSF-share-to-NI-Linux/td-p/3822135 https://forums.ni.com/t5/NI-Linux-Real-Time-Discussions/Is-it-possible-to-close-and-re-open-RTEXE-through-Embedded-UI/td-p/3707540 Edited Thursday at 05:39 PM by Mads Quote Link to comment
Jordan Kuehn Posted Thursday at 07:38 PM Report Share Posted Thursday at 07:38 PM I think Mads method will work. I think it's frowned on, but probably the most straightforward. Alternatively you could figure out what permissions are set on the script file and required for the operations it calls, then make all of those executable by the lvuser. All of this is annoying enough in linux, but then Linux RT user permissions and file permissions are even more complicated than usual as some permissions are reset on boot. This pdf is a good reference and I think is still valid despite its age. https://www.ni.com/pdf/support/us/ni_linux_real-time_security_user_guide.pdf Quote Link to comment
Sam Dexter Posted Friday at 09:32 PM Author Report Share Posted Friday at 09:32 PM Thank you guys. As far as the virtual keyboard goes, found this thread - https://forums.ni.com/t5/NI-Linux-Real-Time-Documents/Florence-Virtual-Keyboard/ta-p/3528048. The issue with the SystemExec VI is still in the works. Will let you know once I have a chance to try your suggestions out. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.