11-28-2012 06:44 PM
Hi there,
I am running two NI WiFi CDAQ s 9191 at the same time.
In my first chassis I have NI 9234 with which I am acquiring BP data.
In my second chassis I have NI 9401 from which I am trying to supply my pressure sensor and solenoid valve to close leakage in system.
However, when I run my program, I get the following message (pasted at the end).
I think this is something simple to fix? I am using the WiFi modules for the first time. Any help would be greatly appreciated.
I am pasting my code for your reference.
Best regards,
Saif
-----ERROR MESSAGE-----
Possible reason(s):
Device cannot be configured for input or output because lines and/or terminals on this device are in use by another task or route. This operation requires temporarily reserving all lines and terminals for communication, which interferes with the other task or route.
If possible, use DAQmx Control Task to reserve all tasks that use this device before committing any tasks that use this device. Otherwise, uncommit or unreserve the other task or disconnect the other route before attempting to configure the device for input or output.
Device: cDAQ9191-1775C70Mod1
Digital Port: 0
Lines: 4
Task Name: _unnamedTask<F2>
-----ERROR MESSAGE-----
11-28-2012 07:46 PM
Sorry, I had forgotten to give a proper subject line. Therefore, reposting...
----
Hi there,
I am running two NI WiFi CDAQ s 9191 at the same time.
In my first chassis I have NI 9234 with which I am acquiring BP data.
In my second chassis I have NI 9401 from which I am trying to supply my pressure sensor and solenoid valve to close leakage in system.
However, when I run my program, I get the following message (pasted at the end).
I think this is something simple to fix? I am using the WiFi modules for the first time. Any help would be greatly appreciated.
I am pasting my code for your reference.
Best regards,
Saif
-----ERROR MESSAGE-----
Possible reason(s):
Device cannot be configured for input or output because lines and/or terminals on this device are in use by another task or route. This operation requires temporarily reserving all lines and terminals for communication, which interferes with the other task or route.
If possible, use DAQmx Control Task to reserve all tasks that use this device before committing any tasks that use this device. Otherwise, uncommit or unreserve the other task or disconnect the other route before attempting to configure the device for input or output.
Device: cDAQ9191-1775C70Mod1
Digital Port: 0
Lines: 4
Task Name: _unnamedTask<F2>
-----ERROR MESSAGE-----
11-29-2012 12:20 AM
Hi Vhha,
do you also use 9401 channel as digital input? I think the error is caused by mixed DI and DO task in one port.
11-29-2012 01:40 AM
Hi taov,
Thats what I thought. But no, I only use it for D/O striclty.
Any ideas how to stop this from happening?
Cheers,
Saif
11-29-2012 02:34 AM
Is it possible to merge those two DO task to 1 DO task? And also, try to used line 0 and 1, because based on the manual book, 9401 channels are grouped in two port. One containing channels 0 - 3, and the other containing channel 4 - 7.
11-29-2012 07:00 AM
11-29-2012 07:34 AM
11-29-2012 07:50 AM
Thanks Taov!
Will try and let you know.
Cheers,
Saif
11-30-2012 11:03 PM
Hi Taov,
I tried to do what you suggested but it gave me error.
Besides, as my program gets complicated, I want to do more that just sending 5V output constantly. At times, I want to send 5V and then 0V as some conditions change (from the same channel). Such as switching ON/OFF a pump.
I tried this post:
http://digital.ni.com/public.nsf/allkb/0495B7D5E2345DF386257730007EFD17
I tried to include my code in the flat structure sequence.
Please see attachment.
But still does not work!
Cheers,
Saif
12-03-2012 11:49 AM
Hello Saif,
What error code are you getting? Can you please post a screenshot of it?
Thanks,
Joel C
National Instruments