06-20-2007 10:48 PM
06-21-2007 09:34 AM - edited 06-21-2007 09:34 AM
Message Edited by Tom W [DE] on 06-21-2007 09:35 AM
06-21-2007 02:21 PM
06-22-2007 11:12 AM
Hi Roy-
Can you please elaborate on which library source you're missing? Is it possible that there is some confusion between NIDAQmx.lib (which ships on driver CD with the card) and the MHDDK source?
The MHDDK examples (for M Series) provide the source for register and bitfield access aliases (in tMSeries.x and tTIO.x) and then higher level examples for analog input, analog output, digital i/o, and counter i/o that use those register interfaces. So, whether you're using your O/S interface or the one provided by the MHDDK, it should be relatively simple to get something running without using any other pre-compiled libraries. We do not have an M Series RLP manual, but the register map and functional orders of operation supplied with the MHDDK should hopefully be enough to get you going. In order to run the DMA-based ai examples you will also need to download the DMA library from the MHDDK download page.
If you have any other questions I would be happy to help out with them on the DDK forum.
Thanks-
06-27-2007 12:05 PM
Member Reply 1 of 1 |
I've coded an RTX driver following the flow in example aiex1.cpp. Setup for 7 channels. Implemented all except I did not implement the aiGetScalingCoefficients. Is it required? What is it?
What changes are needed to setup for single ended common ground, instead of differential? Is it necessary to have a voltage present on the 6224 during integration testing? After initialization the JOINT_STATUS_2 returns 0x90 indicating that AI_Scan_In_Progress_St, and AI_EOC_St, and never clears. Can't read from the FIFO unless the AI_Scan_In_Progress_St clears. Since NI doesn't provide a manual I have no idea what this means, except that these flags never clear.
So where is the FIFO data? Why are we using a FIFO. Is there a mapped memory option instead? I am not using DMA.
What exactly is flush call used in example code? Are delays required between register commands? Single stepping through the code gives the same JOINT_STATUS_2 status.
The example code calls write/read methods. Does every write put zeros in non specific register bits?
Do you have a direct register accessing sequence with HEX inputs which shortcuts the labored methods used in the examples? All I want is to read 7 analogs on demand at 100Hz.
Hope someone has answers. Thanks. |
06-28-2007 05:16 PM