05-08-2007 04:46 AM
05-09-2007 09:38 AM
05-09-2007 09:49 PM
Hello Andrew
Thank you for your answer, I actually very new to NI though I developed a lot of application but never use NI .Answer to your question .
DATA() is 1D array with 8 elements and no thing wrong with the format , before I get your reply I try on error and found that I need to create the task and its associate Reader and Writter for each channel . Previously I create a common ReadTask ,WriteTask and their associate Reader and Writer as a shared member of the class ( hope to save system resources) but this way it doesn't work as these common tasks content six channels each ( 6 Inputs and 6 OutPuts) when I want to write to a specific channel in the task I got the error message. So I change my class structure , add 4 readonly properties to the class each represent ReadTask, WriteTask , Reader and Writer of the class. This way I have no problem. I download NI-DAQmx for .NET but its documentation seems not completely loaded , when I drill to some particular member of the class there is no help available. Where I can get a complete documentation preferably a compiled help that integrated into Visual Studio 2005(or VB.NET 2005) IDE if not a PDF format is also fine.
I also want to learn more about NI hardware and software driver for my next development a comprehensive sample code would be good as I saw each sample code provided is a small piece of code contain only one a few commands . A small application code would be a good sample says has a few AI ,DI ,DO and AO , AI and DI may have one that work in a interup mode (Interup when detect status change).
Hope I will get a good recommendation.
Regards
05-10-2007 11:00 AM - edited 05-10-2007 11:00 AM
Message Edited by TheWoost on 05-10-2007 11:00 AM
05-10-2007 10:13 PM
Hi Andrew
Thank for your reply and the table of sample code location ( seems it is the same as in the documentation ) it is a good sample but still in a piece by piece code. If each of them function independently when we include all of them into the same project seem to be OK . My worry is if all tasks has the lifecycle time of the application lifecycle in another words there is no task was disposed during application running , would it be any system resource issue?
Regarding .NET help I did snap to the same spot you has mentioned , but in some detail in a lower heirrachy of the name space it just not available I don't know why.
05-11-2007 01:05 PM