06-06-2009 08:34 AM
Solved! Go to Solution.
06-08-2009 07:33 AM
Larry,
Your problems are all related to the Task State Model which is described in the DAQmx manual. Each 9172 chassis can have 1 AI Task running at any given time. If you try to start a second task you will get an error. When you use the FOR loop your code is starting and stoping each task in sequence which takes a lot of time and explains the 4.59 seconds. Ideal way is to config and start tasks in a init state and then begin acquiring data. Only thing left to do is to release the I/O by stopping and clearing the tasks when you done.
One way to fix this would be to install the two RTD modules in one chassis and all the 9205 modules in the other chassis. Another way would be to oversample the RTD's and deal with the extra data later.
06-08-2009 07:55 AM
Hi Wayne
actually the tasks are configured in MAX and the tasks are not cleared until the outer WHILE loop completes so I am not sure about the 4.6 seconds (even running the RTD readings without the level sensor task is very slow but for temps I am not to concerned I figured it is just the nature of RTDs(?) I have more experience with thermocouples) but I think the best way too speed up the level sensor readings is to move it to the second chassis. Thanx for the suggestion