Aro
2008-04-10 22:40:09 UTC
Hi guys,
I am using the NI USB 6501 to monitor parallel port communication between a windows 3.10 computer (host) and a measuring device (peripheral). The host and peripheral are connected via straight through 25 pin parallel cable. I snoop all lines from this cable Control-4, Status-5, Data-8, GND-8, and route it to the USB 6501's terminals. All the ground lines are connected to one of the USB 6501's GND terminal, rest of the signals are connected as in the code below for my capture software. I record the control, status and data bits to a text file. Ran the software on the host side with the peripheral on and my capture software running. I know for sure that the first thing the host do is send the contents of an ascii file to the peripheral. But when I analyzed the log from my capture software, the characters formed of data bits doesn't match the contents of the ascii file. Do any one know what I am doing wrong here. Is it really possible to monitor parallel port signals using USB 6501?
/* code in thread start up */
// DAQmx create taskpDlg->UpdateError( DAQmxCreateTask("MyCapture",&pDlg->m_hTaskHandle) );
// DAQmx digital input channel settingsif( pDlg->m_nNIErrCode == 0 ) pDlg->UpdateError( DAQmxCreateDIChan(pDlg->m_hTaskHandle, "Dev1/port0/line0:7", "Data", DAQmx_Val_ChanPerLine));
if( pDlg->m_nNIErrCode == 0 ) pDlg->UpdateError( DAQmxCreateDIChan(pDlg->m_hTaskHandle, "Dev1/port1/line0:3", "Control", DAQmx_Val_ChanPerLine));
if( pDlg->m_nNIErrCode == 0 ) pDlg->UpdateError( DAQmxCreateDIChan(pDlg->m_hTaskHandle, "Dev1/port2/line3:7", "Status", &nbs
I am using the NI USB 6501 to monitor parallel port communication between a windows 3.10 computer (host) and a measuring device (peripheral). The host and peripheral are connected via straight through 25 pin parallel cable. I snoop all lines from this cable Control-4, Status-5, Data-8, GND-8, and route it to the USB 6501's terminals. All the ground lines are connected to one of the USB 6501's GND terminal, rest of the signals are connected as in the code below for my capture software. I record the control, status and data bits to a text file. Ran the software on the host side with the peripheral on and my capture software running. I know for sure that the first thing the host do is send the contents of an ascii file to the peripheral. But when I analyzed the log from my capture software, the characters formed of data bits doesn't match the contents of the ascii file. Do any one know what I am doing wrong here. Is it really possible to monitor parallel port signals using USB 6501?
/* code in thread start up */
// DAQmx create taskpDlg->UpdateError( DAQmxCreateTask("MyCapture",&pDlg->m_hTaskHandle) );
// DAQmx digital input channel settingsif( pDlg->m_nNIErrCode == 0 ) pDlg->UpdateError( DAQmxCreateDIChan(pDlg->m_hTaskHandle, "Dev1/port0/line0:7", "Data", DAQmx_Val_ChanPerLine));
if( pDlg->m_nNIErrCode == 0 ) pDlg->UpdateError( DAQmxCreateDIChan(pDlg->m_hTaskHandle, "Dev1/port1/line0:3", "Control", DAQmx_Val_ChanPerLine));
if( pDlg->m_nNIErrCode == 0 ) pDlg->UpdateError( DAQmxCreateDIChan(pDlg->m_hTaskHandle, "Dev1/port2/line3:7", "Status", &nbs