LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SERIAL - XY Graph

Greetings. I would like help with the program i am developing:

About the program:

- I am always reading serial to get the ADC values ​​sent by Cortex-M4, being converted to decimal at the end of each reading.

- When receiving values ​​other than zero, I would like to display them on an XY chart, the Y axis being the voltage values.

About the problem:

- The problem is to develop the X-axis. I would like each received value to be tied to an increasing order on that axis.

+ Example:

1nd Value received, being greater than zero: axis x = 1;

2nd value received, being greater than zero: axis x = 2;

3nd.....

I have attached a copy that I have so far.

 

0 Kudos
Message 1 of 2
(1,736 Views)

You need to learn LabVIEW.  Find LabVIEW Tutorials (there are a bunch listed on the first page of this Forum, and NI has a number on their Web Site -- go through all of them, and do all of the Examples).  Where possible, do not use an Express VI.  

 

I'm "suspicious" about your VISA code.  You are reading a pair of bytes at a time, doing some strange processing to them, some strange arithmetic, and then some strange plotting using an unnecessary (and inappropriate) Express VI.

 

Learn the difference between a Chart and a Graph.

 

Learn LabVIEW.

 

Bob Schor

0 Kudos
Message 2 of 2
(1,688 Views)