Labview and Mysql C API

Have someone been able to use Labview's Call Library Function to call Linux Mysql C API successfully?
Thanks

I have a mysql tookit which works well under linux.
if intrest it ,I can mail you a copy .

Similar Messages

  • How to connect mysql database to labview and plot the graph

    Hi all,
     I am doing my final year project about labview. I need to connect my mysql workbench database to labview and plotting two sinwave in same graph. I can already connected my labview to mysql and showing the data in labview table.But I need to plot the two sinwave in on graph according to table data. Eg: table data:      timestamp   wind speed  wind direction
                                                      ​                                                  ​                                                  ​                                            2004-01-01         0.5                 56
                                                      ​                                                  ​                                                  ​                                            2004-01-01         0.6                 60
      The attachemtn vi is about inserting file and plot the graph. And now I  want plotting the sinwave using table data and the  wind speed Y-axis,wind direction Y-axis in both side of my graph and the X-axis is showing the whole day timing like 00:00:00-24:00:00.  Can anybody combine these 2 vi to polting the graph according table data not according to file data.Thanks
    Attachments:
    Mysql.vi ‏11 KB
    Insert File.vi ‏25 KB
    Wind Project.vi ‏24 KB

    Please don't start a new thread. Stick to the original.
    http://forums.ni.com/t5/LabVIEW/How-to-plot-wavefo​rm-or-graph-using-table-database-which/td-p/294036​...

  • How to build a TestStand 2012 workspace ( insert a project / insert a folder) programmat​ically using LabVIEW 2012 and the TestStand API.

    Hi everybody!
    I am just trying to find out how to create a TestStand workspace … in LabVIEW using the TestStand API.
    To create a new workspace was quite easy. Unfortunately I am not successful to insert a new or existing project to the workspace.
    Furthermore I have to insert a folder from disk to the new or existing project in the way that I can use an absolute path for the directory …  
    Maybe someone had already solved this problem, in any case  I am thankful for any hint.
    Greetings from Germany,
    Norbert

    Have you find out how to add a folder to a project? I'm looking for this to... I tried WorkspaceObject.NewFolder[Name]whitout success...
    For creating Workspace and project see the newer resolved thread I created.
    Martin

  • Call mysql C API function

    Hi all,
           I just have one question, how can I use mysql C API function for my labview program? I program it use dll call, but I use command "show processlist;"in mysql database,can see this process yet.So ,anybody can help me to solve this?
          Thanks,
          also , anyone have example,show...I am very appreciate...

    Do you really want to use a C API to do that? 
    I don't see the need for a C API or a call to a DLL.  I find it more logical to connect to your MySQL DB Server and run "show processlist" as an SQL Statement.
    but if you insist on using a DLL, I am guessing this link will help you:  Using Existing C Code or a DLL in LabVIEW

  • Retrieve LV stored 2D-Array via MySQL C-API

     Hello everybody!
    I am not quite sure, if this is the right place for my question, but I'll just give it try.
    I have a LabVIEW Vi which performs Data Acquistion-Tasks. The Data is stored in a MySQL-Database using the Labview Database Connectivity Toolset. One part of the stored data is a 2D-Double-Array. For storage in MySQL It is automatically converted to Binary Data and the stored in a MySQL Blob-Field.
    Unfortunately, the software to process the data is written in C++. It was fairly easy to establish the communication between my c++ application and MySQL via the MySQL C-API. But now i'm struggling to retrieve the Binary-Data from the Database and reconvert it into a C++ Double Array, as am not very experienced with C++.
    Has anyone done something similar before?

    Hello
    I am happy to hear that your LabVIEW application and data storage with the LabVIEW Database Connectivity Toolkit works.
    Unfortunately is this the wrong platform to ask about C++. There are many other open platforms discussing C questions. I’d propose you to ask your question there.
    Best Regards
     Daniela Biberstein
    NI Switzerland

  • Tdms-files: Is it possible to prevent LabVIEW and DIAdem from creating .tdms_index files?

    Hello,
    is it possible to prevent LabVIEW and DIAdem from creating .tdms_index files when opening/creating/editing a .tdms file?
    I think I have no benefit from the .tdms_index files because our applications create a lot of little .tdms-files (repeat measurements). With the additional .tdms_index files we have unnecessary memory consumption and it takes longer for Windows to open the containing folder. Also it´s confusing when searching for a certain file.
    Best Regards
    Daniel
    Solved!
    Go to Solution.

    Hi Baui,
    I'm afraid there's a direct way to disable creating .tdms_index file now from LabVIEW and DIAdem. You can use TDMS Advacend API in LabVIEW, which doesn't create any index file, or you can just make some simple programming and delete the .tdms_index file after closing the TDMS file. 
    This is a request for a long time, we'll consider to add this feature for TDMS in future releases.
    Yongqing Ye
    NI R&D

  • Problems with Labview and Windows XP with error -214721786​5

    Hello. Im a new beginner in Labview and am having a problem with a error message
    I dont understand. Im running Labview on a pc-logger with windows XP.
    The program is written by a guy on my university, and logs voltage from
    a solar cell panel. He doesnt have the time to check in to it, so Im supposed to
    find out what's wrong.
    The error message is as follows :
    Error -2147217865 occured at Cmd Execute.vi->DB Tools Insert
    Data.vi->Solcelle.vi
    Possible reasons :
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers,
    [MySQL][ODBC 3.51 Driver][mysqld-3.23.38-log]Can't open file :
    'solcelledata.MYD'. (errno: 145). in Rec Create - Command.vi-
    >Cmd Execute.vi->DB Tools Insert Data.vi->Solcelle.vi
    I really hope someone can tell me what's wrong and specifically what to do
    with it, or possibly guide me to someone who could suggest a solution to this
    problem.
    Reguards
    chrisdee

    Hi Chrisdee,
          (.. not to discount what TimoS has suggested, however...) 
    Embedded in the error information you provided:
    ... Can't open file : 'solcelledata.MYD'.
    Sounds like the program needs this file?  Has the program been moved to a new location?
    just a wild guess!
    Cheers
    Message Edited by Dynamik on 10-06-2005 04:53 AM
    When they give imbeciles handicap-parking, I won't have so far to walk!

  • I am new to Labview and was wondering if it is possib

    le to control Labview via an external script? I am trying to automate my testing and want to use a script to send commands that will call my equipment.vi models and have it configure the equipment via GPIB to the test instruments. Thanks in advance - HeidiI am trying to automate my testing and want to use a script to send commands that will call my quipment.vi models and have it configure the equipment via GPIB to the test instruments. This will take out the GUI interface and still allow my model .vi's to control my equipment. - Thanks in advance - Heidi

    le to control Labview via an external script? I am trying to automate my testing and want to use a script to send commands that will call my equipment.vi models and have it configure the equipment via GPIB to the test instruments. Thanks in advance - HeidiHi Heidi.
    Check out this link from Jeffrey Travis
    http://www.jeffreytravis.com/lost/labperl.html
    "LabPerl is a cross-platform API for letting LabVIEW and Perl communicate. It consists of some LabVIEW VIs and 2 Perl modules (.pm) files that allow Perl functions to call LabVIEW VIs and pass data, and viceversa. You should be somewhat familiar with Perl before trying to use LabPerl."
    I do not know if it will do what you want as I never tried it, but it is worth a try.
    PJM
    Got EasyXML?
    JKI.VIPM.EasyXML.OpenG.LAVA.Builder.blog

  • Error Code "1097.....this might corrupted LABVIEW's memory.........." appears after exit the labview and re-start labview

            I have a probelm when I use the "tool/import shared library(.dll)" wizard to generate the API from C.
            The API  works correctly when I complete the wizard, but after I exit labview and re-start labview to run the API again. The error 1097 code "......this might corrupted LABVIEW's memory.............."appears.
            The only solution now is to re-generate or update the wizard to generate the API.
            I try to find the answer in
            http://digital.ni.com/public.nsf/allkb/58596F5D41CE8EFB862562AF0074E04C?OpenDocument 
            The paragraph in above article shows
             "LabVIEW does not crash until it is closed
    The most likely problem is that the DLL function being called has corrupted the memory. If you pass arrays or strings to the DLL, the DLL function cannot dynamically resize the array. Writing beyond the last element of the array or string could corrupt the memory and this may not be obvious until LabVIEW is closed."
    But it doesn't match my case. Does someone have idea about this? I Attach my .h file for reference
    Attachments:
    test_api.h ‏1 KB
    link_test_api.h ‏1 KB

    wewe1215 wrote:
            I have a probelm when I use the "tool/import shared library(.dll)" wizard to generate the API from C.
            The API  works correctly when I complete the wizard, but after I exit labview and re-start labview to run the API again. The error 1097 code "......this might corrupted LABVIEW's memory.............."appears.
            The only solution now is to re-generate or update the wizard to generate the API.
            I try to find the answer in
            http://digital.ni.com/public.nsf/allkb/58596F5D41CE8EFB862562AF0074E04C?OpenDocument 
            The paragraph in above article shows
             "LabVIEW does not crash until it is closed
    The most likely problem is that the DLL function being called has corrupted the memory. If you pass arrays or strings to the DLL, the DLL function cannot dynamically resize the array. Writing beyond the last element of the array or string could corrupt the memory and this may not be obvious until LabVIEW is closed."
    But it doesn't match my case. Does someone have idea about this? I Attach my .h file for reference
    Which of the 2 functions do you call? How?
    The documentation of InitSocketEx() seems to indicate reversed parameter order than what the function prototype looks like!
    I indeed do not see much possibilities to pass in to small a buffer that the DLL function might be overwriting past the end. This really only leaves one more possibility:
    Your DLL is doing something largely illegal somehow. Maybe something as silly as storing the reference to the ipAdress instead of the address itself. The memory passed as parameters into a C function is generally only valid for the duration of the call. This is especially true if you use LabVIEW since LabVIEW will re- and deallocate memory buffers frequently as soon as they are not used anymore and the parameter to a Call Library node is considered to not be required anymore after the function returns.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Plotting graph in LabVIEW from MySQL data table

    Is there any possibility to plot the data from MySQL data table in LabVIEW graph/chart??
    can somebody help me??
    thanks...

    I am new with LabVIEW and I am also with the same problem.
    No problems to write data into MySQL, but when trying to read data neither "fetch element data" or "get properties" answer !
    It is not possible to get a simple recordcount using the "get properties".  The same script give the right answers with MS Access, only changing the DB reference from "connection string" to a "UDL".  Does somebody can post an example retriving data (that runs ok even with a WHERE clause in the recordset) using MySQL ?
    The connection string I am using is:
    Driver={MySQL ODBC 5.1 Driver};Server=127.0.0.1;Database=DBname;User=root​;Password=xxx;Option=785;
    Attachments:
    MySQL_Access_diff.JPG ‏88 KB

  • Plot different data set depending of some conditions using labview and veristand

    Hi Community,
    i have a couple of points saved as XY data points on my desktop.  The files are save as csv.  the idea is to read the file utilizing the Read From Spreadsheet File vi when some conditions are met and then plot the XY data wiht XY Graph Addon of the veristand workspace.
    for instance:
    if case 1 is true read the corresponding file and then plot the first set of data
    if case 2 is true read the corresponding file and then plot the second set of data
    if case n is true read the corresponding file and then plot the n set of data.
    Could you give some advices how to implement it (Labview and Veristand)?
    I'm using LV and NIVS 2012
    Thx
    Mich
    Attachments:
    vide.vi ‏35 KB

    Hi Michel,
    I believe the easiest method will be to use the VeriStand .NET API to call into VeriStand and utilize LabVIEW for creating the decision making cases that you have.  I have attached some examples of using the VeriStand API in LabVIEW.
    Using the NI VeriStand .NET API in LabVIEW to Control a VeriStand System
    https://decibel.ni.com/content/docs/DOC-32268
    Where Can I Find LabVIEW Examples Using the NI VeriStand API?
    http://digital.ni.com/public.nsf/allkb/E1066949FA67B6CE862578A7005988D5?OpenDocument
    Please let me know if this helps.
    Matt S.
    Industrial Communications Product Support Engineer
    National Instruments

  • Is it possible to make .dll file of .vi project then load it to CVI and use the APIs in the dll to CVI project

    Is it possible to make .dll file of .vi project then load it to CVI and use the APIs in the dll to CVI project?

    Hi Kumar,
    It is possible to make .dll from Labview and i think we can call the same from other programming application also.
    Pls refer the
    below link
    http://zone.ni.com/devzone/cda/tut/p/id/4038
    GAnesan KAni

  • Forte built-in tags and MySQL

    Hello,
    I'm developing a web application using Forte Community Edition 3.0 and MySQL.
    I've been using the built-in jdbc and presentation tags of Forte, the same way as in the help and the CD Shop tutorial, but it seems to be not working with MySQL. There's no problem with making a connection and executing a query, but afterwards I can't iterate through the resultset. The <prefix:iterator> tag only gives me the last row, that one infinite times, however.
    Anyone experienced this problem and has an idea how to get around?
    Is there a way to get a reference to the Result object which is mentioned in the <query> and the <iterator> tag attributes?

    You're not alone. I spent several hours thinking I did something wrong, but I think there must be some incompatability with the ie & db tags supplied with Forte and the MySQL 2.0.4 driver.
    I've been searching the forums and the only suggestion that I've found is to not use the ie & db tags supplied with Forte and to replace them similar tags from Apache. Unfortunately, it isn't a tag for tag replacement. You're going to have to reference new tags with a different API.
    I downloaded dbtags.jar from http://jakarta.apache.org/builds/jakarta-taglibs/nightly/projects/dbtags/
    In looking at the documentation, it looks like they have tags that will do most of the things that the ie & db tags will do.
    Good luck!
    Scott

  • I am receiving the data through the rs232 in labview and i have to store the data in to the word file only if there is a change in the data and we have to scan the data continuasly how can i do that.

    i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it.  I am gettting the data from rs232 interms of 0 or 1.  and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer

    I have attatched the vi.  Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off.  suppose if 0 comes the corresponding data status is wrtten into the text file.  But here the problem is the same data will be printed many number of times.  so i have to make it like if there is a transition from 1 to o then only print it once.  how to do it.  I am doing this from few weeks please reply if you know the answer immediatly
    thanking you 
    Attachments:
    MOTORTESTJIG.vi ‏729 KB

  • What is the difference between Oracle and MySQL

    Hi,
    I would like to know the major difference between Oracle and MySQL. I have a project to generate XML files from database tables, i have used oracle's built XML functions XMLELEMENT, XMLATTRIBUTES, XMLFOREST, XMLAGG. I really want to know if these functions (or) similar functions are supported/availabe in MySQL.
    I am having a hard time to find out best linux distro for installing Oracle11g, so i am planning to switch to MySQL. Please help, Thanks in advance.

    Oracle_Walker wrote:
    Hi,
    <snip>>
    I am having a hard time to find out best linux distro for installing Oracle11g, Then you must be "looking for love in all the wrong places."
    What's so hard about finding a "best linux distro for installing Oracle11g"? The supported distros are listed in the fine Installation Guide for Linux. At the top of the list is Oracle's own Oracle Linux, which is in the same family as Red Hat.
    so i am planning to switch to MySQL. Please help, Thanks in advance.

