From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI runs from one account but gives an error 37 from another account

I'm still running LabView 5.0 on a Solaris Server, 2.8.  This is really weird.  I have
a VI that will run just fine under my account, but another user tries to run the same
VI and gets an error 37, device not found.  We are using NI Serial Port Init.vi and when
I run it from my account which is unprivilege without using sudo, no errors, but when
this user runs its, error 37 occurs.  Any reason why this happens?  It sounds like a
permission problem, but I do not know where to look.  Suggestions welcomed.
 
Thanks,
Jay
0 Kudos
Message 1 of 2
(2,149 Views)
Hey guys, I found the answer in this post.  I guess I did not look hard enough before I posted.  Sorry.
 
In the .labviewrc file make sure this line is included.
labview.serialDevices:/dev/ttya:/dev/ttyb: . . . .
This sets ttya as port 0 , ttyb as port 1 etc etc.

You may have them set as root but not as a regular user.

Also for Solaris 2 , Labview expects the ports to be /dev/cua/a , /dev/cua/b ,
etc etc.
You may need to change / add those links. ( I am a labview programmer not a
Sys Admin !!)
Make sure that the line in the .labviewrc matches what ever these are set to.

Note that the first dev listed will be port 0, the next port 1 etc. so you can
set them in any
order that you wish.

Hope this helps,
Kevin Kent
0 Kudos
Message 2 of 2
(2,144 Views)