09-20-2021 05:40 AM
Hi,
i have a problem with simultaneous read and write digital input/output witch NI 9401 Module.
The following error is occuring:
Error -200125 occurred at DAQmx Control Task.vi:3900003
Possible reason(s):
Lines 4 through 7 of this port are configured for output. Cannot configure these lines for input at this time.
Device: cDAQ1Mod1
Digital Port: 0
Task Name: IGN_READ
On this forum and in Labview Help i didn't find another similar problem or example able to help me.
You can find the attachment to view the vi file.
Thanks in advance
09-20-2021 06:18 AM
Hi dzanella,
@dzanella wrote:
i have a problem with simultaneous read and write digital input/output witch NI 9401 Module.
The following error is occuring:
Error -200125 occurred at DAQmx Control Task.vi:3900003
Possible reason(s):
Lines 4 through 7 of this port are configured for output. Cannot configure these lines for input at this time.
Device: cDAQ1Mod1
Digital Port: 0Task Name: IGN_READ
The error description is quite clear: you cannot read from DO channels…
@dzanella wrote:
You can find the attachment to view the vi file.
No, not yet…
09-20-2021 07:03 AM
thanks for your respond, but even if i change to digital input the same error occur.
Now would be there the attachment
09-20-2021 07:46 AM - edited 09-20-2021 07:56 AM
Hi dzanella,
did you read the datasheet of the NI9401 (carefully)?
It only allows to set input/output in 2 groups of 4 channels per group! Right on the first page it says:
The eight DIO channels are grouped in two ports that you can configure independently for input or output.
You are trying to use
So there are two failures:
More problems:
09-28-2021 02:37 AM
Sorry for the late response, i resolve the problem about the channels.
I use "one channels for al the lines" because i saw it in some example and in that way the program works, then I don't undestand what you mean about using task reference in my case
09-28-2021 02:58 AM - edited 09-28-2021 02:59 AM
Hi dzanella,
@dzanella wrote:
I don't undestand what you mean about using task reference in my case
This:
We don't know these DAQmx task references…
@dzanella wrote:
Sorry for the late response, i resolve the problem about the channels.
How did you do that? This forum works best, when you provide the solution to your problem…
09-29-2021 02:34 AM
In IGN, FlameDet and IGN_READ tasks, i've just define the pins i use as input or output. Nothing else. Again, in that way the program works but i put this tasks when channles problem persisted so i don't know if i do in another way the program would work anyway