LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 37 serial problem

I am a unix system admin not a labview programmer. I am getting an error 37
while executing a labview vi file as a regular user, (non root). As root
when
I run the same vi the vi runs without errors.

In Solaris 2.x UNIX I check all of the permissions on the ttya and ttyb
files and
they appear fine. I hook a serial terminal up to the serial port and run
the
following unix command, "cat somefile.txt > /dev/ttya", as root and regular
user.
The output of the text file is displayed on the terminal under both logins.


The version of labview I am using is labVIEW 5.1 running on a sparc 10
running Solaris 2.5. Any help would be greatly appreciated.

Regards
Richard Cleary
0 Kudos
Message 1 of 2
(2,482 Views)
Richard Cleary wrote:

> I am a unix system admin not a labview programmer. I am getting an error 37
> while executing a labview vi file as a regular user, (non root). As root
> when
> I run the same vi the vi runs without errors.
>
> In Solaris 2.x UNIX I check all of the permissions on the ttya and ttyb
> files and
> they appear fine. I hook a serial terminal up to the serial port and run
> the
> following unix command, "cat somefile.txt > /dev/ttya", as root and regular
> user.
> The output of the text file is displayed on the terminal under both logins.
>
> The version of labview I am using is labVIEW 5.1 running on a sparc 10
> running Solaris 2.5. Any help would be greatly appreciated.
>
> Regards
> Richard Cleary

Richard,
Here are a couple of things to check


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,482 Views)