Jump to content

BenMeyer

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by BenMeyer

  1. Thank you. Unfortunately it doesn't work (same result) I'd also tried creating a _opencomm2($CommCtrl2) and looping through a lot of values for CommCtrl2, but there isn't any difference in the output. I'd never rule out stupidity on my part, but since the commg dll method does work, I may need to stick with that since the commctrl hex codes seem to be undocumented. But if there are any other ideas, I'm game to try. Thank you, Ben
  2. This solution has nice no-dll advantages over COMMG. However, I see the following in the .ini file: CommCtrl=0x0011 It seems when this is read in by AutoIt3, the AutoIt3 variable actually read in is '0' if I am debugging correctly. Anyway, for me this 0x0011 setting works with the sending text commands, but not receiving text from our nice A&D GX-1000 precision balance. The receiving is correct # characters, but they are not correct. Should be: ST,+0011.584 g (with a @CRLF at the end) Actual: [W/+??;?/;7;??wmk When I used the COMMG.dll I get correct answer for both sending and receiving text from the balance. CommG settings are: _CommSetPort(4, $sErr, 2400, 7, 2, 1, 0) (iFlow = 0 = sets hardware flow control) Finally, my question: if iFlow=0 with Commg.dll works, what should CommCtrl=??? for TABALtd's method so it too will work when reading text from serial line? Thank you, Ben
×
×
  • Create New...