05-14-2013 06:25 AM
OK hier is 2011
05-14-2013 06:50 AM
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.
05-14-2013 07:26 AM
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 )
05-14-2013 09:04 AM
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.
05-15-2013 02:45 AM - edited 05-15-2013 02:50 AM
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.
05-15-2013 03:17 AM
@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,
05-15-2013 04:45 AM
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.
05-15-2013 10:04 AM - edited 05-15-2013 10:06 AM
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.
05-16-2013 04:56 AM - edited 05-16-2013 05:03 AM
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.
05-16-2013 05:45 AM
I am not sure what you are trying to do.
Why 3 dimensions? Don't you mean 3 colloms?