LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i plot data from "read from measurement file vi"

hello..

i have a problem about how to plot data that i was saved  with "write to measurement file vi"

i can see the numbers but i cannot plot them.

 

what's going wrong?

thank you

Download All
0 Kudos
Message 1 of 9
(4,789 Views)
You should be using a waveform chart in the read program and convert the dynamic data to a scalar.
0 Kudos
Message 2 of 9
(4,782 Views)

thanks for the answer..

i connected convert dynamic data to scalar and seems to work

but the time not running.

can i see  time running?

i mean i want to see period of that signal,can i do with that way?

 

Download All
0 Kudos
Message 3 of 9
(4,777 Views)

What kind of time do you expect? The file write program writes a single sample whenever you click the run button. This is completely random so the interval is not regular like a chart expects and you aren't including any time data with the simulated data so the dt is defaulting to 1 - both in the file you write to and for the chart you display the data with. According to the file, you have about 100 seconds worth of data and that is exactly what the chart is displaying.

 

And why do you even have the while loop in the file write program? It does absolutely nothing? What in general are you trying to accomplish with these two programs?

0 Kudos
Message 4 of 9
(4,763 Views)

i made a mistake ,time is running.

"readdata" can reads data which saved at .XLS

i want to store and then read a sine .

can i read RMS value from that signal?

is it possible?

i tried to did this with "amplitude and level measurements" but failed.

0 Kudos
Message 5 of 9
(4,753 Views)

Hi,

 

Have you tried putting the rms.vi down and wiring your signal going into your graph into the vi?

 

 

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 6 of 9
(4,707 Views)

hi Andrew..

i made this..

i put a table   (0,22,50,78,82,90,82,78,50,22, 0,-22,-50,-78,-82,-90,-82,-78,-50,-22)
  into .xls that "simulate" a sine .
  i call that table and calculate RMS value.                       

 on paper this table equals 62,9(rms)

labview has the same result

can you tell me your opinion?  (right,wrong)

 

 

 

Download All
0 Kudos
Message 7 of 9
(4,695 Views)

Hi,

 

Yeah, your vi does correctly calculate the rms of your table. You can do it that way that, which calculates as you are reading data or you can use the rms in post processing. I provided an example.

 

 

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 8 of 9
(4,677 Views)

thank  you a lot Andrew

,i ll see  your VI. it may be usefull for what i m planning to do

 

0 Kudos
Message 9 of 9
(4,653 Views)