LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

to measure and save the data of an instrument for a particular time

Hello frds

the problem might be simple for expertise. However, i am relatively new in labview. I need to measure the data of an optical power meter for some time. for e. g 5min and store this measurment on. txt file. I made a VI. But, I am seeing data in  real time waveformchart. donot getting an idea about how to store this chart data (x and y) in a file . The labview version in our lab is 7 which donot have data logging.

pls help me

0 Kudos
Message 1 of 8
(2,843 Views)

Hi friend,

                 

1. Can you please tell me why you are using text file. Why not database.

2. Is it some kind of command response way. that means when you send command it will respond.

3. What is the logic of only 5 min.

 

Post your VI then it will be easy to solve the issue.

 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 8
(2,841 Views)

Hi,

 

You may want to include 'Time-stamp' along with every data-point (sample from the instrument) you read. And after the desired period (in this case 5 minutes), you need to save both in a file (binary or text). Then on reading that file, you'll be able to display the data-points on a 'X-Y Graph'.

The code will look like:

Sample with Time-Stamp.png

 

 

Don't forget to customize the appearance of 'X-axis' display property as shown below.

Display property..png

 

As you're using LabVEIW version 7.0, I've saved the same code in version 8.0 (I can't further downgrade the code)


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 8
(2,829 Views)

thanks for the reply

1. store/save the data to text file or any format. For e. g .txt file

2.I didn't get. when the instrument command for e. g read instrument execute it will start to measure.

3. suppose for 5min. 5min is not specific. If I need to measure for 4min, 1S etc

 

The idea is to measure and save the data for a particular time intreval. after that the measurment should automatically stop and save all the data into a file. Need time in x axis and data in y axis.

 

 

I am attaching the VI. The VI is not complete. sorry fo that. pls help and solving this for past 3 days

thanks

 

0 Kudos
Message 4 of 8
(2,826 Views)

thanks for the reply

 I am using Labview 7 and  can't upgrade.(using windows 95, sorry). there is no data logging in labview7. In the function palatte, there is no time stamp also. if no time stamp what will be the option.

Spoiler
 

 

Spoiler
 

 

thanks

 

 

0 Kudos
Message 5 of 8
(2,822 Views)

Thats what I am also saying repeat the loop for that many times i.e. if you are reading the data in 1 sec interval and till 5 min you want to log the data then repeat the loop for 300 times and in the for loop data will be auto-indexed when this will stop data will be automatically written to database.

 

Here auto index node will store the data untill loop is running. As another person mentioned

 

Hope it is clear.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 6 of 8
(2,813 Views)

vnair@b-phot.org wrote:

In the function palatte, there is no time stamp also. if no time stamp what will be the option.


Its very much available in LabVIEW 7.

Check here


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 7 of 8
(2,808 Views)

Without time it is simply impossible.

 

There has to be time stamp control.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 8 of 8
(2,804 Views)