I am trying to talk to a monochrometer through a parallel port serial connection. I have Labview 2018 installed on Centos 7 along with nivisa. When I run "sudo NIvisaic" I can see the serial port but without sudo I can not (it shows as unknown). When using the port in lab view I get the error
"Error -1073807192 occurred at VISA Write in Parallel Exp.vi
VISA: (Hex 0xBFFF00A8) Access to the resource or remote machine is denied. This is due to lack of sufficient privileges for the current user or machine"
running "sudo Labview64" shows command not available. How do I run labview with escalated permissions to see this port or is there something I am missing?
Solved! Go to Solution.
It's been a really long time since I used Linux, but can you go to the /dev/ directory and find the port you need to use (lp0 if it's really a parallel port, ttyS0 if it's serial, maybe something else newer...) and change the permissions there using sudo just once?
Changing the permissions with "sudo chmod 666 /dev/parport0" doesn't seem to have helped. I also checked the permissions have properly been changed with "ls -la"
No luck with 777 either. (im not sure if 777 should be used on device files, only difference is if they are executable)
Solution to run labview as root on centos 7:
"sudo yum install kf5-kdesu"
run labview as root (from default install location):
Enter the root password for the machine and labview should start running with escalated permissions.
If labview is installed in a different location you can find it with "which labview64"
"sudo /usr/local/bin/labview64" may work as well but it is not recommended to run GUI programs as root directly.
Ick. Thanks for sharing the solution with us, though. This is bound to help someone. 🙂