I'm trying in vain to properly interface with an RS-232 instrument. I have the documentation for the serial commands, but can't get it working properly. The sending of data doesn't seem to work at all. I can get legible data from the instrument, but it seems to be ignoring any specific commands I send.....
The following is performed by the software delivered with the instrument (protocolled using Portmon)...
IOCTL_SERIAL_SET_WAIT_MASK Serial1 Mask: RXFLAG
IOCTL_SERIAL_SET_BAUD_RATE Serial1 Rate: 19200
IOCTL_SERIAL_SET_RTS Serial1
IOCTL_SERIAL_SET_DTR Serial1
IOCTL_SERIAL_SET_LINE_CONTROL Serial1 StopBits: 1 Parity: NONE WordLength: 8
IOCTL_SERIAL_SET_CHAR Serial1 EOF:d ERR:0 BRK:0 EVT:a XON:11 XOFF:13
IOCTL_SERIAL_SET
_HANDFLOW Serial1 Shake:1 Replace:43 XonLimit:1024 XoffLimit:1024
IOCTL_SERIAL_SET_QUEUE_SIZE Serial1 InSize: 4096 OutSize: 2048
IOCTL_SERIAL_WAIT_ON_MASK Serial1
I can't get the EOF, EVT, Xonlimit and Xofflimit values to match these. Perhaps my problem with communication has to do with this difference? Is there a similar function to WAIT_ON_MASK within VISA?
Can I call the windows Serial commands, and execute IOCTL commands from within LabVIEW? Or better still, are there equivalent VISA commands I haven't found yet?
Thanks
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)