LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion of VISA output to human readable string

Solved!
Go to solution

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.

Download All
0 Kudos
Message 11 of 19
(777 Views)

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.

0 Kudos
Message 12 of 19
(768 Views)
Solution
Accepted by topic author tiki12revolt

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.

 

Message 13 of 19
(765 Views)

Thanks for all your help.

0 Kudos
Message 14 of 19
(756 Views)

@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.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 15 of 19
(755 Views)

@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.Smiley Happy

0 Kudos
Message 16 of 19
(752 Views)

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.

0 Kudos
Message 17 of 19
(750 Views)

@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."



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 18 of 19
(745 Views)

@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.Smiley Happy


Thanks. A a kudos your way for the excellent explanation of what was going on.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 19 of 19
(742 Views)