EasyManua.ls Logo

National Instruments PCI-8430 User Manual

National Instruments PCI-8430
237 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #97 background imageLoading...
Page #97 background image
RetrievingtheSerialInterfaceType(RS-232or
RS-485)
Therearetwowaystoretrievetheserialinterfacetype(RS-232orRS-
485):
ReadtheNI-VISAwiremodeattribute.
TheNI-Serialsoftwareusesprogrammaticcontrolcodesandthe
DeviceIoControlWindowsfunctiontoretrievetheserialinterface
type.
ToretrievetheserialinterfacetypeusingtheDeviceIoControlWindows
function,completethefollowingsteps:
1. Addthefollowinglinestoyoursourcecode:
#include<winioctl.h>
#include<NiSerial.h>
NoteTheheaderfileNiSerial.hisincludedonyourNI-
SerialsoftwareCD.YoualsocanfinditintheNI-Serial
folderwhereyouinstalledyourNationalInstruments
software(typically,C:\ProgramFiles\NationalInstruments\NI-
Serial).
2. TheSERIAL_INTERFACEattributecanhavethefollowingvalues:
RS485_INTERFACE
RS232_INTERFACE
3. Toretrievetheserialinterfacetype,use
NISERIAL_GET_INTERFACE_TYPEandDeviceIoControlwiththe
followingcode:
SERIAL_INTERFACEl_SerialInterface;
DWORDl_ByteCount;
DeviceIoControl(
PortHandle,
NISERIAL_GET_INTERFACE_TYPE,
(LPVOID)NULL,
Question and Answer IconNeed help?

Do you have a question about the National Instruments PCI-8430 and is the answer not in the manual?

National Instruments PCI-8430 Specifications

General IconGeneral
Operating Temperature0 °C to 55 °C
Data Bits5, 6, 7, 8
Stop Bits1, 1.5, 2
Interface TypeRS-232
Bus InterfacePCI
Data RateUp to 1 Mbit/s
Maximum Baud Rate1 Mbit/s
Baud Rate50 bps to 1 Mbps
Isolation Voltage500 V
ParityNone, even, odd, mark, space
FIFO Buffer Size128 bytes per port
Operating System CompatibilityWindows

Related product manuals