LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How make two analog channel with different paremeters using NI USB 6341

Hello!

I must solve next task:
I must check frequency at the power line 220V, because this frequency have some changes in the time. I make it in the Vi, using AI0 and CTR3. Using this frequency I must change AI2 counter frequency, but I have errors, because this AI in the same card.

 

Error -50103 occurred at DAQmx Start Task.vi:3
Possible reason(s):
NI Platform Services: The specified resource is reserved. The operation could not be completed as specified.
Task Name: _unnamedTask<7F>

 

How I can solve this task using one card?

Regards, Pavel

0 Kudos
Message 1 of 17
(3,285 Views)

Take a look at this Knowledge Base and see if it helps.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 17
(3,258 Views)

Sorry, but I can't open this link.

Could you send other resource with this information or check link.

0 Kudos
Message 3 of 17
(3,246 Views)

This link should work.  I'm sorry about that.

Applications Engineer
National Instruments
0 Kudos
Message 4 of 17
(3,209 Views)

Hello!
Thank your, but I'm already know why I have this problem and in my description I make question may be somebody know how start two analog output channels on the same card with different parameters. May be NI produce some special cards for this application. I can solve this task using two card, but this is expensive and too cumbersome

Regards, Pavel 

0 Kudos
Message 5 of 17
(3,192 Views)

Would you like to do analog inputs or outputs? In your original question you mentioned inputs, but in your last post you mentioned outputs.

Applications Engineer
National Instruments
0 Kudos
Message 6 of 17
(3,177 Views)

Hello!

 

This is really my mistake in the last post, but I have the same problem with output and input channels. There we are discuss about how we can using and configure with different parameters some INPUT channels on the one card.

0 Kudos
Message 7 of 17
(3,170 Views)

You can do this by setting up your DAQmx task in LabVIEW.  You can then specify two channels in the physical channels input to the Create Virtual Channel vi. You will need to separate the two channels with a comma.  For example, you can write "Dev1/ai0,Dev2/ai1".  I set up an analog input task using a simulated 6341 and was able to get it to work using two input channels.

 

 

Applications Engineer
National Instruments
0 Kudos
Message 8 of 17
(3,152 Views)

Correction to my last post: I meant to say "Dev1/ai0,Dev1/ai1"

Applications Engineer
National Instruments
0 Kudos
Message 9 of 17
(3,151 Views)

Hello!

 

In my first post you can download my example-code.

If you make "Dev1/ai0,Dev1/ai1" using one "Create Virtual Channel.vi", than you can't configure this channels with different parameters for NI USB 6341.

 

Regards, Pavel

0 Kudos
Message 10 of 17
(3,141 Views)