LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

com wizard response problem

hello sir,

i have given the attachment for com wizard for receiving the data.Here i want to receive the data line after line but i am getting all the data in single line where it is overwriting it .so sir please tell me the solution for this. thanku 🙂

0 Kudos
Message 1 of 5
(3,275 Views)

You need to learn LabVIEW if you want to do this yourself.  Otherwise, you need to hire someone who knows LabVIEW and assign this as their project.  This forum is for LabVIEW users who encounter problems and ask for specific help.  We try to discourage students who write and say "Do my homework, please" (we encourage them to learn LabVIEW using free on-line tutorials) -- if you, yourself, are interested in learning LabVIEW, Google "LabVIEW Tutorials" or look around here on the Forum.

 

Bob Schor

0 Kudos
Message 2 of 5
(3,092 Views)

1. You do NOT want to concatinate your strings for the VISA Resource.  Just use the resource from one of your loops.  The Merge Errors is forcing both loops to finish before the port is closed. Data Flow!

2. For your disply, right-click on your string indicator and choose Visible Items->Display Style.  Now you can look at your data using \ Codes, Hex, ASCII all using the indicator itself.  Each of those can be very useful depending on your instrument.  This would eliminate your need for that U64 and the numeric control to dictate the desplay.

3. So you want to display all of the data recieved?  Use a Shift Register to store your buffer data.  You just concatinate onto the string each time you do a read.

4. Since you have the Termination Character turned on and it appears that your instrument is actually using it, do NOT use the Bytes At Port to tell the VISA Read how many bytes to read.  Just tell it to read more bytes than you would ever expect in a line and it will stop when it encounters the Termination Character (defaults to the Line Feed character).

5. I think you want the VISA Write and the VISA Read to be INSIDE of their respective case structures.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 5
(3,047 Views)

@crossrulz- thnku sir for telling some of the methods for solving my query but there is still some problem here. the resposes that i am getting in read buffer is overwriting again and again but i want my responses to come line after line....so which function shud i use here. 

and one more query is that i want that i shud have optn to display response in any of the three system (ascii ,hex and decimal) u earlier told one of the way but it is not workinh... ihave given the attchment below to explain my ques better..thanku

Download All
0 Kudos
Message 4 of 5
(2,928 Views)

@crossrulz- thnku sir for telling some of the methods for solving my query but there is still some problem here. the resposes that i am getting in read buffer is overwriting again and again but i want my responses to come line after line....so which function shud i use here. 

and one more query is that i want that i shud have optn to display response in any of the three system (ascii ,hex and decimal) u earlier told one of the way but it is not workinh... ihave given the attchment below to explain my ques better..thanku

0 Kudos
Message 5 of 5
(2,926 Views)