LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

showing grid lines as dashed lines

Any Help!!
0 Kudos
Message 11 of 26
(2,622 Views)

Did you abandon the project to have dashed grid lines?

 

It seems that you have much more basic problems and it would really help if you could attach your code and provide some typical data file. Currently, you have a single 1D array and with some incredibly convoluted constructs you make an exceedingly complicated data structure. How big is the input file?

 

Are you using a chart or a graph? Since you seem to want to graph data sequentially, you should use a chart. All you need to do is convert the array to a cluster (array to cluster, set output size to 4) and wire it to the chart.

Message 12 of 26
(2,609 Views)

I use the "plot images" property to display dashed grid lines between the plot and the grids.


my issues are : i want to show dashed grid lines and want to display data continuously.
there is no "plot images" property in waveform charts and i am not able to display data continuously in graph.

is there any way i can show dashed grid lines in chart??

i am attaching the file from where i am reading the data .. the size of the file is not defined as it depends on the amount of d data i wish to store .. but it wont exceed 10 MB.

i have already attached the block diag in my previous post . just see if dere's an efficient way to perform the procedure ..

Thanks ..

0 Kudos
Message 13 of 26
(2,591 Views)

If you want to use a graph instead of a chart, you can simply acumulate the plot history in a shift register.

 

Why is your data in an RTF file??? This contains formatting tags that make is quite unsuitable for casual parsing, you should save your data as plain ASCII table.

 

I still don't quite understand why you don't read your entire file into a 2D array (using read from spreadsheet file) and send everything to the graph in one step (no loop needed, see image. Of course you don't even need the transpose operation if you transpose the graph itself. I only added this for clarity.)

 

Do you want to somehow simulate acquisition timing?

 

 

Message Edited by altenbach on 08-21-2008 09:02 AM
Message 14 of 26
(2,573 Views)

Hi..

I cannot use graphs in my application because my application serves multiple purposes.

my app is actually designed to get data from the serial port device and show data continously as it is coming .. and i can save some part of the d data and can use it for viewing it later ..  Now i suppose chart is d best wat to plot data in run time applications (correct me if i am wrong)..

 

i am using ASCII only to store the data .. i just created a temporary RTF file to show how the data is stored in a file ..

 

is dere any way i can have dashed grid lines in waveform chart??

 

Thanks 

 

0 Kudos
Message 15 of 26
(2,554 Views)

ritesh024 wrote:

Now i suppose chart is d best wat to plot data in run time applications (correct me if i am wrong)..


A chart is easiest, but using a graph is not much harder. As I said, you simply need to accumulate your data in a shift register. Have you tried?

 

 

Message 16 of 26
(2,546 Views)

Hi ..

i tried the graph method but there seems to be lot of issues ..

one thing is i am not able to plot the data continously. i read 16 bytes/channel from the device at a time and display it .. if i want to plot 100 bytes/channel i build array after every time i read data from the device and when the size of array become 100 i plot it .. this seems to take a lot of time and if i recieve data from the device for 10 seconds it misses d data and show some junk values ... tht is probably bcoz of slow processing of data .. 

and if i start storing the data into the file den it runs hardly for 5 sec and then start showing wrong data ... 

 

right now chart seems to be the probable soln to my problem ... 

 

waiting for ur inputs .. 

0 Kudos
Message 17 of 26
(2,525 Views)

ritesh024 wrote:

i tried the graph method but there seems to be lot of issues ..


Most likely, all these issues can be easily solved, for example by doing the acquisition and processing in independent loops and using a queue.

 

Can you attach your code?

Message 18 of 26
(2,513 Views)
Hi..
I am attaching my code here .. Pl. have a look at it ..
my device send packets of 64 bytes everytime ... if i set "bytes to read" to 128, it misses d data after abt 5 seconds .. but if i set it to 256 it runs smoothly...
N also i am using shift register to store the previous data ... but to display i need to have another graph .. just see if dere's any way to display the running data and the previous both on d same graph(the same way in chart if i use "chart history" function ..)


Thanks ..
Download All
0 Kudos
Message 19 of 26
(2,479 Views)
Help!!!
0 Kudos
Message 20 of 26
(2,454 Views)