Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Need some very basic help with class design

I am designing a few classes with DAQmx, and need some help with the methodology for task / writer design. I can't find a good starting guide for the Measurement Studio, so I figured I'll ask here...

The main class, let's call it 'Shutter', needs to do the following tasks (using a PCI 6601 timer board, or a PCI 6014 multifunction board)

1) Send a finite pulse train on a CO channel, with the ability to specify which two timers will be used for this action

2) Set and keep (until class disposed) some DO lines

I have been running into trouble figuring out the most basic things:

1) should the task and writer be created in the class 'New' sub, or should that happen for every pulsetrain I send out? Is it possible to change the number of pulses in the pulsetrain without destroying the task?

2) should I create a separate Task for each of the DO lines i am controlling, and should I preserve these tasks / writers between events

I appreciate your suggestions, thx
0 Kudos
Message 1 of 2
(3,008 Views)
You can find some very helpful examples that came with your DAQ driver. They should be located in:
C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\DAQmx
This should get you started in the right direction.

You do not need to create a separate task for each DO line. Make sure that after you create your task, when you are finished with all of your programming you stop it and clear it.

Hope this helps.

Jennifer
0 Kudos
Message 2 of 2
(2,983 Views)