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

OK hier is 2011


Learning LabVIEW since January 2013
Message 11 of 33
(749 Views)

Thanks again.

I want to save data on front panel of labview as a table form as well.

For example if I want reading from 2 then I press save button so that data 2 and output data 3 should be save on first row (2 column) and like wise if I want to save data from reading 4 then I press save and 4 from input and 5 from output will be save in next row.

 

Will you please let me know how can this possible.

Thanks again in advance.

 

0 Kudos
Message 12 of 33
(745 Views)

Sorry I just noticed that I added the wrong VI to my last post. 
( not an unusefull one that is but not the one intended )

 

Hier is the one I was thinking I posted. with an small extra. ( a table that not only gives the output but also the input )


Learning LabVIEW since January 2013
Message 13 of 33
(738 Views)

For saving the data, the simplest method would be to use the basic File I/O vis.  you can use the Write Spreadsheet String to File vi to save a 1D or 2D array of numbers to a txt or csv file.

 

Alternatively, you can use report generation toolkit or even ActiveX interface to write directly to Excel (ActiveX may be a bit advanced at this point but I wanted to mention it).

 

How the data is arranged is completely up to you.  Pre-processing of the saved data into an array or spreadhseet string for saving takes a bit of work but it isn't that bad.  Based on checkboxes from the front panel, you can take datapoints from the storage array (the array where you store each capacitance, voltage, and force values) and place them in the desired order for saving.

 

 

This maybe a future upgrade, but you can automate the process of applying force.  A Pneumatic cylinder applies force based on the airpressure applied.  You could have labview control the air pressure (calculating the force) until your desired voltage levels are reached.  This would be a pre-programmed routine.

Message 14 of 33
(730 Views)

Thank you very much for help and suggestions.

Here I in attached Vi,If I want to save the data  inputs and outputs along with graph on my computer disk then what changes I need to do.

Is it possible to save these all data and graph in excel file??

Please suggest me any idea.

One more thing that I want to make this vi in continues loop means when ever I open this vi I need to just enter data and press save button only no need to press Run arrow and after observation I have to press stop button then after saving all data and graph in same file in my computer then user can directly exit from labview. I tried to put all the structure in while loop but I didn't get what I want.

Please suggest some help regarding to this also.

 

Thank you very much in advance.

0 Kudos
Message 15 of 33
(716 Views)

@AnkitRamani wrote:

...

One more thing that I want to make this vi in continues loop means when ever I open this vi I need to just enter data and press save button only no need to press Run arrow and after observation I have to press stop button then after saving all data and graph in same file in my computer then user can directly exit from labview. I tried to put all the structure in while loop but I didn't get what I want.

Please suggest some help regarding to this also.

 

Thank you very much in advance.


for this i beleve you have to build an executable form it. you can remove the while loop.

also try to spent a bit of time cleaning up the diagram. it makes it more readable and so helps us to help you.

 

I dont have experiance with excel, it is posable i only cant help you with it,


Learning LabVIEW since January 2013
0 Kudos
Message 16 of 33
(709 Views)

Thanks again.

I will try to clean up my Vi and

Its not necessory to save file in excel only, I just want to save file on my computer disk with the inputs, outputs data and graph.

 

Thank you very much once again.

0 Kudos
Message 17 of 33
(701 Views)

There is a thread dealing with Excel here, http://forums.ni.com/t5/BreakPoint/Excel-Board/m-p/379761  I think you'll find useful advice there.

 

If you only want to write data to excel, use the Report Generation Toolkit.  You can set the report type as excel, then append data in the form of tables and even append graphs as images.

 

To have your VI run at start up, you don't need an excecutable. Go to File -> VI Properties -> Excecution  and check the box, "Run When opened".
A while loop encompassing your code will keep it running till the user presses a stop button.  See the attached example vi.

 

Under the VI Properties you can also adjust the window size, position, appearance, and a variety of other settings.

Message 18 of 33
(694 Views)

Thank you very much for help.

 

I was trying to design vi for 3 dimension array, but I didn't solve my problem, I want to design such as there is 3 different dimensions are there for example voltage, force and capacitance and I want this 3 in table form and I want to design xy chart for Capacitance Vs.. Force.

Here In attachment I have attached vi, in that I tried for above logic,but not working correctly.

 

Will you please guide me.

Thank you very much in advance.

0 Kudos
Message 19 of 33
(680 Views)

I am not sure what you are trying to do. 
Why 3 dimensions? Don't you mean 3 colloms? 


Learning LabVIEW since January 2013
0 Kudos
Message 20 of 33
(673 Views)