LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display recorded data

Hi,

 

I have trouble to read the data correctly on the graph. I have recorded some sine wave as a trial with the program I have made (Please see attachment: GP_program).

Then I made another simple program to read the data (Please see attachment: display). However, it seems that it only showed 100 points on the x-axis.

The idea of my program is that I should record data for a few hours and display hourly in the program (display). Cananyone tell me what modification I should make with my program? I would be grateful if someone can help me.

 

 

Thank you very much

Download All
0 Kudos
Message 1 of 7
(3,172 Views)

Screenshots of your block diagrams don't help.  There are values in controls that we can't see.  The Express VI have settings internal to it that we can't see (does it overwrite files, append to file, create new file each time?)

 

Attach your VI's.  Save them with any values in controls saved as the default values.

Message Edited by Ravens Fan on 03-18-2010 10:39 PM
0 Kudos
Message 2 of 7
(3,167 Views)
I have attached the vi many thanks
Download All
0 Kudos
Message 3 of 7
(3,161 Views)

I ran your VI.

 

You are collecting 500 samples at a 100 Hz rate which means the loop will take 5 seconds to run.  That is going to make the program feel unresponsive.  I would set it for more like 100 samples at the 100Hz rate.

 

You have the wrong mechanical action for your stop button.  Do not use Switch until released.  Set it for Latch when released.  I couldn't figure out how to stop your program.  Eventually I figured out I had to hold the stop button down for at least 5 seconds until the loop iterated again to be sure that the Stop button was actually read as true.

 

Why are you using index array to get 4 waveforms (although you only have 2 channels) then proceed to build them back up again into a 1-D array of waveforms.  You wind up with the same 1-D array of data coming out as you had going in.

 

If you use Index Array like you add it, there is no need to wire the indices, it will automatically give you 0, 1, 2, and 3.   Defaults start at 0 and increment by 1 from there.

 

(Pink buttons on blue background, kind of odd.  Normal LabVIEW grey colors, or using system controls and colors would look better.)

 

Please save your VI so the windows are actually onscreen.  Do you have a dual monitor setup?  I am guessing so because one of the VI's showed up way off screen to the right making it hard to get back.

 

I ran your VI for a while and got about 3000 rows in the data file.  I ran your display VI.  Do you mean you actually saw about 1000 points on your waveform chart and not 100?  The chart history is set to show 1024 points, so you'll only see the last 1024 datapoints.  You can set the properties of the chart to show more if you want.

 

 

0 Kudos
Message 4 of 7
(3,155 Views)
thank you very much for your help. I think I understand more about how to solve this problem now
0 Kudos
Message 5 of 7
(3,143 Views)

With the same program ,  I found another problem now.

 

After I recorded data, I look at the numbers on wordpad. 

I found that there are headings for each set of data, which made me difficult to show the waveform on the waveform graph.

 

Do you have any ideas of how to remove the heading during the recording?

0 Kudos
Message 6 of 7
(3,114 Views)
You should be able to turn off the headers from within the dialog box for the Write to Measurement File Express VI.
Message 7 of 7
(3,107 Views)