Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you include multiple channel types in one task? Do you create multiple tasks?

How do I use multiple channel types?  I'm using a NIDaqpad 6015 with an SC-2345.  I'm trying to use AI03's and T02 SCC blocks.  I'm using vb.net and measurement studio.  I cannot create multiple channel types within the same task nor have I been able to seperate the types into multiple tasks.
0 Kudos
Message 1 of 7
(4,385 Views)
It is not possible to combine different channels types (analog in and counter for example) in one task. You can combine different channels from one group (analog input for example: Voltage, temperature, strain gauge for example) in one task, but not from different groups.
You will have to make a single task for every group, in your example one for the analog input, and another one for the counter.
In VB.NET, wehn you start a new project, the assistant let you choose to xreate a task. If you want to have another task in your project, go to them menu-->project-->Add new item... and choose "Measurement Studio" under "Categories" and "DAQmx Task" under "templates". You will then have anoter task and the accoring class created in your project.
0 Kudos
Message 2 of 7
(4,380 Views)

What if some of the channels have different scales, different thermocouple types, ect?  How can I add channels individually so they can all have their own settings?  I will be using a configuration file with ranges, thermocouple types, ect...

Thanks.

Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 3 of 7
(4,363 Views)
When you want to use different channels in one task, they all have to be of one type (for example analog input). If you want to combine different (for example) analog input channels, you first have to create the task for the first channel, for example a thermocouple. When the task creation is finished, you get a mxb-File in your project. When you open this file, on the top part you see the list of all channels. There are two small icons on the top left corner, a red cross to delete single channels of the task, and a sheet of paper to create new channels. With the second icon you can create additional channels that can be of a different kind of channel, for example a strain gauge, as long as they are from the same type (analog input in our example). As far as I know this feature was added in DAQmx Version 7.4, so make sure to have a actual version fo NI-DAQmx installed (7.5 would be the latest right now).
0 Kudos
Message 4 of 7
(4,358 Views)
Do you now how to do this programatically?  So far I haven't used the DAQ assistant.  As easy as it is in LabVIEW, however, I should be using it for Measurement Studio.  I generally don't like to use wizards though.  I like to know how to do everything with code.
Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 5 of 7
(4,351 Views)
The wizard generates a class containing the code to create a task, that is exactly as configured in the wizard. Just have a look at the created class, and you will see hwo to do it in code.
0 Kudos
Message 6 of 7
(4,347 Views)
Thanks, now go to sleep!
Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 7 of 7
(4,344 Views)