12-02-2009 10:39 AM
johnsold wrote:What does the motor controller send back? How does that compare between the LV program and the manufacturer's software?
Lynn
That is a good question Lynn.
Does the device only receive?
Ben
12-03-2009 10:19 AM
The device sends stuff back when you invoke the "Verify" command (@0V<command>[profile]). The device also writes back when errors are requested with the @0! command. I've bolded the rows where the device wrote back to me:
0.00115294 DAQ and Control IRP_MJ_WRITE Serial2 SUCCESS Length 5: @0VN1
0.00000223 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00092889 DAQ and Control IRP_MJ_WRITE Serial2 SUCCESS Length 1: .
0.00000363 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000196 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000168 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000559 DAQ and Control IRP_MJ_READ Serial2 SUCCESS Length 5: 8890.
0.00000168 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000503 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00072691 DAQ and Control IRP_MJ_WRITE Serial2 SUCCESS Length 9: @0T1_4444
0.00000223 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00093867 DAQ and Control IRP_MJ_WRITE Serial2 SUCCESS Length 1: .
0.00000782 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00097917 DAQ and Control IRP_MJ_WRITE Serial2 SUCCESS Length 5: @0VT1
0.00000251 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00094481 DAQ and Control IRP_MJ_WRITE Serial2 SUCCESS Length 1: .
0.00000643 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000168 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000168 DAQ and Control IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000587 DAQ and Control IRP_MJ_READ Serial2 SUCCESS Length 5: 4444.
@smercurio_fc - I see. I'm tempted to try sending 1 char at a time just to see if it clears up my error flag happening during normal operation. I also agree that it shouldn't matter, but something about the way I'm writing to the motor is causing it to throw an error flag at me about an invalid command and I am simply not seeing it. Functionality is fine. My program works just fine, except I have to ignore errors from the motor (which is undesirable). I'm about out of time I can spend on this though ><.
12-03-2009 10:28 AM
Their software sending and receiving the same command:
0.00085123 SMPG-SMSI Softw IRP_MJ_WRITE Serial2 SUCCESS Length 1: V
0.00000279 SMPG-SMSI Softw IOCTL_SERIAL_SET_WAIT_MASK Serial2 SUCCESS Mask: RXCHAR TXEMPTY CTS DSR RLSD BRK ERR RING
0.00078278 SMPG-SMSI Softw IOCTL_SERIAL_WAIT_ON_MASK Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000168 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_GET_PROPERTIES Serial2 SUCCESS
0.00088559 SMPG-SMSI Softw IRP_MJ_WRITE Serial2 SUCCESS Length 1: N
0.00000251 SMPG-SMSI Softw IOCTL_SERIAL_SET_WAIT_MASK Serial2 SUCCESS Mask: RXCHAR TXEMPTY CTS DSR RLSD BRK ERR RING
0.00082217 SMPG-SMSI Softw IOCTL_SERIAL_WAIT_ON_MASK Serial2 SUCCESS
0.00000503 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000168 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000168 SMPG-SMSI Softw IOCTL_SERIAL_GET_PROPERTIES Serial2 SUCCESS
0.00079451 SMPG-SMSI Softw IRP_MJ_WRITE Serial2 SUCCESS Length 1: 1
0.00000307 SMPG-SMSI Softw IOCTL_SERIAL_SET_WAIT_MASK Serial2 SUCCESS Mask: RXCHAR TXEMPTY CTS DSR RLSD BRK ERR RING
0.00072914 SMPG-SMSI Softw IOCTL_SERIAL_WAIT_ON_MASK Serial2 SUCCESS
0.00000279 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000168 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_GET_PROPERTIES Serial2 SUCCESS
0.00089592 SMPG-SMSI Softw IRP_MJ_WRITE Serial2 SUCCESS Length 1: .
0.00000251 SMPG-SMSI Softw IOCTL_SERIAL_SET_WAIT_MASK Serial2 SUCCESS Mask: RXCHAR TXEMPTY CTS DSR RLSD BRK ERR RING
0.00083670 SMPG-SMSI Softw IOCTL_SERIAL_WAIT_ON_MASK Serial2 SUCCESS
0.00000335 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000223 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000223 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000363 SMPG-SMSI Softw IOCTL_SERIAL_SET_WAIT_MASK Serial2 SUCCESS Mask: RXCHAR TXEMPTY CTS DSR RLSD BRK ERR RING
0.00262547 SMPG-SMSI Softw IOCTL_SERIAL_WAIT_ON_MASK Serial2 SUCCESS
0.00000307 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000670 SMPG-SMSI Softw IOCTL_SERIAL_SET_WAIT_MASK Serial2 SUCCESS Mask: RXCHAR TXEMPTY CTS DSR RLSD BRK ERR RING
0.00084257 SMPG-SMSI Softw IOCTL_SERIAL_WAIT_ON_MASK Serial2 SUCCESS
0.00000335 SMPG-SMSI Softw IOCTL_SERIAL_SET_WAIT_MASK Serial2 SUCCESS Mask: RXCHAR TXEMPTY CTS DSR RLSD BRK ERR RING
0.00000363 SMPG-SMSI Softw IOCTL_SERIAL_WAIT_ON_MASK Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_SET_WAIT_MASK Serial2 SUCCESS Mask: RXCHAR TXEMPTY CTS DSR RLSD BRK ERR RING
0.00089620 SMPG-SMSI Softw IOCTL_SERIAL_WAIT_ON_MASK Serial2 SUCCESS
0.00000475 SMPG-SMSI Softw IOCTL_SERIAL_SET_WAIT_MASK Serial2 SUCCESS Mask: RXCHAR TXEMPTY CTS DSR RLSD BRK ERR RING
0.08394195 SMPG-SMSI Softw IOCTL_SERIAL_WAIT_ON_MASK Serial2 SUCCESS
0.00000810 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000168 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00001006 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000810 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000196 SMPG-SMSI Softw IOCTL_SERIAL_GET_COMMSTATUS Serial2 SUCCESS
0.00000754 SMPG-SMSI Softw IRP_MJ_READ Serial2 SUCCESS Length 5: 8890.
I think I'm going to send them an email and ask them if there is a reason they send 1 character at a time to the device.