LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

Tags
This content has not been tagged yet

> Related links

Visit our LabVIEW Wiki Hardware Portal


 
Reply to this topic Start new topic
> VISA Read Ignores 0x00
MSpidey
post Jun 28 2008, 07:31 PM
Post #1


I've come back for more.


Member
Posts: 2
Joined: 28-June 08
Member No.: 11873
Using LabVIEW Since:2008
LV:8.5.1 ,. ,.
Nothing Selected Nothing Selected Nothing Selected


Hello fellow Labview users,

I am building a GUI using Labview to display the status of a microprocessor circuit I am building. The data is being sent via a serial link from the microprocessor to the computer with my GUI. I am using VISA Read to bring the data in. I am able to get all the information I need across unless I try to send the byte 0x00. Any zeros bytes are ignored by the VISA Read completely. Shown in the two images attached are the VISA Configure Serial Port setup I am using as well as how I am bringing in the information with VISA Read. I will also include the vi but I imagine that it would be somewhat difficult to understand what I am trying to do as I haven't used Labview much so some of my setup is pretty weird. sad.gif Basically the system continually reads in one byte from the serial port and checks to see if it is equal to 0xEB. When it finds 0xEB it then looks to see if the next one is 0x90. If it is as well, then the system knows that the next 8 bytes are valid information and the data is processed accordingly. I actually haven't finished the data processing part completely because I need it to be able to read 0x00 for some of the cases so any code after that point can be ignored. I can tell that the VISA Read is ignoring 0x00 because I have it set to read in the next 8 bytes after it syncs and so far whenever there is a 0x00 it picks up the last byte as being 0xEB or the beginning of the next string. Any help would be greatly appreciated as I have been working on this for a few days now and have no idea what to do to resolve it.

M Spidey

Attached image(s)
Attached Image Attached Image
 

Attached File(s)
Attached File  MSP430GUI2.vi ( 103.79K ) Number of downloads: 57
 


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ad
post Jun 28 2008, 07:31 PM
Post #















Tags
This content has not been tagged yet
Go to the top of the page
Quote Post
BobHamburger
post Jun 29 2008, 06:32 PM
Post #2


Very Active
***

Member
Posts: 51
Joined: 4-April 07
From: Andover, CT
Member No.: 8297
Using LabVIEW Since:1999
LV:8.2.1 ,7.1.1 ,.
United States Nothing Selected Nothing Selected My Blog


Wire up a Property Node to your VISA refnum. Look for Properties>>Serial Settings>>Discard NUL Characters, and set it to False.
Attached thumbnail(s)
Attached Image
 

--------------------
LabVIEW. It's not just for breakfast anymore.


Tags
NULL    
Go to the top of the page
+Quote Post
MSpidey
post Jul 1 2008, 03:20 PM
Post #3


I've come back for more.


Member
Posts: 2
Joined: 28-June 08
Member No.: 11873
Using LabVIEW Since:2008
LV:8.5.1 ,. ,.
Nothing Selected Nothing Selected Nothing Selected


QUOTE (BobHamburger @ Jun 29 2008, 01:32 PM) *
Wire up a Property Node to your VISA refnum. Look for Properties>>Serial Settings>>Discard NUL Characters, and set it to False.


Hey Thanks, this was exactly what I was looking for. Unfortunately it helped me figure out that the MSP430 won't send 0x00 so it still doens't work but at least I know it isn't Labview. Thanks again.


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
rolfk
post Jul 14 2008, 06:01 PM
Post #4


Extremely Active
****

Premium Member
Posts: 978
Joined: 9-April 04
From: Rotterdam
Member No.: 349
Using LabVIEW Since:1992
LV:8.5.1 ,8.2.1 ,7.1.1
Netherlands Switzerland Nothing Selected


QUOTE (MSpidey @ Jul 1 2008, 11:20 AM) *
Hey Thanks, this was exactly what I was looking for. Unfortunately it helped me figure out that the MSP430 won't send 0x00 so it still doens't work but at least I know it isn't Labview. Thanks again.


Are you sure it is the MSP430 itself. I would expect problems with C runtime libraries that use string formatting to format data to be sent over a serial line but the low level interface hopefully doesn't care about such details.

Rolf Kalbermatter


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   3 kev_hib 2721 5th November 2004 - 07:04 PM
Last post by: bocanada
No New Posts   1 kev_hib 1762 13th May 2004 - 05:03 PM
Last post by: Deep_Blue
No New Posts   0 Hakan 1181 16th June 2004 - 07:37 PM
Last post by: Hakan
No New Posts   1 AxE 2513 29th July 2004 - 10:57 AM
Last post by: srik81


Reply to this topicStart new topic

 




Time is now: 10th October 2008 - 11:19 PM