HP50g serial communication with 3rd party device
|
07-24-2015, 03:36 AM
Post: #2
|
|||
|
|||
RE: HP50g serial communication with 3rd party device
Hi,
Think the commands you may be looking for are: XMIT (Requires a string to be sent to serial device on line 1 of stack. Will return 1 or 0) BUFLEN (Requires nothing on stack. Will return 1 or 0, if 1 will have the length of the buffer on line 2 of stack) SRECV (Requires length of expected reply on line 1 of stack, will return 1 or 0, if 1 the response string will be on line 2 of stack) To send a command and then listen for a response you'd try something like: << "<Prefix > . <Variable> <Operator> <Value> <CR> (and/or) <LF>" XMIT DROP 1 WAIT BUFLEN DROP 1 WAIT SRECV >> You may want to increase the wait time or eliminate it all together depending on how fast your serial device can process commands. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)