Create graphics using multi-channel for measures and another single channel for the datetime type.

Hello world

I'm using Labview and DIAdem to create graphical reports and I use screws of connectivity and not the Express VI.

The data is stored in a data base MySQL Inno.

I use the following command to get the data I want to show the graphic report!

SQL_ExecDirect (' select 'TimeStamp', 'Value' by 'TableX' where and taste =' %s and channel =' %s; "" ")

And then I use:

SQL_BindChannel ("Datetime1C1", "TimeStamp", "t", "#yyyy - mm - dd hh") to bind the data to the X axis of the graph.

And after that, I use:

SQL_BindChannel("SampleN","Value","n") to bind the data to the axis of the graph Y.

I want to create the chart with more than a sample, I use the commands above on a loop.

Now here's a printscreen of my problem.

In the first iteration (green line), DateTime1C1 has the timestamp for sample1 but in the second portion (yellow line) DateTime1C1 has the timestamp for sample2, the third iteration (blue line) DateTime1C1 timestamp for sample3. etc.

The time stamp of origin for each sample are 'lost' he re-wrote datetime1C1. and in the end, it shows only the timestamp for the 5th iteraction.

How can I create a single graph with several lines (samples) and datetime an axe?

THX in advance

Hi AlexandreHSCas,

If I understand your situation, the only thing you need to change is to create a new group in the DataPortal before each request.

FOR i = 1 TO iMax
NewGroupName = "application" & I
Call GroupCreate (NewGroupName)
Call GroupDefaultSet (GroupCount)
Call SQL_ExecDirect ("select 'TimeStamp', 'Value' from ' TableX" including Sample =' %s and channel =' %s;) ")
Call SQL_BindChannel (NewGroupName & "/ Datetime1C1", "TimeStamp", "t", "#yyyy - mm - dd hh")
Call SQL_BindChannel (NewGroupName & "/ SampleN", "Value", "n")
NEXT

Then you can simply drag each group from the data on the same graph XY-portal, because each group has its own time warp, data points will be displayed correctly placed on the common X axis of the graph.

Brad Turpin

Tiara Product Support Engineer
National Instruments

Tags: NI Software

Similar Questions

  • check for the datetime type between

    Hi all

    How can I check the records with the column datetime between 10 minutes before and 10 minutes after?

    If it comes to my sample
    mydate
    02/09/2011 10:50:00
    02/09/2011 12:00:00
    02/09/2011 12:15:00
    02/09/2011 10:00:00
    02/09/2011 10:55:00
    How can I get the registration 1 and 5, if my whereclause is

    When trunc (mydate) = February 9, 2011"
    and the time between 10:40 'and 11:00 '

    Thanks for help
    SQL> with t as (
      2  select to_date('02/09/2011 10:50:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
      3  select to_date('02/09/2011 12:00:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
      4  select to_date('02/09/2011 12:15:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
      5  select to_date('02/09/2011 10:00:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
      6  select to_date('02/09/2011 10:55:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual
      7  )
      8  select *
      9  from t
     10  where trunc(mdate, 'MI') between trunc(to_date('02/09/2011 10:50:00', 'dd/mm/yyyy hh24:mi:ss'), 'MI')
     11                                   - (1/6)/24
     12                           and     trunc(to_date('02/09/2011 10:50:00', 'dd/mm/yyyy hh24:mi:ss'), 'MI')
     13                                   + (1/6)/24
     14  /
    
    MDATE
    -------------------
    02/09/2011 10:50:00
    02/09/2011 10:55:00
    

    I assume that you have a way to identify your first row.
    The example above explicitly takes the value of the first row in the WHERE clause, which is probably not what you do.
    You may specify some of your other column values to get a better idea of how this code.

  • SQL for the datetime type

    Hello

    help me in this.

    I have a sql to the datetime of the user input value:

    Select * from master_table
    where time < = 9 April 09 ' + 1

    It seems that I can not add '+ 1' here...

    April 9 09 is the web-based user input...

    My question: How can I add a '+ 1' every time that the user key in the user input text box?

    Thank you.

    You can change in your date format or add

    Select * from deadline-1=to_date('09-apr-09','DD-MON-YY master_table');

  • Ingest parameters: copy and create proxies has no option for the MD5 checksum

    I'm very happy with the new feature of proxy CC 2015.3. My favorite ingest setting is to "copy and create proxies" but there is no option to use given MD5 checksum check that if I used the parameter "copy". I tried to create a preset in Media Encoder, but I couldn't find the option to use GoPro Cineform for the format of proxy?

    You can create a custom preset to achieve this goal. In the SOUL, first create a preset for encoding with your GoPro CineForm desired settings. Then create a preset to ingest allowing of ' copy Destination files, check (value comparison MD5), transcode files Destination, then set Format in your "Preset" custom coding. " Some Destination paths for the copy and Transcode. Click OK to save the preset Ingest and import this preset in the settings dialog box to ingest first.

    More information about the creation of presets can be found here:

    Adobe Premiere Pro help. Ingest and Workflow in Premiere Pro 2015.3 CC Proxy

  • I recently created a form to complete for the app e-business of the company. When you press the button submit, he only sent to our Inbox to project and not sent to the e-mail provided in the URL. Can someone help us to program the key to help explain why.

    I recently created a form to complete for the app e-business of the company. When you press the button submit, he only sent to our Inbox to project and not sent to the e-mail provided in the URL. Can someone help us to program the key to help explain why / tell us step by step what we should do?

    OK, I re-read your question. It's actually expected behavior. The user must manually send the email.

    If you want it to be a silent process, then you must either install a script on the local computer of the user who will do this, or use any email but something as a service web to which you directly submit the form data.

  • I own CS 5Premium. Read the FAQ, it seems, I am eligible to proceed to 6 CS but I can't find the upgrade to purchase and download. I can't upgrade to CC because $49 per month, it's too much for me - do not use this product for the job. The offer of $29 se

    I own CS 5 Design Premium. Read the FAQ, it seems, I am eligible to proceed to 6 CS but I can't find the upgrade to purchase and download. I can't upgrade to CC because $49 per month, it's too much for me - do not use this product for the job. The offer of $29 seems reasonable but $49 is too much. I don't need most of the programs included in the CC, but subscribing to only three of them will cost much more. Really don't know what to do here :-(

    Buy CS6:
    ----------------------

    http://www.Adobe.com/products/catalog/CS6._sl_id-contentfilter_sl_catalog_sl_software_sl_c reativesuite6.html

    I believe that the offer of $29 is only for the first year, so you would end up paying $ 49 thereafter.

  • Is it OK to buy the student of CC version and I use it mainly for the University, but...

    Is it OK to buy the student of CC version and I use it mainly for the University ... But I sometimes design (Logos, posters... etc) for my friends and other people and I charge for it? ... is legal? because I really care about the small details.

    You are allowed to use the student/teacher version for commercial purposes.

    Education FAQ

  • Given the file name or path contains Unicode or DBCS characters. Retry using ASCII characters for the file name and path whatever that means? This happens when I publish an OAM

    Given the file name or path contains Unicode or DBCS characters. Retry using ASCII characters for the file name and path

    What does that mean? It happens when I try to publish an OAM for Dreamweaver.

    Also: How can I specify the onboard browser animate? It's just going as far. Are there no preference to animate it dashboard?

    BTW. Just call him edge. Seriously. You call Illustrator draw? Photoshop editing?

    No, my file name is mainContent.oam

    My project name is mainContent.an

    This error occurs when I try to import into Dreamweaver. Sorry, I was unclear about that earlier.

    I thought maybe it was because I had saved my image as a png image. So re-saved as an svg, still get the error.

    Should I have a setting is CC of Dreamweaver that will not? I should try this in Dreamweaver CS6? I might try that next.

    Why is this so difficult program? I know that Flash. I know that After Effects. I can work the chronology part simply awesome. He's still export I have problems.

    On a MacPro, 10.7.

    You are a person of Adobe or simply a beautiful assistance program?

  • Use two assistants for the acquisition of data at the same time

    Hello

    I want to read multiple data channels of analog inputs on my DAQ hardware. However, when I try to create two separate data acquisition assistants for each entry, it gives an error saying "is reserved for the specified resource. The operation could not be performed as indicated "." Can't use two assistants for the acquisition of data at the same time?

    I have to add different channels in the same assistant DAQ? I tried, but I couldn't separate the data in different graphs.

    How does this work?

    Kind regards

    Allard

    You can't have multiple tasks of the same type (in this case inputs analog) on the same device.  Just so having 1 DAQ Assistant read all your channels and separate your channels for individual transformation.

  • Can use iCloud company separate personal and business files to select the files to share?

    I run my own business (1 year) and I use all Apple devices, including a MBP and iPhone iPad 2 Air I think it's great to keep track of all my work files and standard documents, including models created in the likes of Pages.

    I'm looking to use possible someone, and I would like that they have access to the iCloud deposit structure that I use to store all my files, documents, documents standard and models Admin etc.  Currently, this is all related to my iCloud/Apple account which also includes personal documents, etc..  Is it possible to create a separate business account to store all of these documents, which can then easily shared and worked on several people or a way to select the files to appear to other people?

    One way to do that would be to create a second user account for the work. Transfer all your work related document here. Then create a new ID Apple and sign in iCloud. Organize your documents here. You can then sign the new employee in this iCloud account.

    On devices, we should go in settings/iCloud to sign out as your dial-up between your personal files and your working data.

  • Where can I find the clock digital multi AGS for the vista sidebar?

    I recently had to smoothing on my computer and do a vista reload fee.  now, I'm trying to find the clock digital multi AGS (the most useful for the windows vista sidebar gadget was by far, in my humble OPINION).  Where can I find the clock digital multi AGS for the vista sidebar since microsoft went down the gadget site?

    Thank you

    Hello
     
    As the gadget site is down you can't find the clock digital multi AGS for the vista sidebar.

    You can check the link for help:

     
  • How to create a VPN file .pcf for the CISCO VPN CLIENT software profile

    Dear all

    How to create a VPN file .pcf for the CISCO VPN CLIENT software profile

    Concerning

    Hi Imran,

    Can't do much about that because it depends on what authenticate you the VPN server and how the settings. But let me introduce you to the memory layout. Once you install and open a VPN client. Press it again and it opens up a new page for the VPN config.

    Example of configuration as it is attached. But it differs depending on the configuration of your vpn server.

    Once you create and save this profile. Your FCP file is stored.

    Please assess whether the information provided is useful.

    By

    Knockaert

  • Oracle of the MAF error ' cannot read the DataControl uses on loadDataControl for the id:

    Need help!

    I created a simple SOAP web service for a remote database that works very well in 12 c WebLogic Server and also in the Jdeveloper HTTP Analyzer. When I use the same web service in the attached code, I get the following error (I've included output System.out.println in Ref. to the flow of the code) I use Jdeveloper 12 c MAF 2.0.0.0.41 on Mac OSx 10.9.

    Chk #0

    Processing line # 1

    Chk #1

    Chk #2

    [SEVERE - oracle.adfmf.framework - AmxBindingContext - loadDataControlById] Cannot read the DataControl uses on loadDataControl for the id: WLFNewActWS. [SEVERE - oracle.adfmf.framework - SynchronizationDC - syncDataFromOfflineToOnline] [Ljava.lang.StackTraceElement;@467c53d3

    @


    Sorry about that, I think I'm wrong you.

    OK, I created an example to test what goes wrong.

    1. server side, create a project named Employee_ws

    a. Department_ws.java

    public interface {Department_ws}

    public boolean addDepartment (a Department);

    }

    b. Department.java

    public class {Department

    public Department() {}

    Super();

    }

    int departmentId.

    String departmentName;

    locationId int;

    managerId int;

    {} public void setDepartmentId (int departmentId)

    this.departmentId = departmentId;

    }

    public int getDepartmentId() {}

    return departmentId.

    }

    {} public void setDepartmentName (String departmentName)

    this.departmentName = departmentName;

    }

    public String getDepartmentName() {}

    return departmentName;

    }

    {} public void setLocationId (int locationId)

    this.locationId = locationId;

    }

    public int getLocationId() {}

    return locationId.

    }

    {} public void setManagerId (managerId int)

    this.managerId = managerId;

    }

    public int getManagerId() {}

    return managerId;

    }

    }

    c. Department_impl.java

    @WebService

    / public class Department_impl implements Department_ws {}

    public Department_impl() {}

    Super();

    }

    @Override

    @WebMethod

    {} public boolean addDepartment (@WebParam (name = "arg0") a Department)

    If (Department! = null) {}

    int departmentId = department.getDepartmentId ();

    String departmentName = department.getDepartmentName ();

    int locationId = department.getLocationId ();

    managerId int = department.getManagerId ();

    Connection Conn;

    try {}

    Conn = ConnectionFactory.getConnection ();

    conn.setAutoCommit (true);

    Statement šment = conn.createStatement ();

    String inset_sql =

    "INSERT INTO dept (department_name, location_id, department_id, manager_id) VALUES ('+ '.

    departmentId + "," "" + departmentName + "'," + locationId + "," + managerId + ")";

    šment. Execute (inset_sql);

    Returns true;

    } catch (Exception e) {}

    System.out.println (e);

    }

    }

    Returns false;

    }

    }

    d. ConnectionFactory.java

    import java.sql.Connection;

    to import java.sql.DriverManager;

    import java.sql.SQLException;

    Connect to the database

    public class {ConnectionFactory

    public ConnectionFactory() {}

    Super();

    }

    protected static connection conn = null;

    public static connection getConnection() bird Exception {}

    If (conn == null) {}

    try {}

    String driver = "oracle.jdbc.driver.OracleDriver";

    String url = "jdbc:oracle:thin:@localhost:1521:orcl";

    User String = "employee";

    String password = "employee";

    Class.forName (driver);

    Conn = DriverManager.getConnection (url, user, password);

    } catch (SQLException e) {}

    System.Err.println (e.getMessage ());

    }

    }

    return conn;

    }

    public static {} Sub closeConnection()

    try {}

    If (conn! = null) {}

    Conn.Close ();

    Conn = null;

    }

    } catch (Exception ex) {}

    throw new RuntimeException (ex);

    }

    }

    }

    You can run Department_impl.java to start the Web service. i.e. http://127.0.0.1:7001 / Employee_ws-Client-context-root/Department_implPort? WSDL

    Server side sql:

    CREATE USER employee IDENTIFIED BY employee DEFAULT TABLESPACE users

    Temp TEMPORARY TABLESPACE

    Users WE QUOTA UNLIMITED;

    GRANT create employee to logon.

    GRANT alter used to logon.

    GRANT create any employee at table;

    GRANT create trigger employee TO;

    GRANT create any employee to view;

    GRANT create sequence employee TO;

    GRANT create synonym employee TO;

    GRANT create type employee TO;

    GRANT create employee to procedure;

    CREATE TABLE (DEPT

    DEPARTMENT_ID NUMBER (7, 0) NOT NULL,

    DEPARTMENT_NAME VARCHAR2 (50).

    NUMBER OF LOCATION_ID (7, 0),

    MANAGER_ID NUMBER (7.0)

    );

    2 create a mobile application of CRG named Dept

    a. Department.java (even for the server)

    b. SynchronizationDC.java

    import java.util.ArrayList;

    import java.util.List;

    Import oracle.adfmf.framework.api.AdfmfJavaUtilities;

    Import oracle.adfmf.framework.exception.AdfInvocationException;

    public class SynchronizationDC {}

    public SynchronizationDC() {}

    Super();

    }

    public void syncDataFromOfflineToOnline() {}

    It's just for testing, so I build Department manually instead of mobile db data, please replace in your business logic

    A Department = new Department();

    department.setDepartmentId (1);

    department.setDepartmentName("1");

    department.setLocationId (1);

    department.setManagerId (1);

    NamesList list = new ArrayList (1);

    List ParamsList = new ArrayList (1);

    List TypesList = new ArrayList (1);

    namesList.add ("arg0");

    paramsList.add (department);

    typesList.add (Department.class);

    try {}

    AdfmfJavaUtilities.invokeDataControlMethod ("Dept_WS", null, "addDepartment", namesList, paramsList,

    typesList);

    } catch (AdfInvocationException e) {}

    System.out.println (e);

    }

    }

    }

    c. new an AMX pag called Dept.amx

    "http://www.w3.org/2001/XMLSchema-instance" xmlns:amx ="http://xmlns.oracle.com/adf/mf/amx"

    xmlns:dvtm ="http://xmlns.oracle.com/adf/mf/amx/dvt" >. "

    Text = "syncDataFromOfflineToOnline."

    Disabled = "#{!}" Bindings.syncDataFromOfflineToOnline.Enabled}"id ="cb3"/ >

    d. deploy on Android Simulator

    Click the button and a new record have been db insert through the webservice, search the remote db recording

    If above does not solve your problem, please let me know, thanks.

    Byron

  • Can Oracle 10g - I use a variable for the access of the user identifywhat tablesto?

    I have the following code in a trigger (PL/Sql block) of a form:

    Select fieldname in user1.sometable myvar;

    is it possible to use a variable instead of coding hard "user1"? And on the same subject, this variable would also be declared in the world?

    Thanks in advance,
    Darren

    Hello!

    User1 is the owner of the table sometable.

    If only the User1 runs your form, there is no need to put the tableowner in front of the tablename parameter.

    If other users run your form, you must create a public or private (for each user) synonym of this table.
    After that, you don't need to use owner.tablename in your sql statement.

    But:
    You cannot use a variable for the user name without using dynamic sql
    as you do if you create a recordgroup.

    Concerning

  • create an exception in avast for the nsemail.html file in the temp folder

    I was pulling out my hair trying to find if there could be anything in the temporary files that I have to keep the last few weeks. Then I came across this: "the release of Avast 10.3.2223 (we think it's this version) has resulted in questions with avasts prevention of Thunderbird.
    to function properly. The solution seems to be to create an exception in avast for the nsemail.html file in your
    computers temp folder. "So now I'm completely confused. Why would I put something I need all the time in a temporary file to have remove for cleaning ccleaner?

    Matt, thanks. I read your blog post. I need to replace my HD and I've been fretting over if I have to loose important data from the temporary files. Apparently not. When I talked about ccleaner, it was in the generic sense. I avoided ccleaner because I thought it was a big hammer and some data that he brags about getting rid of I really want to continue. I know that I can choose what remains and what is happening, I'll have to give him another look. Once again thank you.

Maybe you are looking for