Hi
I'm using SignalExpress 2012 and a NI USB-6259 board to measure the function of 4 relays.
The test procedure i very long and the operation of the relays occurs more or less periodically.
I'm having trouble measuring the relays using digital input and counting the operations of relay no. 1 simultaneously.
My setup is as follows (see also the attached project file)
- DAQmx Generate - Generate clock for the digital inputs measurement
- Pulse output: Dev1_ctr0 (Dev1 is the USB-6259 on my system)
- Generation Mode: N Pulses
- Samples to Write: 100
- Output Terminal: PFI12
- Trigger Source: PFI0 (Relay no. 1 connected here to act as the trigger since it always operates whenever one of the other relays operates)
- Timeout: -1 (run until stopped)
- DAQmx Acquire - Measure relays digitally
- Digital Input: Dev1_port0_line0, Dev1_port0_line1, Dev1_port0_line2, Dev1_port0_line3 (Relay no. 1, 2, 3 and 4)
- Acquisition Mode: N Samples
- Samples to Read: 100 (to match the 100 samples generated by the step above)
- Triggering: None
- Advanced Timing
- Sample Clock Type: External
- Clock Source: PFI11 (the clock output generated at PFI12 by the step above is connected to this input)
- Timeout: -1
- DAQmx Acquire - Count number of operations on relay no. 1
- Edge Count: Dev1_ctr1 (Relay no. 1 i also connected to this input.)
- Acquisition Mode: 1 Sample (On Demand)
Using only step 1 and 2 everything works perfectly. But when I add the 3rd step I get an error (no. 50103) saying that two resources can't use the same device simultaneously, see attached picture.
Any input on this is much appreaciated!
Regards,
Joacim