03-07-2012 12:43 PM - edited 03-07-2012 12:49 PM
Test Case Scenario: Using a single PXI 6509 12 Ports, 3 Port as Output, 3 Ports as Input.
Creating three seperate groups for each input port and three seperate task for each input Port to monitor change detection.
Using three lines, a single line of each of the 3 Output ports to provide a signal to my input ports to monitor the change detection.
Issue i am currently experiencing is after registering three seperate events using the DAQmxRegisterSignalEvent, the change detection
mask cannot not be updated because of a resource in use. In a loop i am essential changing that data my output port writes and changing the
rising/falling mask. When I stop the task that is configured to monitor the change detect, update the mask and start back again, it fails
start the task do to a resource issue in use. THIS ONLY OCCURS WHEN REGISTERING THREE CHANGE DETECT EVENTS. If i run
my code for a single port there are no issues stoping the task, updating the rising/falling mask and starting it back up again. Once I configure additional ports
this problem occurs. Note i did create seperate digital channels for each port and assign them to a task. The source code attached is what i based my
program on.
Wiring:
Task 1 - Port 0 Lines 0-7 ( Line 0 to External Signal 0) to Port 3 - Line 0
Task 2 - Port 1 Lines 0-7 ( Line 0 to External Signal 1) to Port 4 - Line 0
Task 3 - Port 2 Lines 0-7 ( Line 0 to External Signal 2) to Port 5 - Line 0
Configure Change Detection Task 1
-Mask,Timing,etc..
Register Change Detection
Configure Change Detection Task 2
-Mask,Timing,etc..
Register Change Detection
Configure Change Detection Task 3
-Mask,Timing,etc..
Register Change Detection
Attached is an example of the methods i'm using. However my example essently repeats the process below for three
input ports.
03-08-2012 03:04 PM
Hi kt.orlando.fl,
I've got a few questions for you.
What is the error that you are getting, does it says "the change detection
task cannot not be updated because of a resource in use"? Can you attach a screenshot of your error message? What Operating System are you using? Also, what version of the DAQmx driver do you have?
Regards,
Travis Ann