LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to display each element of array (which is read from binaryfile) as a square in a timed graph


hello friends ,

I am copying  the continuous  data stream  to a binary file in a array format (structural)
ex. mydata[ 10*1024]     each element is a structure  as
                                                                                          mydata[0].x
                                                                                          mydata[0].y
                                                                                           mydata[0].time
                                                                                           etc.


After finishing the copying to binary file , I want to read the binary file and display   each element of the array as a box(or a point or a squire)

on a XY plot according to time ( mydata[ i ].time),  where X axis is time and Y axis is type of element.

Is it possible to display each element as a small box in XY graph?

Please suggest me  how to proceed .......



Thank you


regards

raj




0 Kudos
Message 1 of 4
(3,223 Views)

Yes, you can use PlotXY with "Scatter" as Plot Style parameter: this will print little squares on the diagram. If you use "Connected points" you will have the little squares connected with a line. If you use "Thin line" or "Fat line" you will obtain only the line and no marks. Look at the <cvidir>\samples\userint\graphs.prj example to see which is the effect of every Plot style on the final graph.

The "point style" parameter permits you to define the aspect of the data mark on the graph.

To use this function you will need to read your structured data array into two different arrays, one for time axis and the second for amplitude, to pass to the PlotXY function.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,199 Views)
Hi ,


                      I am  plotting a graph with point style "empty  square"  and  " scatter ".  I have many points in my graph.
If I zoom in my graph , I would like to display a text ( 2 or 3 short  lines with different colours) ,which shows info about the  point,  in that "empty square" or in a rectangle near  by that    point("empty square")  as shown in attatched file .

     Please suggest me how I should approach ........

U can find    my expected graph display in the file( see  attatchment ).



regards

raj

 

 

0 Kudos
Message 3 of 4
(3,185 Views)
Look at my answer here


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 4
(3,174 Views)