How to save data aquired with NI mydaq and save it in a data base using Labview?
i have developped with labview an interface that can control automatic irrigation station using two sensors ( humidity sesonr and temperature sensor) so i want to save data aquired during a year in a data base so i can compare these results in the next year please help me to do that in my interface labview and thanks
Attachments:
PFE.vi 223 KB
There is a database toolkit for LabVIEW. I don't think it is a free download however. With the Data Manipulation toolkit, you can integrate with most databases that use the ODBC protocol.
If you don;t need anything fancy, you can write the values out to file using the write/read spreadsheet VIs. If the file is [COMMA] or [TAB] delimited, you can import it into your database with ease.
Another approach is to format you output to a text file as SQL, and import the records that way.
INSERT INTO TEMP_HUM_TBL (Temperature, Humidity, Txn_Date)
VALUES (30, 95, 'Dec-24-2013');
Machine Vision, Robotics, Embedded Systems, Surveillance
www.movimed.com - Custom Imaging Solutions
Similar Messages
-
How to save Charts to a word document using LabVIEW Report Genereration toolkit?
I just started using the LabVIEW Report Genereration toolkit, but I can't figure out how to save Waveform Charts (one dimensional data versus time, instead of Graphs) to a Word document. Can somebody give a suggestion? Thanks!
Nina,
In MS Word, you have 2 options when you select Insert Object:
Microsoft Excel Chart
Microsoft Graph 2000 Graph
If you select Insert Picture, you can choose Chart. This is the same chart as when you select Microsoft Excel Chart.
To insert this chart, you will use Word Insert Graph.vi. This VI calls Word_Insert_Chart.vi, that uses ADO object Graph.Chart and its properties and methods.
From the Microsoft Help:
Create a chart by using Microsoft Graph
When you create a chart by using Microsoft Graph, a chart and its associated data are displayed in a table called a "datasheet."
Zvezdana S.
National Instruments -
How to extract data by using function module in generic extraction please
how to extract data by using function module in generic extraction please give me steps required
Dear Deba,
Generic Extraction via Function Module
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
If the requirement is like extracting data from multiple tables with some complex logic then views cannot be used..so u cna go for FM is used where it can be achieved.
Chk these
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
check the following thread
generic extraction with function module
Generic Extraction with function module
Regards,
Ram. -
How to display polygons both with line contour and filled interior?
How to display polygons both with line contour and filled interior?
Java3D 1.3, Java 1.4.1-rcHi,
I just started with Java3D last week.
I assume you mean drawing polygons with outlines (wireframe) in one color and polygon face filling with another color. If so, I've got the same question! (I usually think of "contour" to refers to plotting surface intensity of independent data like temperature or elevation, but I don't think you mean this.)
The only solution I've found so far is to make two shapes with the same geometry.
Here's an example - an outlined and filled cube. I made it using a generalize class DualShape which is two shapes with the same geometry, but one filled and one as a line.
It works, although I can't say I understand the setPolygonOffset(), knowing what value to set. Without the command, the depthbuffer can't consistently decide which should be in front between the fills and lines so it looks bad.
I certainly think it would be nicer to do both internally, like:
pa.setPolygonMode(pa.POLYGON_LINE || pa.POLYGON_FILL);
And then have setFillColor and setLineColor for each.
I don't know why they don't allow this - maybe OpenGL can't do it like this so Java3D follows.
If anyone has any better ideas I'd like to hear about it.
Tom Ruen
class DualCube extends DualShape // cube with outline and fill colors
public DualCube(float ax, float ay, float az, //cube lower corner
float bx, float by, float bz, //cube upper corner
float br, float bg, float bb, //border color
float fr, float fg, float fb) //fill color
setGeometry(new CubeGeometry(ax,ay,az,bx,by,bz),br,bg,bb,fr,fg,fb);
class DualShape extends BranchGroup //general shape with outline and fill colors
Appearance ap1,ap2;
PolygonAttributes pa1,pa2;
ColoringAttributes ca1,ca2;
Shape3D s1,s2;
public void setGeometry(Geometry geo, float br, float bg, float bb, float fr, float fg, float fb)
//filled shape:
addChild(s1=new Shape3D(geo, ap1=new Appearance()));
ap1.setPolygonAttributes(pa1=new PolygonAttributes()); pa1.setPolygonMode(pa1.POLYGON_FILL);
ap1.setColoringAttributes(ca1=new ColoringAttributes()); ca1.setColor(fr,fg,fb);
//lined (wire) shape:
addChild(s2=new Shape3D(geo, ap2=new Appearance()));
ap2.setPolygonAttributes(pa2=new PolygonAttributes()); pa2.setPolygonMode(pa2.POLYGON_LINE);
ap2.setColoringAttributes(ca2=new ColoringAttributes()); ca2.setColor(br,bg,bb);
pa2.setPolygonOffset(-1000); //Uncertain what "float" value to use!
class CubeGeometry extends IndexedQuadArray //cube geometry data
private static final int[] faces =
0,3,2,1,
0,1,5,4,
1,2,6,5,
2,3,7,6,
3,0,4,7,
4,5,6,7
private static float[] verts = new float[24];
public CubeGeometry(float ax, float ay, float az, //lower limit
float bx, float by, float bz) //upper limit
super(8, IndexedQuadArray.COORDINATES , 24);
int n;
n=0; verts[n]=ax; verts[n+1]=ay; verts[n+2]=az;
n=3; verts[n]=bx; verts[n+1]=ay; verts[n+2]=az;
n=6; verts[n]=bx; verts[n+1]=by; verts[n+2]=az;
n=9; verts[n]=ax; verts[n+1]=by; verts[n+2]=az;
n=12; verts[n]=ax; verts[n+1]=ay; verts[n+2]=bz;
n=15; verts[n]=bx; verts[n+1]=ay; verts[n+2]=bz;
n=18; verts[n]=bx; verts[n+1]=by; verts[n+2]=bz;
n=21; verts[n]=ax; verts[n+1]=by; verts[n+2]=bz;
setCoordinates(0, verts);
setCoordinateIndices(0, faces); -
How to connect an apple tv to an enterprise network with a username and a password?
I need to use it over my university's wifi. theres no option to enter username and password. how to connect the apple tv to such enterprise network?Contact the University's IT dept, they may be able to set something up on the network to allow the ATV to connect without the need for a user name/password.
-
How to create a table with datatype blob and insert a pdf file (ravi)
how to create a table with datatype blob and insert a pdf file,
give me the explain asap
1.create the table?
2.insert the pdffiles into tables?
3.how to view the files?
Thanks & Regards
ravikumar.k
Edited by: 895044 on Dec 5, 2011 2:55 AM895044 wrote:
how to create a table with datatype blob and insert a pdf file,
give me the explain asapPerhaps you should read...
{message:id=9360002}
especially point 2.
We're not just sitting here waiting to answer your question as quickly as possible for you. -
How to create a matrix with constant values and multiply it with the output of adc
How to create a matrix with constant values and multiply it with the output of adc
nitinkajay wrote:
How to create a matrix with constant values and multiply it with the output of adc
Place array constant on diagram, drag a double to it, r-click "add dimension". There, a constant 2D double array, a matrix.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV -
I have written a binary file with a specific header format in LABVIEW 8.6 and tried to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?
I can think of two possible stumbling blocks:
What are your 8.6 options for "byte order" and "prepend array or string size"?
Overall, many file IO functions have changed with LabVIEW 8.0, so there might not be an exact 1:1 code conversion. You might need to make some modifications. For example, in 7.1, you should use "write file", the "binary file VIs" are special purpose (I16 or SGL). What is your data type?
LabVIEW Champion . Do more with less code and in less time . -
How to create 2D array with 3 rows and unlimit column?
how to create 2D array with 3 rows and unlimit column?
Here are images of what I described in my previous post
Message Edited by JoeLabView on 11-14-2007 07:56 AM
Attachments:
2D-array_code.PNG 7 KB
2D-array_values.PNG 13 KB -
Motion how to create 3d effect with a background and one primary object
motion how to create 3d effect with a background and one primary object
… like that?
http://youtu.be/yOht1GJpEm4 -
How to open dat file in labview
how to open dat file in labview.???how to make use of biomedical startup kit for doing so???
Please post this question on the Biomedical User Group here: www.ni.com/biomedusers
This is where you will find the best support for the Biomedical Starter Kit.
Steve
Visit the NI Biomedical User Group at:
www.ni.com/biomedusers -
I am just starting out in graphic design and I wanted to know how to get more involved with either adobe and or graphic design? I am really very interested in working with adobe and graphic design more and becoming more involved with both!!
I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that.
Version 10.0.2 is the newest version and the successor to GarageBand '11 (version 6.0.5).
The '11 is referring to the iLife '11 suit of multimedia application - the older GarageBand was a part of this bundle.
Have a look at Edgar's graphical enhanced manuals, the explain very detailed how things work and why. You can buy them as iBooks from the iBook store or directly from the page:
http://DingDingMusic.com/Manuals/ -
How can I take photos with my iPhone and edit them on my iPad?
how can I take photos with my iPhone and edit them on my iPad?
Copy Photos Between iOS Devices
http://tinyurl.com/cnz95bc
Cheers, Tom -
How do you record video with usb mic and have the audio form garageband be apart of the video when recording, meaning the audio from garageband and echo and not just your normal voice for youtube post?its not add the garageband audio its just normal voice from mic no effects is going thru?
Hi Life93,
What you describe would be possible by recording your video, then removing the audio from it and adding audio from GarageBand once the video is in iMovie (I presume here that you are using iMovie for your video production. Other applications may need different methods.)
See this thread on how to remove the audio from a clip in iMovie -
Is there a way to separate audio from a video c...
https://discussions.apple.com/thread/1779767
To add audio from GarageBand use this article -
iMovie '11: Add a sound clip to your project
http://support.apple.com/kb/PH2255
Thanks for using Apple Support Communities.
Best,
Brett L -
how to delete forecast entries with zero current and original qty from a particular forecast set which span across multiple forecasts
Hi,
There is no way to delete those records selectively from front end.
The best possible way is to delete the records from MRP_FORECAST_DATES tables from backend.
Hope that helps!!
Regards,
Mohan Balaji
NOTE: Please mark the post as Helpful or Answered if the update has really helped you. This would also bring the thread to logical conclusion and will be helpful for the viewers.
Maybe you are looking for
-
GRC AC10 Mitigation Control Temporary Tables
Hi everyone, I'm trying to find the table where GRC stores the organizational unit for a new mitigation control before the request is approved. As I could see, after approval (when the control is created) they are moved to HRP1000, 1001, etc. I've al
-
Using Mountain Lion (OS 10.8), in Contacts, how can I show a count of number of contacts total and/or number of contacts in a group?
-
Using PF_STATUS and USER_COMMAND in ALV
Hi, I have a requirement to place two buttons on the application toolbar of the output ALV list display screen. I have to assign functionality for the two buttons. How do we do it in ALV? Is there any thing in ALV which performs the functionality of
-
Can anybody help with these basic questions..?
Hi friends, 1) I am developing a inventory module. As soon as sales man confirms invoice , invoice should be printed on LOCAL printer AND a picking list be printed on NETWORK printer of warehouse. So how can I get/assign a list of printers. 2) What i
-
How to get MDX code from Smartview query
Hello everybody: I would like to know how to obtain the MDX code when I am performing a query from Smartview. How can I find out what sentence the Provider Service sends to Essbase when doing any operation in Smartview? Thank you Regards Javier