User`s guide

34
PCIS-DASK Application Hints
5.1.1 One-Shot Analog input programming Scheme
This section described the function flow typical of non-buffered single-point
analog input readings. While performing one-shot AI operation, most of the
cards (except PCI-9118 series cards) dont need to include AI configuration
step at the beginning of your application.
[Example Code Fragment]
card = Register_Card(PCI_9118, card_number);
AI_9118_Config(card,Input_Signal|Input_Mode,0,0,0);
AI_ReadChannel(card, channelNo, range, &analog_input[i]);
Release_Card(card);
AI_9118_Config
(only needed by PCI-
9118 series cards)
Voltage reading ?
YesNo
AI_VReadChannelAI_ReadChannel
Another reading ?
Yes
No