LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Serial Communication using Labview 6 and Solaris 8

I am working on a Driver for a Temperature Controller. But I am stuck at the very basics. I am using Labview 6 and the platform is Solaris 8 on a SUN Ultra 60 Workstation. I can not get the Serial communication to work. When I am running raw (uncompiled) code it works (I can read from and write to ttya and ttyb) but once compiled I get error code 37 (device not found). I have tried the following steps to fix this with no luck.

1) I made sure that the "serpdrv" file is in the same folder with the executable. I also make sure the serpdrv file is added as a support file when building the app.

2) I changed from using traditional serial VI's to labview 6's new visa functions. With these "new" VI's when
I try to initiliaze the visa device and wire a control to the "visa reference" input only 1 serial port shows up (ASRL2, missing ASRL1). I am not sure if this is part of same problem or whole new issue.

3) I reinstalled both visa and labview 6.0.2 update hoping this would help with no luck

4) I placed the following entry into the ".labviewrc" file

labview.serialdevices: "/dev/ttya:/dev/ttyb"

If anybody has had the same problem I would love to hear about it and if you have any solutions

Jamie Shea
0 Kudos
Message 1 of 3
(2,681 Views)
Hi Jamie,
1. Do you have NI-VISA driver installed on the machine on which you are running this executable?? If you are trying to run the executable on the same machine on which the development program has ran fine, then you can ignore this point.

2. If you have done all the changes that are suggested by other discussions related to this topic, then try changing the Port input to Visa Serial Configure.Vi from a control to a constant and try it. In some case, I have seen this to do the trick. I think this point should solve your problem. If it does do tell me. :-))
0 Kudos
Message 2 of 3
(2,681 Views)
Thanks for the help, this worked quite well (even when compiled). I actually did even get it to work using a control the catch is for some reason the pull down menu does not show 2 serial ports (ttya & b) but if I type in the missing port it still works. I would still like to know why the "traditional" serial VI's do not work when compiled but at least I'm back on track.

Once again Thanks
Jamie
0 Kudos
Message 3 of 3
(2,681 Views)