02-26-2014 01:12 AM
Hi,
This error comes from TestStand BatchModel but it concerns about DAQmx Read (Digital Bool 1Line 1Point).vi.
I loop that vi (see attachment daqerror3.png) during the test. This error happens either after the test is over or at the beginning of the test. I'm wondering if there is something which interferes with it? Difficulty is that it does not occur every time. It is random.
Any ideas?
I had Traditional DAQ installed but I removed it. No help.
Regards,
Jick
02-26-2014
08:59 AM
- last edited on
10-20-2024
12:30 PM
by
Content Cleaner
Jick,
Sounds like you are probably trying to access the same resource (digital line) at the same time between two of your parallel executions. You might considering use a Lock Step in TestStand to lock that resource so not other resources try and access it at the same time.
You might try running just 1 up and see if the error goes away, if so, the error is probably just because that resource is trying to be accessed by two executions at the same time.
I'm also assuming the VI works fine if you run it independently of TestStand?
02-26-2014 09:36 AM
That is worth of trying. But how to do that? I am not familiar with locks.
I tried to use synchronization property (Use Lock to Allow Only One Thread at a Time to Execute the Step) (for step which calls "daqerror3.png") but it does not help. Vi (daqerror3.PNG) is probably not called from anywhere else but DaqMX Read (which is inside "daqerror3.png) might be called from somewhere at the same time. How to ensure that all vis inside are locked during the execution of that step?
BR,
Jick
02-26-2014 09:49 AM
Look at the TestStand example on locks, should give you a good example to use in your program. It's under TestStand 20XX » Examples » Synchronization, LockDemo.seq.
02-27-2014 01:26 AM
Ok, I tried to lock the error causing step but no help ... Any other ideas?
BR,
Jick
02-27-2014
10:16 AM
- last edited on
10-20-2024
12:30 PM
by
Content Cleaner
Jick,
You will need to lock / unlock any steps that use that DAQmx digital resource, are there other steps in your sequence that use it? You can also take an I/O Trace Capture and look at what commands are being sent to the DAQ card.
03-05-2014 04:51 AM
Hi,
I solved the problem. There was DAQmx reset in one process which caused the error. Thanks for help!
Jick