National Instruments and PCI-485/4 Isolated Manual De Usuario
Using PCI Serial with Linux
14
www.natinst.com
What do I do if
FIFOtrigger
does not work immediately or causes a
segmentation fault?
Enter the following to recompile
FIFOtrigger_pci.c
and rerun
FIFOtrigger
. Also, the source code for
FIFOtrigger
is available for
editing and viewing at
FIFOtrigger_pci.c
provided in the
PCI-SERIAL
directory.
linux PCI-SERIAL#
gcc -O FIFOtrigger_pci.c -o
FIFOtrigger
linux PCI-SERIAL#
./FIFOtrigger <
port number>
<
rx_trigger> <tx_trigger>
What do I do if
rs485
does not work immediately?
Enter the following to recompile
rs485.c
. Also, the source code for
rs485
is available for editing and viewing at
rs385.c
, provided in the
PCI-SERIAL
directory.
linux PCI-SERIAL# gcc -O rs485.c -o rs485
What do I do if
clockspeed
does not work immediately or if it causes
a segmentation fault?
Enter the following to recompile
clock_speed.c
and rerun
clockspeed
. Also, the source code for
clockspeed
is available for
editing and viewing at
clock_speed.c
, provided in the
PCI-SERIAL
directory.
linux PCI-SERIAL# gcc -O clock_speed.c -o clockspeed
linux PCI-SERIAL# ./clockspeed <
port number> <high/low>
What do I do if
serialtest
does not work immediately or if it causes
a segmentation fault?
Enter the following to recompile
serialtest.c
and rerun
serialtest
.
Also, the source code for
serialtest
is available for editing and viewing
at
serialtest.c
, provided in the
PCI-SERIAL
directory.
linux PCI-SERIAL#
gcc serialtest.c -o serialtest
linux PCI-SERIAL#
./serialtest <
receive port number>
<
transmit port number>
What do I do if
serialtest
hangs?
Make sure the interface is seated correctly and tighten the screw that holds
the interface in place. Also, make sure the cables are attached to the correct
ports. In some cases,
the interface in place. Also, make sure the cables are attached to the correct
ports. In some cases,
serialtest
hangs if the transceiver modes
(PCI-485) are not set. Try setting both transmit and receive ports to
transceiver mode 0 (Four-Wire Mode).
transceiver mode 0 (Four-Wire Mode).