LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to design loop or counter for measuring the data...

Solved!
Go to solution

Hello,

I want to design one loop or counter in order to measure the data.

For example I want to measure the voltage and capacitance and then I want to draw graph for that.

Thing is I want to measure voltage first at 0v

then 1 v

then again counter come to 0v or reset and measure 2v

then for 3v counter come back to 0v and go for 3v.....

All this data should be save in one table and then I want to design graph for xy chart for measuring data.

 

Will you please help me that how can I design such counter or loop ??

 

Thank you very much in advance.

 

0 Kudos
Message 1 of 33
(3,665 Views)

I think your best approach is to make a loop with a state diagram with a state for counting up, a state for resetting. If I understand it correctly the measurement is always done so it is best to place it outside of the case structure. 
For making it in to an array use the auto index of the loop.

Don't forget to use shift registers for the counting.


Learning LabVIEW since January 2013
0 Kudos
Message 2 of 33
(3,645 Views)

Thank you very much for reply.

 

I am facing one more problem that currently in my company all data measure manually means we are measure capacitance by manually adjusting the force and voltage, then all data we write in Excel and then plot graph.

My task is to measure all data automatically by using labview and I want to know that before starting this project what information should I need to collect.

 

Thank you very much.

0 Kudos
Message 3 of 33
(3,638 Views)

your welcome. please note that the attachmant seems to be missing. 


Learning LabVIEW since January 2013
0 Kudos
Message 4 of 33
(3,633 Views)

Well, from the looks of it, your software would have to take readings manually as well. What I mean is, everytime you adjust your settings, you have to press a button on your front pannel to take the reading. So, manually adjust, press button for reading, maybe plot it, and save it (mabe append to text), repeat this to the end, and in the end you have a stop button indicating the end of experiment, and your left with a text file. 

0 Kudos
Message 5 of 33
(3,612 Views)

How to automate it all depends on your application.  If you need to provide external stimuli (applied force in your example) you will need to buy a device for this, and integrate it's control into labview.  This aspect is highly application specific.  If you could be more specific on the manual steps you currently perform, maybe we could recommend something.

 

In regards to the code, once you get a single measurement working, the automated step-by-step processing of the applied force can be integrated as an additional step in your process.  If you are using a state machine, add a state for Increment Force, and a state for Update Save File

 

These two states will handle processing and saving data from the current measurement and setting up for the next one.  You will loop through these states for each step you need, then return to an Idle state.

0 Kudos
Message 6 of 33
(3,599 Views)

Thank you very much for your help.

 

Here I am dealing with piezo ceramic and I have to measure the force applied on it in order to check the break point of it.

We are using Hameg 8118 device in order to measure capacitance and Kistler 5041 device for measuring voltage and one more device for applied force on piezo ceramic that we have to applied force manually.

Means we have measure capacitance when force is 0 and voltage is 0v

then we have to give force on piezo ceramic in until we get 1v on then measure capacitance and then again release the force to 0

then same procedure for measuring the capacitance at 3v and after some reading we have to plot graph for capacitance Vs. force.

This all process we do manually in Excel but now I have to do this in Labview so every time we do not need to write reading on excel it will save automatically in Labview and in last I have graph which we want.

 

Hope this will help you to make clear my idea.

Thank you very much once again.

 

0 Kudos
Message 7 of 33
(3,577 Views)

Here I tried to made one simple program.

But the thing is I want to save data in table form when I press save button,will you please suggest me any logic that when I press save button at that time what ever data is on display will be save in one table then next data will be save in next row same process is going on until I press stop button.

 

Thank you very much in advance.

0 Kudos
Message 8 of 33
(3,558 Views)

In the VI I have 2 methodes to add the displayed data to an array every time 
One gives the result after the stop is pressed. the other continuesly has the result.

 

if you want to store it. just add a new line of data to the file every time save is pressed, this can be done bij the basic file handelers. 


Learning LabVIEW since January 2013
0 Kudos
Message 9 of 33
(3,552 Views)

Thank you for helping.

I have Labview 2011 would you please uplod the last attached vi in this versoin.

thank you very much once again.

0 Kudos
Message 10 of 33
(3,538 Views)