Jump to content

Digitial IN AND OUT in one DAQmx task


i2dx

Recommended Posts

Hi Folks,

I want to use the digital IOs of a NI-PXI-6030E: one line as Input, one line as Output, Single Update, Software-Timing 250 ms

I just wonder, if it is possible to use digital IN AND OUT in one single DAQmx Task? I never did that before with DAQmx ;) and currently it seems, that it will NOT work (Error -200559: DAQmx Create Channel (DI-Digital Input).vi:Task cannot contain a channel with the specified channel type, because the task already contains channels with a different channel type.)

That worked with traditional DAQ, where you could set a "Line mask" on a port where you could set the direction. But I can not find anything similar in DAQmx.

Has anyone a clue for me?

-> the workaround would simple be to use 2 tasks ... thus there is no "real" problem ...

Thanks,

CB

Link to comment
Has anyone a clue for me?

-> the workaround would simple be to use 2 tasks ... thus there is no "real" problem ...

Hi i2dx,

I think the silence has warned you already but it is not possible. When starting a task you already have to set its main properties and directions. So go with two tasks.

Ton

Link to comment
I think the silence has warned you already but it is not possible. When starting a task you already have to set its main properties and directions. So go with two tasks.

I thought as much ...

thank you anyway!

cheers,

CB

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.