Maybe you are looking for

  • BSOD DRIVER_POWER_STATE FAILURE 0x1000009f ntoskrnl.exe

    Hi there, I get a BSOD every once in a while, but only for a few weeks by now: Sometimes while working on the computer it just freezes (not using any certain program), I can't use my mouse/ keyboard, sound stops, waiting a long time sometimes helps,

  • How do I trim a column up to a certain tag?

    Originally posted using Google Groups: Hi there, Its been a while since I was around these parts, I hope your all doing well. I have a database column that contains the following: KELOWNA, BC @ X.10.SION 207 & Cheetah's<br>1st: <b>Stickybuds</b> 2nd:

  • CRM 7.0 EHP-1 Upgrade Issue In phase MAIN_SHDIMP/SUBMOD_CP2SHD

    Hello All, Im in the process of upgrading SAP CRM 5.0 to SAP CRM 7.0 EHP-1,By using SAPUP Tool in phase  MAIN_SHDIMP/SUBMOD_CP2SHD/SUBMOD_DIFFCP2SHD/DIFFEXPADDI Single errors found in log file DIFFEXPAI.ELG.. The  DIFFEXPAI.ELG Log Says 2EETW000 sap_

  • Acrobat Pro 9.2 freezes my system

    Mac OSX 10.6.2 with Acrobat pro 9.2.  When I open Acrobat it will open, however when I try to do anything it will immediately freeze causing the need to restart my laptop.  If I try to open a .pdf file, Acrobat will open, but if I try to do anything

  • Configuring Watch Folder Problem - LiveCycle Reader Extensions ES

    Hi all, I am totally new to this process. We bought the LiveCycle licensed version 8.2 installed in Linux machine. LiveCycle PDF Generator ES and LiveCycle Reader Extension ES alone. The person who installed was resigned from service, so this task ha