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

Similar Messages

  • Load photo from 2 different data sets

    I have 2 different data sets in an accordian widget, one set
    of data in each collapsible panel. Panel 1 has 2007 data and panel
    2 has 2006 data. I have one photo displayed on the page. The photo
    changes for each data row clicked on.
    Code for the record link is:
    <tr spry:when="{ds_RowID} == {ds_CurrentRowID}"
    class="even" spry:setrow="email2007" spry:hover="rowHover"
    spry:select="rowSelected" spry:selected="selected">
    The code for loading the photo is:
    <p spry:detailregion="email2007" id="emailshot"><img
    src="{emailimage}" alt="Email Screen Shot" />
    The photo will
    not change when it accesses "email2006" data because the
    spry:detailregion is hard coded. How can I overcome this? Set a
    variable for the detailregion?

    So this is what I was trying to describe in my intial
    response:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <script src="../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryAccordion.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsChina = new
    Spry.Data.XMLDataSet("../labs/Spry_P1_4_12-14/demos/gallery/galleries/china/photos.xml",
    "gallery/photos/photo");
    var dsEgypt = new
    Spry.Data.XMLDataSet("../labs/Spry_P1_4_12-14/demos/gallery/galleries/egypt/photos.xml",
    "gallery/photos/photo");
    var imgMode = 0;
    //-->
    </script>
    <link href="../SpryAssets/SpryAccordion.css"
    rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Accordion1" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">China</div>
    <div class="AccordionPanelContent"
    spry:region="dsChina">
    <img spry:repeat="dsChina"
    src="../labs/Spry_P1_4_12-14/demos/gallery/galleries/china/thumbnails/{@thumbpath}"
    width="32" height="32" onclick="imgMode = 0;" spry:setrow="dsChina"
    />
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Egypt</div>
    <div class="AccordionPanelContent"
    spry:region="dsEgypt">
    <img spry:repeat="dsEgypt"
    src="../labs/Spry_P1_4_12-14/demos/gallery/galleries/egypt/thumbnails/{@thumbpath}"
    width="32" height="32" onclick="imgMode = 1;"
    spry:setrow="dsEgypt"/>
    </div>
    </div>
    </div>
    <div spry:detailregion="dsEgypt dsChina">
    <img spry:if="imgMode == 0"
    src="../labs/Spry_P1_4_12-14/demos/gallery/galleries/china/images/{dsChina::@path}"
    />
    <img spry:if="imgMode == 1"
    src="../labs/Spry_P1_4_12-14/demos/gallery/galleries/egypt/images/{dsEgypt::@path}"
    />
    </div>
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //-->
    </script>
    </body>
    </html>
    --== Kin ==--

  • Hi could someone help me please ? Ive just bought the new ipad and want to put some movies on it. I have already converted some movies using handbrake and tried to transfer them to my ipad and it just wont work. ive tried drag and drop and everything

    Hi could someone help me please ? Ive just bought the new ipad and want to put some movies on it. I have already converted some movies using handbrake and tried to transfer them to my ipad and it just wont work. ive tried drag and drop and everything

    bluztoo wrote:
    Haven't really used any of them including VLC - actually use netflix on the ipad more than anything. I was able to drop an mp4 into imovie on my ipad and see it there. This was something I had shot as avhcd and converted with turbo.264. Played fine. Probably not what you want for a movie player though.
    Well, turbo.264 is indeed very nice to have - even for converting full-sized movies. (Nevertheless, TechRadar's latest roundup (see http://www.techradar.com/news/software/applications/6-of-the-best-video-converte rs-for-mac-1074303 ; also linked from another roundup at http://www.iphonelife.com/blog/87/benchmark-excellent-multimedia-converter-handb rake-vs-commercial-apps ) has shown it's still worse than HandBrake in most respects.)
    All H.264 files (assuming they are H.264 level 4.1 or lower) are compatible with the built-in Videos app.
    bluztoo wrote:
    Those of you who use other players, what do you reccomend? Just curious.
    It entirely depends on your needs. The top players (AVPlayerHD / ProPlayer, It's Playing, GoodPlayer) all have different strengths and weaknesses. I myself use It's Playing the most as I convert everything into MP4 and simply love the DSP's (brightness / volume / saturation boosting). (Its software decoders are definitely worse than those of AVPlayerHD / ProPlayer; however, MP4's are played back from hardware.)

  • How to Communicat​e data between two applicatio​n (One in labview and other in C)

    Dear all i have two independent application running on same PC. One a C program & a Labview application.
    C program will pass some parameters to Labview application and waits for responce back from Labview.
    Labview should wait for data from C Program and when it gets that, it should process it and should return it back to C program....
    How a program can be made in labview to receive a data form Other appliaction
    I am using Labview 7.1.
    Abhimaniu

    This kind of communication works the best when the LabVIEW code is compiled into a DLL.
    In C you could call the DLL and the DLL would return the calculated values.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • I have an iphone 5s and my kids have ipods. How do i set up the ipods to use facetime and messaging without it going through my iphone?

    i have an iphone 5s and my kids have ipod touches. How do i set up the ipods to use facetime and messaging without it going through my iphone or rather using my apple id? Is this possible? Does each device need its own apple ID and/or icloud email?

    Try unchecking your phone number and email address (if present) under You can be reached by FaceTime (iMessage) at in Settings>Messages>Send & Receive and Settings>FaceTime on their devices.  Also uncheck their email address (if present) on your phone.
    Otherwise have them use separate Apple IDs for these services (tap the ID, sign out, sign back in with a different ID).  You can do this and still share the same ID for other services such as iTunes.

  • I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assistant i am able to log data from one signal at a time only.

    I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assiatant i am able to log data from one signal at a time only.I am trying to get all 4 input data to logged in a single file againt time. I am new to Labview, I need to sample this data within a couple of days can someone help please.

    Naveen
    Check out the info in the Analog Input section of the document linked below.  (Ignore the part about Global Channels.)  In Figure 5, notice that you can select multiple channels while holding <Ctrl> or <Shift>.
    Developer Zone Tutorial: NI-DAQmx Express VI Tutorial
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • How to get data from a USB-UIRT device using Labview?

    How to get data from a USB-UIRT device using Labview?
    I'm trying to get data from a USB-UIRT device, is it posible with Labview?
    I really appreciate your help, 
    thanks

    You may want to contact the developer of the device for the API and DLL.
    http://65.36.202.170/phpBB2/viewforum.php?f=3

  • How to read and write data from Excel to TestStand without using LabVIEW VIs

    Hi,
    How can I read in columns of data from Excel into a TestStand array and write columns of data to Excel from TestStand without using LabVIEW VIs?
    I don't think the Property Loader custom step type in TestStand will work because the data I would like to read in from Excel is in a column that is thousands of rows long and the data has to be in the proper format to use the Property Loader to load in an array from Excel.
    Thanks for your help.

    That example does not use LabVIEW and it does about 40% of what you need to do by calling Excel through ActiveX. If you don't know how to use Excel through ActiveX then you'll need to brush up on that.
    http://www.microsoft.com/en-us/download/details.aspx?id=16250
    http://support.microsoft.com/kb/141759
    http://support.microsoft.com/kb/302084
    CTA, CLA, MTFBWY

  • Oracle Business Intelligence How to choose data set based on a condition

    Hi,
    I am using Oracle Business Intelligence for creating reports, i am facing a situation where i have two quries (data sets in BI), one to display a Failure message and other to fetch data from the table to be displayed in the report.
    The problem is i am unable to choose which data set to run based on a condition. How to use a condition based on which the dataset will be run
    For example : i will read a table column value if it is 'S' means success, then i have to run the dataset to fetch the data from the table.
    If the column value has 'F' then i have to run the dataset which will display failure message
    Please let me know if any of you have any idea on this
    Thanks in advance
    Muthukumaran

    Hi Chinna,
    You have to use some scripting as well as coding to perform the tasks listed by you. First of all make your form Dynamic, In your Adobe lifecycle Designer, open your form,
    Goto, File --> Form Properties,
    Goto the Defaults tab,
    Select "Dynamic PDF" for the XDP Preview Format:
    Click OK.
    This setting will now allow dynamicity in your Form, when you view it in PDF Preview tab.
    For Hiding/Unhiding the fields/SF, you can use the presence property and set it based on the conditions. like:
    if (this.rawValue == null)
    TextField1.presence = "hidden";
    For your second task, you may map a method corresponding to onSubmit event of the IF and write the code to create the workflow and make RFC call here.
    For third one, you need to convert the PDFObject from Binary context into a byte array and save it at appropriate location.
    Hope I have answered all your queries.
    Cheers,
    Arafat

  • How to do readyonly field depending on some condition.

    Dear All,
    One seeded page in iProc having Table Region. That Table region having Item, Item Description, Quantity, Price, Amount etc....
    I need to do Quantity field as readonly for some Items only..
    Is it possible to do, if it is possible pls suggest how to do it..
    Thanks in Advance,
    Hanimi.

    1. Extend the underlying VO
    2. Create a transient attribute in the VO and set the value to true/false depending on yoru condition
    3. Use spel on the item(using personalization) to enable/disable the item based on the VO Attribute created.
    Refer to: http://oracle.anilpassi.com/spel-in-oa-framework-with-audio-visual-demo.html

  • Duplicating Data Sets depending on input parameters

    I originally posted this question as part of Oracle Reports but I think its not really an Oracle Report issue, its more an SQL Issue. I am on Oracle 9i.
    I need to generate a Report that is based on a maximum of 6 input parameters.
    Three of them belong to Customer ID# and 3 belong to Number of Copies that need to be printed on the Report.
    Parameters for Customers: P_CUST_ID1, P_CUST_ID2, P_CUST_ID3
    Parameters for the Number of Copies: P_N1, P_N2, P_N3
    So, at any given point, there could be a maximum of 3 Customer ID's passed to the main query. Here is an example of what the input parameters could look like.
    User chose to enter values for Customer ID's 1 and 2 and left it blank for Customer 3.
    Customer ID1   1001         Number of Copies   2
    Customer ID2   1002         Number of Copies   3
    Customer ID3   ----         Number of Copies   -The Query that retrieves data looks something like this. The query below is intended to fetch Customer Home and Office Addresses.
    Of course, it is possible that there might be No home or Office Address or both.
    SELECT    c.cust_no,
              c.saln||c.first_name||' '||c.last_name cust_name,
              a.address_type,
              a.street,
              a.city||' '||a.province||' '||a.postal_code city,
              '('||a.tel_area||') '||a.tel_number telephone
    FROM      customer c, customer_address a
    WHERE     c.cust_no = a.cust_no
    AND       c.cust_no IN (:P_CUST_ID1, :P_CUST_ID2, :P_CUST_ID3);Based on my query:
    Customer ID 1001 has 3 Addresses (2 Home and 1 Office) --> Total number of Records = 3
    Customer ID 1002 has 2 Addresses (1 Home and 1 Office) --> Total number of Records = 2
    The output should be something like this. I have put a Label Copy1, Copy2 and Copy3 to show
    how the data will appear for readability.
    Cust No Customer Name      Address Type    Address Line 1         Address Line 2        Telephone
    Copy1
    1001    Mr Robert Green    H               2100 Picket Fences     Vancouver BC V6E 2C9 (604)726-5555
    1001    Mr Robert Green    H               2300 Happy Valley      Vancouver BC V6G 2N8 (604)308-5555
    1001    Mr Robert Green    O               1200 Davie Street      Vancouver BC V1V 1X1 (604)211-5555
    Copy2
    1001    Mr Robert Green    H               2100 Picket Fences     Vancouver BC V6E 2C9 (604)726-5555
    1001    Mr Robert Green    H               2300 Happy Valley      Vancouver BC V6G 2N8 (604)308-5555
    1001    Mr Robert Green    O               1200 Davie Street      Vancouver BC V1V 1X1 (604)211-5555
    Copy1
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Copy2
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Copy3
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555Scripts for the table creation and INSERTs
    CREATE TABLE CUSTOMER
        "CUST_NO"    VARCHAR2(4 BYTE) NOT NULL,
        "SALN"       VARCHAR2(4 BYTE),
        "FIRST_NAME" VARCHAR2(20 BYTE),
        "LAST_NAME"  VARCHAR2(20 BYTE),
        CONSTRAINT "CUSTOMER_PK" PRIMARY KEY ("CUST_NO")
    Insert into CUSTOMER values ('1001','Mr','Robert','Green');
    Insert into CUSTOMER values ('1002','Ms','Cynthia','Brown');
    Insert into CUSTOMER values ('1003','Dr','David','Taylor');
    CREATE TABLE CUSTOMER_ADDRESS
        "CUST_NO"      VARCHAR2(4 BYTE) NOT NULL ENABLE,
        "ADDRESS_TYPE" VARCHAR2(1 BYTE) NOT NULL ENABLE,
        "STREET"       VARCHAR2(20 BYTE),
        "CITY"         VARCHAR2(20 BYTE),
        "PROVINCE"     VARCHAR2(2 BYTE),
        "POSTAL_CODE"  VARCHAR2(10 BYTE),
        "TEL_AREA"     VARCHAR2(3 BYTE),
        "TEL_NUMBER"   VARCHAR2(10 BYTE)
    Insert into CUSTOMER_ADDRESS values ('1001','H','2100 Picket Fences','Vancouver','BC','V6E 2C9','604','726-5555');
    Insert into CUSTOMER_ADDRESS values ('1001','H','2300 Happy Valley','Vancouver','BC','V6G 2N8','604','308-5555');
    Insert into CUSTOMER_ADDRESS values ('1001','O','1200 Davie Street','Vancouver','BC','V1V 1X1','604','211-5555');
    Insert into CUSTOMER_ADDRESS values ('1002','H','261 King Street W','Calgary','AB','M5A 1N1','416','432-5555');
    Insert into CUSTOMER_ADDRESS values ('1002','O','150 Bloor St W','Calgary','AB','M1W 1S3','416','321-5555');
    Insert into CUSTOMER_ADDRESS values ('1003','O','435 Richmond Street','Calgary','AB','M5A 4T6','416','453-5555');Any help or pointers in this regard would be great.
    I could have adopted a procedure to use Temporary tables but I really would prefer not going in that direction as there could be quite a few reports that need to be generated in this manner.
    Thanks and have a great weekend.

    Hi,
    Roxyrollers wrote:
    Hi Frank,
    Here is my piece of code that I was working on Friday... Okay, but what's wrong with the solution I posted on Saturday?
    WITH     report_parameters     AS
         SELECT  :p_cust_no_1 AS cust_no, :p_no_copies_1 AS no_copies  FROM dual  UNION ALL
         SELECT  :p_cust_no_2 AS cust_no, :p_no_copies_2 AS no_copies  FROM dual  UNION ALL
         SELECT  :p_cust_no_3 AS cust_no, :p_no_copies_3 AS no_copies  FROM dual
    ,     cntr          AS
         SELECT     LEVEL     AS n
         FROM     (
                   SELECT  MAX (no_copies)     AS max_no_copies
                   FROM     report_parameters
         CONNECT BY     LEVEL     <= max_no_copies
    SELECT    c.cust_no,
              c.saln||c.first_name||' '||c.last_name cust_name,
              a.address_type,
              a.street,
              a.city||' '||a.province||' '||a.postal_code city,
              '('||a.tel_area||') '||a.tel_number telephone
    ,       t.n                -- If wanted
    FROM      customer           c
    ,        customer_address   a
    ,       report_parameters  p
    ,       cntr               t
    WHERE     c.cust_no           = a.cust_no
    AND       c.cust_no           = p.cust_no
    AND       p.no_copies          >= t.n
    ORDER BY  c.cust_no
    ,       t.n
    ,            a.address_type
    ;Output, given your sample data and parameters:
    CUST CUST_NAME       A STREET               CITY                      TELEPHONE                 N                                                    
    1001 MrRobert Green  H 2100 Picket Fences   Vancouver BC V6E 2C9      (604) 726-5555            1                                                    
    1001 MrRobert Green  H 2300 Happy Valley    Vancouver BC V6G 2N8      (604) 308-5555            1                                                    
    1001 MrRobert Green  O 1200 Davie Street    Vancouver BC V1V 1X1      (604) 211-5555            1                                                    
    1001 MrRobert Green  H 2100 Picket Fences   Vancouver BC V6E 2C9      (604) 726-5555            2                                                    
    1001 MrRobert Green  H 2300 Happy Valley    Vancouver BC V6G 2N8      (604) 308-5555            2                                                    
    1001 MrRobert Green  O 1200 Davie Street    Vancouver BC V1V 1X1      (604) 211-5555            2                                                    
    1002 MsCynthia Brown H 261 King Street W    Calgary AB M5A 1N1        (416) 432-5555            1                                                    
    1002 MsCynthia Brown O 150 Bloor St W       Calgary AB M1W 1S3        (416) 321-5555            1                                                    
    1002 MsCynthia Brown H 261 King Street W    Calgary AB M5A 1N1        (416) 432-5555            2                                                    
    1002 MsCynthia Brown O 150 Bloor St W       Calgary AB M1W 1S3        (416) 321-5555            2                                                    
    1002 MsCynthia Brown H 261 King Street W    Calgary AB M5A 1N1        (416) 432-5555            3                                                    
    1002 MsCynthia Brown O 150 Bloor St W       Calgary AB M1W 1S3        (416) 321-5555            3                                                     WITH DOES work in Oracle 9.1, and higher. Are you getting an error message that starts with "SP"? Those are SQL*Plus errors, that occur before your code is even sent to the database. In extremely old versions of SQL*Plus, a statement cannont begin with the keyword WITH. The best solution is to upgrade SQL*Plus, but you could also re-wqrite the query so WITH is not the first word of the statement. In this case, you could also use in-line views instead of WITH.
    I tried to generate duplicate data sets as a Sub-Query like RP suggested and it seems to be working except the ordering seems to be messed up for Mr Robert Green. The correct order should have been Home, Home, Office and then Home, Home, Office again...The order above seems to be what you want, but there are many different reasons why a small set of sample data might just happen to appear in the right order.
    Explain why you want that order. If you can say what you want in English, somebody can help you code it in SQL.
    I don't recommend any solution that uses UNION. It will be inefficient, and difficult to debug and to maintain.

  • How to set colors on some condition in barchart

    Hi,
    I want to design a crystal report with a barchart. I should specify the color of the bar based on some conditions, this colornames are maintained in the database. I tried using chart expert -> color highlights,
    is there any other way to set the color of the bar?
    Regards,
    Deepa V

    Hi Deepa,
    In charts Color Highlight is the only way to conditionally change the color of the riser bars.
    You can use multiple conditions at a time in color highlight.
    To change the color directly you can right click the bar and select the Format Series Riser and change the color (but not conditionally)
    Regards,
    Aditya Joshi

  • DRILL DOWN REPORT FOR DIFFERENT DATA SETS in 11G

    Hello.
    My requirment is to do a drill down report with 2 data sets.
    My first data set have all the chart of accounts , My second data set have all the transactions.
    in my report i have 2 data tables. One with the accounts , and when i click in one account get all the transactions for selected account in the second data table.
    Anyone know how i can do this
    Any help would be apreciatted
    Paulo

    You can use the drill down strategy, well described by my friend Kan:
    http://bipconsulting.blogspot.com/2010/02/drill-down-to-detail-or-another-report.html
    regards
    Jorge
    p.s If this answers your question then please grant the points and close the thread

  • How do you display data from two different data-sets on one list

    I have a data-set that is displaying properly; I would like to add another data-set to the other portion of the form. 
     The first part of the data set has Product information (Product-Name, Product_number, etc),
     The second portion of the data-set has information like (Product-campaign, Product-Sales, etc)
    The two data-sets  are mutually exclusive

    Hi xitum,
    As
    Patrick  Hurst mentioned, if the several tables didn't have any relationship with each other and you want to put all the information together to display in one report, you need to add several tablix/list in the same report and each tablix/list to display
    the data from each table.
    If the several table have a same relationship field you can use the
    lookup function to get the other maped fields display in the same tablix/list.(this function supportted on the SSRS 2008 r2 and later version).
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to make a region mandatory based on some conditions using CO Extension?

    Dear All,
    I want to make Attachments region in a seeded page mandatory, based on some conditions. I am able to make fields mandatory using CO Extension, but i am not able to make the attachments region mandatory. Please help.
    Thanks
    Raj

    Raj,
    I have not tried but check if you could get the rowcount which shows how many attachment are upload or not. Then by checking this throw exception if the rowcount is o.
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

Maybe you are looking for