06-22-2008 08:17 AM
Solved! Go to Solution.
06-23-2008 12:17 PM
06-23-2008 12:51 PM
06-23-2008 12:56 PM
Hi Kevin-
You should inspect the NI Measurement Hardware Driver Development Kit (MHDDK) example code in order to find the necessary order of operations for programming the registers of your M Series devices. That sample code is provided for download on this website.
You will want to download the M Series PCI/PXI, Generic DMA Library, and RTX operating system support files. Those examples show how to perform single-point and hardware-timed analog input and digital I/O operations, among others. They should be enough to get you started with programming your devices for RTX.
If you have any questions about the MHDDK examples please feel free to post them in this forum.
Hopefully this helps-
07-07-2008 01:55 AM
07-07-2008 08:18 AM
07-07-2008 09:15 PM
Hello Tom
Thanks your guide.
I already download all sample code and register map.
At the case of DIO , two sample codes only refer follow registers. Are those enough to cover DIO area ?
At the case of AIO, the Gain range maps are as follow on 622X series.
How can I set or handle of Gain range ?
And could you guide how to control analog input depend on differential or signal ?
BR Kevin
07-08-2008 09:14 AM
Hi Kevin-
Yes, the DIO registers for DIO_Direction and Static_Digital_Output are used for the lines designated as "port0" in the hardware documentation. PFI_Output_Select and PFI_DO are used for the lines designated as "port1" and port2".
Gain range settings are shown in both the AI and AO examples provided with the MHDDK (see aiConfigureChannel and aoConfigureDAC).
The input terminal configuration (bipolar, rse, etc) is also set using aiConfigureChannel.
.
07-08-2008 08:06 PM
Thanks Tom
good enough to understand !!
Let me confirm that register access.
Refer to register map (for M series) , each register is consist of address, type and size.
DIO_Direction
Address
Is it right to access
07-08-2008 08:06 PM - edited 07-08-2008 08:14 PM
Thanks Tom
good enough to understand !!
Let me confirm that register access.
Refer to register map (for M series) , each register is consist of address, type and size.
For example, if I want to access DIO_Direction register, follow are my design scheme.
Is it right? , Do I have to aceess 32bit format always ?
Hope to this is final question.
Thanks
BR Kevin