Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to attach graph to Visa Read in labview for real time graph

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. 

0 Kudos
Message 1 of 20
(6,733 Views)

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.

0 Kudos
Message 2 of 20
(6,729 Views)

I have attached program file now. Please do it for myself.

0 Kudos
Message 3 of 20
(6,722 Views)

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?

0 Kudos
Message 4 of 20
(6,716 Views)

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

0 Kudos
Message 5 of 20
(6,712 Views)

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?

0 Kudos
Message 6 of 20
(6,707 Views)

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.

0 Kudos
Message 7 of 20
(6,705 Views)

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.


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 8 of 20
(6,684 Views)

 

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

0 Kudos
Message 9 of 20
(6,648 Views)
You have been told several times that you need to convert the string to a numeric. There are the string conversion functions on the string palette.
0 Kudos
Message 10 of 20
(6,645 Views)