05-25-2012 03:19 PM
Hi,
Please find the VI attached with no Flatten to String, 'End on termination character' set to true, and saved with current values as default. Additionally, as you asked, I have enclosed the manual.
Hyperterminal was set for auto-detect, but when I went into File > Properties > Settings, and changed it to ANSI emulation, disconnected and then reconnected, I still got good data. As in, it looked almost identical in the Hyperterminal window.
05-25-2012 03:39 PM
The manual says it is using 7 data bits, that the default is odd parity, hardware handshaking (none is not an option), This is for ASCII mode. I don't really have an idea what the other mode (XBPI) is or how it is supposed to work. It also seems the instrument is not sending LF.
05-25-2012 03:41 PM - edited 05-25-2012 03:43 PM
Are you sure about your serial port settings? The manual on page 12 talks about ASCII with 7 data bits (you are set for 😎 and a parity bit of space, odd, or even (you are set for none.) I really expect it is odd parity because looking at your bytes in binary, they all have an odd number of 1's.
The other thing that makes me suspect about your settings is that you say it ends in CR/LF (and so does the manual) which would be 0D 0A in hex. But all your lines end in 0D 8A. That 8 should be a zero which tells me the first bit should be a zero.
I took a look at your data and ANDed it with 7F to turn off the high bit. What do you know, the results look like real data.
Double check your serial port settings. I don't think they match your hyperterminal settings.
05-25-2012 03:53 PM
Thanks for all your help.
05-25-2012 03:53 PM
@Ravens Fan wrote:
Are you sure about your serial port settings? The manual on page 12 talks about ASCII with 7 data bits (you are set for 😎 and a parity bit of space, odd, or even (you are set for none.) I really expect it is odd parity because looking at your bytes in binary, they all have an odd number of 1's.
_________________________________________________________________________________________________________________________________________
I seem to recall saying this in the first response to this thread. Though I was not able to give specifics since we just got the manual.
05-25-2012 03:57 PM
@Mark_Yedinak wrote:
@Ravens Fan wrote:
Are you sure about your serial port settings? The manual on page 12 talks about ASCII with 7 data bits (you are set for 😎 and a parity bit of space, odd, or even (you are set for none.) I really expect it is odd parity because looking at your bytes in binary, they all have an odd number of 1's.
_________________________________________________________________________________________________________________________________________
I seem to recall saying this in the first response to this thread. Though I was not able to give specifics since we just got the manual.
You certainly did. But then the original poster swore he double checked the settings and they were 8, none, 1.
Unfortunately there is no way to prove them wrong until they post the manual and some real data.
I'll toss a kudo your way though.
05-25-2012 03:59 PM
Yes, the problem was that I had set those settings via software. So I knew what the settings on the device were. They did not seem to survive a power cycling.
IThanks again for all your help.
05-25-2012 04:01 PM
@tiki12revolt wrote:
Yes, the problem was that I had set those settings via software. So I knew what the settings on the device were. They did not seem to survive a power cycling.
IThanks again for all your help.
The lesson here is to verify your settings. It would have saved you a day trying to resolve the "problem."
05-25-2012 04:02 PM
@Ravens Fan wrote:
@Mark_Yedinak wrote:
@Ravens Fan wrote:
Are you sure about your serial port settings? The manual on page 12 talks about ASCII with 7 data bits (you are set for 😎 and a parity bit of space, odd, or even (you are set for none.) I really expect it is odd parity because looking at your bytes in binary, they all have an odd number of 1's.
_________________________________________________________________________________________________________________________________________
I seem to recall saying this in the first response to this thread. Though I was not able to give specifics since we just got the manual.
You certainly did. But then the original poster swore he double checked the settings and they were 8, none, 1.
Unfortunately there is no way to prove them wrong until they post the manual and some real data.
I'll toss a kudo your way though.
Thanks. A a kudos your way for the excellent explanation of what was going on.