During initialization I set CIO0 high. I then initialize streaming mode with channel 193 only. However, once streaming commences, CIO0 is reset! Any ideas? Thanks
Streaming channel 193 resets CIO0 low
Posted 11 June 2014 - 05:06 AM
Are CIO1 and CIO2 affected as well? If so, your U6 is in extended multiplexing mode. In this mode the MIO lines (which are shared with CIO) will be set in order to control external multiplexors. Extended multiplexing mode is enabled whenever an analog channel greater than 15 and less than 192 is used.
Posted 11 June 2014 - 05:50 AM
Yes, CIO1 and CIO2 are both affected. I'm using the manufactures default settings and have not intentionally set any analogue channels. How can I turn the extended multiplexing mode off? Here's the code that initializes the stream:
AddRequest(m_lDeviceHandle, LJ_ioCLEAR_STREAM_CHANNELS, 0, 0, 0, 0);
AddRequest(m_lDeviceHandle, LJ_ioADD_STREAM_CHANNEL, 193, 0, 0, 0);
eGet(m_lDeviceHandle, LJ_ioSTART_STREAM, 0, &dValue, 0));
Posted 13 June 2014 - 06:26 AM
I ran the following three tests with firmware 1.39:
1) Set CIO[0:2] output high. Stream AIN0, AIN1, and 193. CIO[0:2] remain set to output high.
2) Set CIO[0:2] output low. Stream AIN0, AIN1, and 193. CIO[0:2] remain set to output low.
3) Set CIO[0:2] input. Stream AIN0, AIN1, and 193. CIO[0:2] remain set to input.
We must have missed a detail somewhere. Can you send a program that demonstrates the problem to our support email: [email protected]
Posted 13 June 2014 - 06:31 AM
I think I found it. The first channel in a scan must be an AIN.
Posted 13 June 2014 - 07:48 AM
Yep, that fixed it - thanks.
Is having AIN as the first channel in the scan a general requirement? Or is it only necessary to prevent the CIO lines from changing?
Posted 13 June 2014 - 08:54 AM
An AIN in the first channel is a general requirement for U-series devices. T-Series does not have this requirement.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users