LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I having trouble using a serial i/o port with LabVIEW

I keep getting error code 1: Function Error! The serial modules work some of the time and not others. Usually the loop with the modules can run from 1-5 times before it gives the error message, but after the message is given, LabVIEW must be completly exited from before you can try to run the program again.
0 Kudos
Message 1 of 3
(2,447 Views)
On Tue, 4 Feb 2003 10:13:42 -0600 (CST), Slippy wrote:

>I keep getting error code 1: Function Error! The serial modules work
>some of the time and not others. Usually the loop with the modules
>can run from 1-5 times before it gives the error message, but after
>the message is given, LabVIEW must be completly exited from before you
>can try to run the program again.

How many characters are you sending out at a time?
You may need to send them one character at a time with some time delay
between characters.
0 Kudos
Message 2 of 3
(2,447 Views)

You could also try running one of the serial example VIs that ships with LabVIEW. Place a loop in it to run similar to yours and then see if it quits. If so, then the problem is probably not with your code but with the hardware itself. This always helps me to find the source of the problem. Also, try running a loopback test if you think you might have hardware problems.

J.R. Allen
0 Kudos
Message 3 of 3
(2,447 Views)