05-13-2008 06:46 AM
// Arrange the data in a CNiBoolVector
unsigned long length = sizeof(m_checks) / sizeof(BOOL);
CNiBoolVector vector(length);
for (unsigned long i = 0; i < length; i++) {
if (m_checks[i]) {
vector[i] = true;
}
else {
vector[i] = false;
}
}
05-30-2008 06:03 AM
Hello,
This post also seems to relate to this thread with a Counter Output instead of a Digital Output.
I noted that you want “to measure the time the command has been generated and captured by the 2nd module”. Please clarify the reasoning and how it relates to the application. I am assuming that you are interested in the time between when the signal is generated and acquired on the different modules. Are you interested in this because you are wiring the output directly to the 2nd 9401’s AUX and also routing the generated signal through other hardware and then to the 2nd 9401’s GATE of the Counter Input. Please explain more about your application and physical wiring setup.
At this point, I am assuming the error 200474 is likely occurring at the Counter Input due to a lack of signal on the GATE. Please look to this older post for a discussion on wiring for a Two Edge Separation task.
Please clarify the application and let me know if I have misunderstood your application.
06-01-2008 09:29 PM
06-03-2008 07:41 AM
Hello,
I am a bit confused if you actually got the two edge separation working and if you need further assistance with the application. Please clarify if you are up and running with the DO and DI and are still interested in getting the two edge separation working or if you are satisfied with the DO and DI. Please layout what your current setup is with the two edge separation if any changes have been made and you want to discuss the application further.