02-15-2014 01:12 AM - edited 02-15-2014 01:13 AM
I an new to LabView.
I have attached my labview program to this post. I want to know how to attach graph to Visa Read for real time graph.
Please tell me.
02-15-2014 01:15 AM
You did not attach any program, just an image. That's not the same!
How does the string data in the read buffer look like? In order to chart it, you need to convert it to a numeric datatype.
02-15-2014 01:34 AM
I have attached program file now. Please do it for myself.
02-15-2014 01:41 AM
You did not anwer how the received data looks like?
Also, how do you determine framing? Does the data contain a defined delimiter, for example?
02-15-2014 01:43 AM
Data format will be in ASCII.
But I don't understand
how do you determine framing? Does the data contain a defined delimiter, for example?
Please explain in detail
02-15-2014 01:50 AM
Well, you seem to read a random number of bytes, whatever number of bytes happen to arrive at the port. Most valid measurements probably contain more than 1 character, so we need to know where one number ends and where the next number begins. Is there a special character separating values? Do you have documentation for the instrument sitting on the other end of the serial cable?
02-15-2014 01:54 AM
Thanks for replying to me.
It is informed to you hardware making is in progress.
When hardware completed, I will able to answer the starting and ending of data.
I want that before hardware complete, my program will be completed. So please tell me how to attach graph to visa read.
02-15-2014 05:38 AM
Since you say the hardware is in progress, you need to talk to whoever is developing it and agree on a format. With an ASCII format, I would recommend a comma or an End Of Line character to separate the data. If you are just getting a single channel's data, then I would highly recommend the End Of Line character. If you are getting multiple channels' data, then use a comma to separate the channels and send the End Of Line character after all of the channels' data is sent. Something like "1,2,3,4EOL" where EOL is the End Of Line character.
What this will allow you to do is use the termination character with you VISA Read. VISA Read will read the number of bytes you tell it or until the termination character is read, whichever comes first. So by using the termination character, you don't have to check the number of bytes at the port. You just set the number of bytes to read to something ridiculously high and let the termination character stop the read. You now have a nice frame with all of your data. If using multiple channels, use the Spreadsheet String To Array to convert to a numeric array.
02-17-2014 08:58 AM - edited 02-17-2014 08:58 AM
Please tell me how to connect the graph to Visa read for showing real time graph. No one has told me this thing.
Also I have to see values in graph in dbm rather than standard values. How see the values in dbm in real time graph.
Please do it for myself because i am new to Labview and don't have any concept about this.
Thanls
02-17-2014 09:09 AM