07-19-2015 12:42 AM
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 🙂
07-19-2015 02:44 PM
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
07-19-2015 05:52 PM
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.
07-26-2015 05:50 AM
@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
07-26-2015 05:54 AM
@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