Plot more than one analog value to a waveform chart by reading from Serial Port

I have 4 LDRs and I want to plot their values to a waveform chart by reading them from the serial port. I have looked around and found an example of a VI plotting one value to a waveform chart (attached below) but I am unsure about how to expand this for 4 different waveforms, mostly because I don't particularly understand the way is being read currently. If someone could either point me in the way of a relevant example or explain/show me a solution, or explain howthe current VI I have works, that would be greatly appreciated.
Attachments:
LDRread.vi ‏20 KB

Since I assume each LDR (whatever that is) has its own serial connection, you will need to read from 4 different serial ports.  From there, just form an array of all the data and write to the chart.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

Similar Messages

  • Function with more than one return value

    Hi
    Please let me know how to write a function with more than one return value and in what scenario should we go for this option.
    Thank you

    user12540019 wrote:
    Please let me know how to write a function with more than one return value and in what scenario should we go for this option.Yes. And the following is the correct approach (using OUT variables is not!) - you deal with the multiple values as a data structure. This example uses an custom (user-defined) SQL data type as the structure.
    SQL> create or replace type TXYcoord is object(
      2          x       number,                  
      3          y       number                   
      4  );                                       
      5  /                                        
    Type created.
    SQL>
    SQL>
    SQL> create or replace function fooCoordinate( someParam number ) return TXYCoord is
      2  begin                                                                         
      3          -- doing some kind of calculation using input parameters              
      4          --  etc..
      5
      6          -- returning the multiple return values as a proper data structure
      7          return(
      8                  TXYcoord( 0, 0 )
      9          );
    10  end;
    11  /
    Function created.
    SQL>
    SQL> -- selecting the data structure
    SQL> select
      2          sysdate,
      3          fooCoordinate(123)      as XY
      4  from       dual;
    SYSDATE             XY(X, Y)
    2010-02-01 08:49:23 TXYCOORD(0, 0)
    SQL>
    SQL> -- selecting the properties/fields of the data structure
    SQL> select
      2          sysdate,
      3          treat( fooCoordinate(123) as TXYcoord).x        as X,
      4          treat( fooCoordinate(123) as TXYcoord).y        as Y
      5  from       dual;
    SYSDATE                      X          Y
    2010-02-01 08:49:23          0          0
    SQL>

  • Sending more than one name value pair via ajaxRequest.add()

    Hi all,
    I'm implementing AJAX in Oracle Application Express to perform DML operations on a table. I need to send more than one name value pair via the ajaxRequest object. Can someone guide me how to achieve this? Say for example i need to send 2 values(need to send 2 form elements when submit button is clicked) P3_region and P3_scope. i tried the following methods.
    Method 1:
    ======
    ajaxRequest.add('P3_region',document.getElementById('P3_region').value);
    ajaxRequest.add('P3_scope',document.getElementById('P3_scope').value);
    Method 2:
    ======
    ajaxRequest.add('P3_region',document.getElementById('P3_region').value,'P3_scope',document.getElementById('P3_scope').value);
    Neither of them is fruitful. Can someone guide me how to achieve this?
    Regards,
    Balaji Radhakrishnan.

    Hi Roel,
    The javascript goes like this.
    <script language="JavaScript" type="text/javascript">
    function getElement1()
    document.getElementById('P3_Element1').value = '';
    var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=Element1Process',0);
    ajaxRequest.add('P3_Element2',document.getElementById('P3_Element2').value);
    ajaxRequest.add('P3_Element3',document.getElementById('P3_Element3').value);
    ajaxRequest.add('P3_Element4',document.getElementById('P3_Element4').value);
    ajaxRequest.add('P3_Element5',document.getElementById('P3_Element5').value);
    ajaxRequest.add('P3_Element6',document.getElementById('P3_Element6').value);
    ajaxResult = ajaxRequest.get();
    if(ajaxResult)
    var wsArray = ajaxResult.split("~");
    document.getElementById('P3_Element1').value = wsArray[0];
    </script>
    The application Process goes like this..
    declare
    v_Element1 VARCHAR2(60);
    begin
    select distinct Element1 into v_Element1 from TableA where Element2=:P3_Element2 AND Element3=:P3_Element3 AND Element4=:P3_Element4 AND Element5=:P3_Element5 AND Element6=:P3_Element6;
    htp.prn(v_Element1);
    exception
    when others then
    v_Element1 := 'Invalid Header Combination';
    htp.prn(v_Element1);
    end;
    The requirement goes like this..
    When i give Element2, Element3,Element4,Element5,Element6 as input in the form page the Element1 should get displayed automatically without refreshing the page. But when i use the above javascript and application process i get the Element1 loaded with some html scripts. I call the javascript using onChange() function.
    Regards,
    Balaji Radhakrishnan.

  • How to retrive more than one row value from table

    hi,
      I had create one table if i entered value in more than one row, the second row override the first row value and while printing it in flat file i am getting the second value entered twice.
      i created one context for each column.
        plz provide me a solution..........
           very urgent..........
            Regards,
            Kiruthika

    Hi,
    Create seperate element for each row and then set values.
    for(int i=0;i<4;i++)
    IPrivate<view name>.I<node name>Element element = wdContext.node<node name>().create<node name>Element();
    wdContext.node<node name>().addElement(element);
    element.set<Att>();
    to retrive:
    int s=wdContext.node<node name>.size();
    for(int j=0;j<s;J++){
    wdcontext.node<nodename>.getnodeelementAt(j).getAttribute();
    Check this link about tables
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/bad3e990-0201-0010-3985-fa0936d901b4
    Regards,
    Vijayakhanna Raman

  • How To Get more than one Return Values in LOV ADF

    In ADF LOV, I can get only one return value;
    How can I Get more than one values like in Oracle Form?
    SomeOne can help me?
    Thanks

    you may add more <set> tag like the following:
    <event name="lovSelect">
    <set property="inputValue" value="${bindings.Id.inputValue}" target="${data.work_workBusinessViewUIModel.buyCompanyId}"/>
    </event>
    or you can implement your Action

  • How to authorize more than one device on my adobe digital editions Ebook reader

    I have a computer, iPhone and iPad, and can't read a downloaded ebook (EPUB) on more than one device  at a time. If I try to open the item on my Overdrive account with a device other than the one I originally used when I downloaded the ebokk,  it gives me an error code "Fullfill  2004. This license has already been fulfilled by another user".  When I contacted Overdrive Media  they explained that I need to contact Adobe to authorize my various devices to have access to my Overdrive account which utilizes Adobe digital editions 4.0
    Please provide info on how to authorize my additional devises to have access to downloaded e-books  on my overdrive account

    Please authorize your devices with same credentials in order to read the book across devices.
    thanks

  • How can I put more than one source file when I am creating my installer from LV 7 Express

    Hi,
    I am creating my installer for my application and I would want to add more than one source file at once, how could I do it?
    Thanks,
    ToNi.

    Hi,
    I'm referring to the first executable. In other words, I have my application and I want to build and executable of it. Then I go to "Tools->Build application..." and then in the source files tab I can add my vi files but I want to add more than vi at the same time (at once) and not one by one. How can I do it?
    And my second question is: When I make the installer for my application I save the configuration in a build Script file (.bld) in order to use it whenever I want. Then If from another computer different from the one where I generate the .bld file, I load it, LV tells me that something is wrong (LV says there are some errors in some VIs but It doesn't tell me what files are). Why?
    Thanks in advance,
    ToNi.

  • How can I display more than 1 loop iteraction in a waveform chart?

    Using DAQmx, I am inputting a signal at a rate of 10k with 1k samples inside a while loop. I want the first 3 seconds of data to display on a waveform chart without having to change the rate or number of samples. Is there a way to stop the waveform chart from clearing after every loop iteration so that I can display more than 0.1sec of data? Thank you for any help you can provide!

    The default history length of a chart is 1024. To make it longer is a right click option.

  • Can a user have more than one RBS value?

    In our current environment, we have our RBS structure setup similar to our University organizational chart. Many of these groups collaborate with each other on projects and this structure does not allow for one user to see projects from multiple departments.
    For instance, our Admissions office collaborates on projects with our IT group. If Admissions enters a project in PWA, the IT group will not see the project proposal until an IT resource is assigned. But, since we are just at the proposal stage, we would prefer
    to not assign resources until the project is approved. As it stands with our current RBS structure, if a user in Admissions is the project owner, the IT group cannot see the project.
    Would like to avoid setting individual project permissions when collaborating with multiple departments.
    So, Admissions needs to have the project show on their project list (for planning and portfolio purposes) and IT needs for it to show on their project list, for the same reasons. How can we accomplish this setup?
    Thank you for any help you can provide.

    SycamoresPM,
    A single user cannot have two RBS values at the same time.
    Your best bet in this scenario would be to rather depend on the "project Team". So, whoever is part of the team could see the project, rather than the RBS itself.
    In this case, regardless of the department, the resource could be added to the schedule and once published, will be seen the team member. That should solve your issue, in my opinion.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Comparing a single int to more than one int value?

    Hi is there a way to compare a single int value amongst several ints in one go?
    i know i could do if statements that can compare each int one by one but i was wondering if there is an easier way? like comparing all values amognst eachother
    somthing like
    int i;
    int a,b,c,d,e,f,,g;
    //ints a-g assigned some random numbers
    if(i == a,b,c,d,e,f,g)
          //do somthing here
    }

    i found out a way. i tried this way by using nested for loops and an if statement that compares every single value amongst eachother
    for(int q=0; q < 5; q++)
                ran[q] = (int)(java.lang.Math.random()*52);
            for(int x = 0; x < 5;x++)
                for(int z = 0; z < 5; z++)
                    if(x != z && ran[x] == ran[z])
                        ran[x] = (int)(java.lang.Math.random()*52);
            }

  • Returning more than one row (value)...

    I am running the following:
    SELECT
    (CASE
    WHEN AF.asset_flow_type = 39 THEN decode(sum(asset_flow_amount),0,NULL, sum(asset_flow_amount))
    WHEN AF.asset_flow_type = 40 THEN decode(sum(asset_flow_amount),0,NULL, -sum(asset_flow_amount)) END)
    FROM O_ASSET_FLOW AF, REPORT_CLIENT RC
    WHERE AF.asset_flow_type IN (39, 40) AND AF.orig_partner_id_1 = Control.AnonymisePortfolio(RC.PORTFOLIO)
    GROUP BY AF.asset_flow_type
    This returns 2 values, one with AF.asset_flow_type = 39 and one with AF.asset_flow_type = 40. How do I return just one value? Since it needs to insert the value into a column, only one value will be acceptable. I need to return one value if AF.asset_flow_type = 39 and one value if AF.asset_flow_type = 40, but not both at the same time.
    Thanks.

    First thing, you shouldn't use dynamic SQL for this simple update statement. Your procedure should look similar to this.
    CREATE OR REPLACE PROCEDURE <procedure_name>(p_asset_flow_type O_ASSET_FLOW.asset_flow_type%TYPE,
                                                            <other parameters if any>)
    BEGIN
    UPDATE REPORT_CLIENT RC SET
    nnm_percent_assets = (CASE WHEN assets_chf_vormonat IS NULL OR assets_chf_vormonat = 0
                          THEN NULL
                          ELSE (decode(((nvl(total_nnm,0) * 100)/nvl(assets_chf_vormonat,0)),0,NULL,
                                  trunc(((nvl(total_nnm,0) * 100)/nvl(assets_chf_vormonat,0)),2)))
                          END),
    mandate_shift = (Select decode(sum(asset_flow_amount),0,NULL,
                        sum(asset_flow_amount)) from O_ASSET_FLOW AF
                        where AF.asset_flow_type = p_asset_flow_type
                        AND AF.orig_partner_id_1 = Control.AnonymisePortfolio(RC.PORTFOLIO));
    END <procedure_name>;

  • Issue while passing more than one promt value to bi publisher in 11.1.1.6

    Hi all ,
    i have created a dashboard prompt with two columns . i want them to pass to bi publisher report to filter out the result. but for some reason it's not applying both filters. It just refreshes the page with default value.
    any idea how to resolve this issue.
    thanks

    Brent,
    In the statement
    ${JHS.pageDefGenerator.addBinding($JHS.page,"JhsUsers","#CUSTOM_BINDING2()")}
    the second argument should be the id of the binding you want to add. You use twice "JhsUsers" as id for the binding.
    This id should be the same id as used in your XML page snippet, so for the first binding it should be "SubjectsActiveVisitsGraph" and for the second binding it should be "SitesActiveVistsGraph"
    Steven Davelaar,
    Jheadstart Team.

  • Is it possible to return more than one field values to base form from LOV ?

    Hi
    I have a form with employee_number, employee_name, email_address, phone_nos...etc. I have a LOV to select employees from remote database, I want to send selected employee details to current form through LOV. Is it possible?
    Now I am doing like this..From LOV , I am selecting Employee number, after return that employee number, through process,button and javascript (onBlur), I am populating the other details for that employee_number.
    Please advice me if we can do this in better way in HTML_DB.
    Thanks
    Raju

    You may want to try creating your own custom popup lov
    http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html
    you can then create your own lov report listing all people and then when you click the name required you can passback as many values as required to the calling form.

  • How to force waveform graph cursors to show Y value on more than one plot?

    Hello
    Is it possible to show more than one Y value on waveform graph cursors?
    Thanks in advance.
    Pawel

    Hi Dennis
    That is correct, on graph woth multiple plots I want to display multiple Y values of plots at the same X value.
    I know I can use property node to access cursor list etc. and this is how I have done it, but my question was rather if it is possible to force the cursor legend to display more than one Y value (as a native display). As a default it displays one value and you can choose which plot you want to stick to, but it would be a great feature to have possibility to expand cursor legend to display more than one value.
    The question has nice consequences. If it was possible, you could use a property node to export image of the graph, control sizes, or even simple "copy" data from the popup menu. Otherwise we need to "artificially" glue the exter
    nal controls displaying Y values if we want to export pictures, etc.
    But since you did not answer that I supose it is not possible, as I thought.
    thanks anyways.
    kind regards
    Pawel

  • How Calculate more than one value and store it into to different rows and column for each input?

    thx guys.....i have a progress now in LV
    But now i have new trouble here. Ok i attached my LV file (LV 7.0.1/7.1) and excel form. I just could'nt calculate more than one input value. I want a different result for each value that i enter ... and store it into different rows and column. But it just store at one row.
    Attachments:
    My Project.vi ‏31 KB
    rumus motor bakar.xls ‏14 KB

    duplicate post

Maybe you are looking for

  • Extended notifications in Workflow

    Has anybody worked on Extended Notifications in workflow? Any good documents on Extended Notifications. Thanks, Yogesh

  • Help with images and buttons

    I was wondering if anyone could recommend a tutorial or point me in the right direction. I've been trying to figure out how to use buttons to add images (been using png from photoshop with alphachannel) to a canvas. I don't have any problems skinning

  • Debug the swing application from eclipse

    Hi I had a swing application, to create a exe file i build the application using using build.xml. To run the application we need to open the exe file. I want to debug this swing application from eclipse. Can anybody please tell me how to debug this a

  • INSPECTION LOT POSTING

    Hi Gurus, For some material Type, When i record results & do UD, in QA32 i am unable to post the stock in unrestricted use or any category as i am not getting a<b> tab of</b> <b>Inspection lot Stock</b> thr. which i can post the stock. I am unable to

  • Report by query

    Hi all! I am doing a report by query. In the Infoset query i have given PO Number(EBELN) as output along with some other fields. But the PO no is not displaying in the output while i execute the query. I have not ticked PO Number field as selection f