HI Song -
Thanks for the suggestion. As it turns out, I followed closely to this path just yesterday. I'd read the comments on the Assistant-generated code, in particular the DaqTask.User.vb code, regarding adding custom functionality (also finally found the Help section on that - not a trivial task), and that this was the place for example to expose methods and properties not done so by the assistant-generated component. Groping around the examples, I entered [Task.Timing.] within the OnCreatedTask function, and lo and behold the SamplesperChannel method comes up. I was able to complete it as follows: Task.Timing.SamplesPerChannel = intNumSamp (where intNumSamp had been defined and set in my own forms' code). Worked like a charm. I don't know enough yet about dotnet and how VB2005 coordinates the various components of a project to know how this works, but I'm happy.
Stepping back, it's been a lesson about the challenges of how to make a more complex and powerful system as transparent and usable as simpler generations. The old traditional NiDaq Componentworks was, from my perspective as scientist/programmer, pretty easy, once I got the hang of the forms & components OOP approach. In comparison, doing the same things with the new system, while ultimately as straightforward, was much more difficult to implement. Figuring out what was where, getting different versions of MS, VB and .Net to handshake, and especially the different approach taken by the assistant, on one hand, and the sample programs on the other, was often frustrating. I still wonder where to look, for example, to learn about other properties and methods of the DAQ task that I might need to know - is the Task.Timing.SamplesPerChannel documented anywhere? I understand that with thousands of classes, methods etc., it's impossible to have tutorials for it all, but I do have to say I felt the need for a professional software developer who could at least look over my shoulder, much more with this generation than with the previous one. (Well, maybe I shoulda bought into LabView.)
thanks again,
- Ira