Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous reading analog inputs from two different devices…

Dear People,

I generated a data acquisition task by Measurement Studio. It is derived from NI´s ContinuousInputDaqComponent template as follows:

partial class ContAcqSamplesTaskComponent : ContinuousInputDaqComponent<AnalogMultiChannelReader, AnalogWaveform<double>[]>

 

Now my question is that how I can add support for reading data simultaneously from multiple devices. I know that there is one example in Measurement Studios installation folders but that is not based on ContinuousInputDaqComponent template… or what do you think?


Best regards,
Ilkka

Message Edited by Ilkka on 11-30-2006 09:29 AM

0 Kudos
Message 1 of 5
(3,887 Views)
Hi Ilkka,
 
if you want to acquire from two different cards, you need to create two tasks; one for each card. Then it should not be a problem.
 
Or do you meant something else with "acquiring from multiple devices"
 
Best Regards
Philipp N
NIG AE
0 Kudos
Message 2 of 5
(3,850 Views)

Hi Philipp,

Thanks for your reply.

 

But how I can read continuous data with two tasks simultaneously and display the results in one common waveform graph?

 

My one task solution works perfectly and now I would like expand this basic application.

 

Yours,
Ilkka

0 Kudos
Message 3 of 5
(3,846 Views)
Hi Ilkka,
I think you need two tasks in a while or for loop who only perform one data acquisition at a time.
Than it is comparable to a continuous reading, because the while loop is executed at very high speed.
 
Hope this helps you a bit
 
Best regards
Philipp N.
NIG AE
0 Kudos
Message 4 of 5
(3,821 Views)

Yesh Philipp,

I have created two task and played a little.

But I cannot handle the counter of 6024E (one task is for monitoring for analog inputs and the other for one counter).

This problem is posted to the counter forum:

http://forums.ni.com/ni/board/message?board.id=40&message.id=4300

BR,
Ilkka

0 Kudos
Message 5 of 5
(3,789 Views)