LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   serial port configuration for labview 7.0 under linux (https://www.linuxquestions.org/questions/linux-newbie-8/serial-port-configuration-for-labview-7-0-under-linux-184214/)

morvym 05-21-2004 02:55 PM

serial port configuration for labview 7.0 under linux
 
Hi Everybody I´m new in this group and I want to ask for some items:

I´m a new user of labview 7.0 for linux. I´m experienced with the same version but for windows XP and I have not problem when I Work under windows.

I am developing a program in labview for a meteorological station, I have an electronic device that take some environmental parameters and send them like electrical signals by a serial port toward a DAQ and finally to a Personal Computer, with the software that I´m developing I can see the variables in a graph, like presure, temperature etc. all this work well under windows, but I want to migrate to Linux and I have troubles for to do it,

I have a test program for to verify de data transmition from de meterological station to the computer and I can see de data flux when I run this program in windows, this program sohws in a window the transfered data like ascci characters, but when I trat to run the same program in labview 7.0 under Mandrake Linux 9, the program dont work, because In can´t see the data flux. When I run the software don´t present any error but it works perfectly.

I would like to know how to configurate the serial port from my computer under linux to establish communication between the meteorological station and the serial port of the PC.

I think it could be a PC configuration problem, but I don´t know where to begin to work for fix it.

thanks for all the support you can give.

Mara 05-21-2004 04:22 PM

Moved: This thread is more suitable in Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.

Look into your /var/log/messages (you need to be root). Durung boot (check the last one using the timestamps) you should have something like
Code:

May 17 11:17:14 mara kernel: Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enable
d
May 17 11:17:14 mara kernel: ttyS00 at 0x03f8 (irq = 4) is a 16550A
May 17 11:17:14 mara kernel: ttyS01 at 0x02f8 (irq = 3) is a 16550A

It means I have two serial ports. I can sonfirm it by looking into /dev:
Code:

ls -l /dev/ttyS*
lr-xr-xr-x    1 root    root            5 maj 21 13:58 /dev/ttyS0 -> tts/0
lr-xr-xr-x    1 root    root            5 maj 21 13:58 /dev/ttyS1 -> tts/1

So there are /dev/ttyS0 (COM1 under DOS/Windows) and /dev/ttyS1 (COM2).
Check this in your system.


All times are GMT -5. The time now is 11:46 AM.