How to select two channels and send to a series to write using the loop of the case

I had a series write who have different orders to different situations. The same reading series should read both. How can I do it. Means that if I have a 500\r\nZ of the chain. I have a case, it should be - Zand 500\r\n other case + 500\r\n Z. But for boyh these cases must be read with a write serail. How can I do ITI. Help, please

You can't guarantee that these two conditions would not be affected at the same time.  You will need to send a separate command for each condition.

In addition, using EQUALS on floating points is dangerous.  You could never get the condition because a little really low could be turned off.

Tags: NI Software

Similar Questions

  • How to compare two dates and find exactly

    How to compare two dates and find the exact age of the person, no one could be an age of child 2 days or a month, or other.

    I'd really appreciate if someone help o

    Concerning

    After spending 2 hours, I go out with a solution by myself, how ever the function can be customize to check if the user enters date right.

    function findAge(subjectName,fromdate, todate) {
        console.log("findAge(fromdate, todate) is called now "+subjectName+"-->"+fromdate+"-->"+todate);
        if(todate) todate= new Date(todate);
        else todate= new Date();
    
        var age= [], fromdate= new Date(fromdate),
        y= [todate.getFullYear(), fromdate.getFullYear()],
        ydiff= y[0]-y[1],
        m= [todate.getMonth(), fromdate.getMonth()],
        mdiff= m[0]-m[1],
        d= [todate.getDate(), fromdate.getDate()],
        ddiff= d[0]-d[1];
    
        if(mdiff < 0 || (mdiff=== 0 && ddiff<0))--ydiff;
        if(mdiff<0) mdiff+= 11;
        if(ddiff<0){
            fromdate.setMonth(m[1]+1, 0);
            ddiff= fromdate.getDate()-d[1]+d[0];
            --mdiff;
        }
        if(ydiff> 0) age.push(ydiff+ ' year'+(ydiff> 1? 's ':' '));
        if(mdiff> 0) age.push(mdiff+ ' month'+(mdiff> 1? 's':''));
        if(ddiff> 0) age.push(ddiff+ ' day'+(ddiff> 1? 's':''));
        if(age.length>1) age.splice(age.length-1,0,' and ');
        console.log("===============================");
        console.log("Subject age is = "+age.join(''));
        console.log(" age Day = "+ddiff);
        console.log(" age Month = "+mdiff);
        console.log(" age Year = "+ydiff);
        console.log("===============================");
        var subjectAGE =  age.join('');
    
    }
    

    peardox Thanks for the reply

  • How to use the case and decode to extract data

    Hello gurus of PL/SQL,.

    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64-bit Production version

    I have a table in the following form-
    drop table TT2;
    create table TT2(College, Class,gender,status,fees) as select
    'IITB','MBA','M','P',255600 from dual union all select
    'IITK','MTech','M','P',300000 from dual union all select
    'IITD','MBA','F','P',450000 from dual union all select
    'IITKH','MBA','F','P',350000 from dual union all select
    'IITC','MTech','F','P',420000 from dual union all select
    'IITB','MTech','M','P',185000 from dual union all select
    'IITC','MTech','M','P',235000 from dual union all select
    'IITD','MBA','F','F',175000 from dual union all select
    'IITM','MBA','M','F',257000 from dual union all select     
    'IITKH','MTech','F','P',335000 from dual union all select
    'IITD','MBA','F','P',540335 from dual union all select
    'IITC','MBA','F','F',125089 from dual union all select
    'IITD','MTech','M','P',290756 from dual union all select
    'IITM','MBA','M','P',200000 from dual union all select     
    'IITKH','MBA','F','F',534990 from dual union all select
    'IITD','MBA','F','P',221000 from dual ;
    certain conditions of extraction are as follows-

    MATTER OF STATE
    College of 'IITB' and status = 'P'-'good WestRegion '.
    College of 'IITC' and status = 'P'-'good SouthRegion '.
    College 'IITD' and 'IITK' and status = 'P' and type = 'F' - 'female NothRegion spent.
    College not in 'IITK' and status = 'F' - 'Ex Kanpur Failed'

    Results-
    Region Statnding     Fees
    WestRegion Passed     440460
    SouthRegion Passed     655000
    NothRegion Female Passed     1386335
    Ex Kanpur Failed     1092079
    Used SQL
    I use the following query that only make sure of the case, but it's not how I want to exit, if I try to use the case to breast to decode then how to work on it.
    SELECT (CASE WHEN College in ('IITB') and status='P' then sum(fees) else 0 end) WP,
    (case when College in ('IITC') and status='P' then sum(fees) else 0 end) SP,
    (case when College in ('IITD','IITK') and gender='F' and status='P' then sum(fees) else 0 end) NFP,
    (case when College in ('IITK') and status='F' then sum(fees) else 0 end) ExKF
    FROM 
    TT2
    GROUP BY College, Class,gender,status
    SELECT CASE WHEN College in ('IITB') and status='P'
                        then 'WestRegion Passed'
                when College in ('IITC') and status='P'
                        then 'SouthRegion Passed'
                when College in ('IITD','IITK') and gender='F' and status='P'
                        then 'NothRegion Female Passed'
                when College in ('IITK') and status='F'
                        then 'Ex Kanpur Failed'
                else 'Others' end region_standing,
                sum(fees) fees
    FROM TT2
    GROUP BY  CASE WHEN College in ('IITB') and status='P'
                        then 'WestRegion Passed'
                when College in ('IITC') and status='P'
                        then 'SouthRegion Passed'
                when College in ('IITD','IITK') and gender='F' and status='P'
                        then 'NothRegion Female Passed'
                when College in ('IITK') and status='F'
                        then 'Ex Kanpur Failed'
                else 'Others' end;
    
  • Can you tell me how I can ask for help with the following question of Indesign: I am a new user of Indesign and creative Member Cloud.  I was using the fall of the window/Pages to the bottom of the window to view my pages alphabetically or by page number

    I am a new user of Indesign and creative Member Cloud.  I was using the fall of the window/Pages to the bottom of the window to view my pages alphabetically or by page number and also to determine whether or not my JPEGs have been sufficiently high resolution of the printer.  I don't know how I did it, but somehow the window has changed so that now, there not alphabetical/digital/hi-res information.  It shows just the pages in a two pages in numerical order.  How to restore the window so that I'll be able to view the information I did previously.

    Your help will be appreciated,

    Don Unwin

    [Personal information]

    All I had to do was to click on the links and information in the drop-down list.

  • HOW CAN I GET A HP LASERJET 4V IN ORDER TO PROPERLY USE THE OPERATING SYSTEM TO XP PRO AND USB USING A PARALLEL CABLE?

    HOW CAN I GET A HP LASERJET 4V IN ORDER TO PROPERLY USE THE OPERATING SYSTEM TO XP PRO AND USB USING A PARALLEL CABLE?

    The printer works at all with this cable?

    The cable has recognized and installed by Windows XP when you logged on to the computer?

    If the cable has been recognized, what steps have you taken to install the printer then (be as accurate and complete as possible)?

    You get an error message?  If so, please provide, without paraphrasing.

    This printer has already been installed on this computer?  If so, with what type of connection?

    And especially, what is the brand and model of the USB to parallel cable?  Many of them do not work.  See, for example, the comments here , which suggests that 25% of the units will simply not work.  This seems to be one of these products you should buy at a local store, rather than on the Internet, then you can continue taking it back until you get a working unit.

  • I had to reboot my system and then to install my ACC, I used the same product key (redemption code). However, the system says that the code has been used. Anyone can teach me how I can use the same installation code to download VAC. Thank you in advance

    I had to reboot my system and then to install my ACC, I used the same product key (redemption code). However, the system says that the code has been used. Anyone can teach me how I can use the same installation code to download VAC. Thank you in advance.

    Download/install the desktop application, connect and install applications subscription.

    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    Creative cloud to desktop

    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app

    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Install, update, or uninstall applications

    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

  • I'm trying to download the trial CC, but I get error 205 cod. How can I solve this problem? A few months ago, I used the trial CC and removed.

    I'm trying to download the trial CC, but I get error 205 cod. How can I solve this problem? A few months ago, I used the trial CC and removed.

    Help creating cloud / cloud creative applications download error

    http://helpx.Adobe.com/creative-cloud/KB/error-downloading-CC-apps.html

  • Can I get the contacts and email from an old record without using the Migration Wizard?

    Can I recover Contacts and messaging of an old record without using the Migration Wizard? Disc of the user in question has been very corrupted with several programs having a weird behavior. Migration wizard migrated corrupt files, so, even a clean install with only migrated users gave rise to an unusable installation.

    I have now all own installed now, but need old email files and contacts. How can I transfer this information a copy of the old/bad drive and only this info?

    Yes. With the old drive mounted and available, open Mail and choose import mailboxes... from the file menu of mail. In the dialog box import data from , choose Apple Mail.

    Navigate to the Mail folder to the user of the old library drive. According to the version of courier used, you might see folders named V2 and / or V3. Choose the applicable folder, and then click Choose.

  • Why Illustrator change my anchor points and size race randomly when I'm using the tool pen?

    Why Illustrator change my anchor points and size race randomly when I'm using the tool pen?

    k,

    It looks like you might be haunted by the Align attribute to the ghost of the pixel grid.

    You can select the entire document and untick finally align on the pixel grid in the Transform palette and uncheck also align new objects to the pixel grid in the options of the Launcher. It is crucial that the checkbox is disabled completely, not just a - which also count as ticked.

    It may be noted that even align with the pixel grid is cleared with all the selected objects, align new objects to the pixel grid is checked as the creation of new objects will result in these new objects being aligned, even when they are created from existing objects that can happen with Pathfinder operations.

    You can avoid the types of documents with the default (RGB for the web and other) or change the default value for such documents.

    Here is a screenshot of exquisite made per ton in the first post:

    https://forums.Adobe.com/message/7841770#7841770

  • I am facing a problem with the beep.vi. I have a DAQ program, which acquired the signal and compare it to a threshold value. When a signal is out of range, a Visual and sound alarm has occurred. I use the VI beep.vi to generate the sound.

    I am facing a problem with the beep.vi.  I have a DAQ program, which acquired the signal and compare it to a threshold value. When a signal is out of range, a Visual and sound alarm has occurred. I use the VI beep.vi to generate the sound. Everything works fine except the sound alarm. It gives the table 1 d of type mismatch. I tried to fix this by placing it in a box structure. But it still does not work. If someone could help? Please find attached my VI. Best wishes to all visitors to the Forums of Discussion OR.

    Ihab El-Sayed

    published here: http://forums.ni.com/t5/LabVIEW/Playing-sound-based-on-exceeding-a-threshold-value-1D-array-data/m-p...

  • I use Windows XP and care April 2014 if I always use the it, what will happen after that Microsoft no longer supports it?

    I use Windows XP and care April 2014 if I always use the it, what will happen after that Microsoft no longer supports it?  My computer will become unusable?  It works great and I would keep it if I can.  I use a Dell Inspiron 530 desktop.  Some people have told me that "nothing will happen" and others tell me that my computer will be more vulnerable.  I use ESET NOD 32 and Malwarebytes.  They tell me that they should still continue to work.  I am told that because my computer was purchased in September 2008, he cannot me upgraded to Windows 7.  I'm not a geek and would need assistance "passage" my files from one computer to the other as well.  And then what to do with my old top office.  I'm very worried and I had to face the fact that Microsoft is not going to deliver any security updates patches after April of 2014.

    I can't wait to hear from someone on this problem and more just to go out and invest in Windows 8!  Thank you.

    I can tell you one thing, all or almost of windows xp device drivers will disappear from the computer manufacturers support websites and will reappear on all these shady sites who claim to be download for free but comes with unwanted software. Download the latest device drivers and keep several copies of them and download them to your skydrive or dropbox account fo guard.

    I doubt that will happen. I've seen Windows 2000 drivers still on websites mfg.

  • When I opened every day Premiere Pro it always says that I should check my account and I will not be able to use the work in a few days...  But I checked ve and my account is fine, all payments have been made. I m afraid that I have not access more in fe

    When I opened every day Premiere Pro it always says that I should check my account and I will not be able to use the work in a few days...  But I checked ve and my account is fine, all payments have been made. I m afraid I won't access more in a few days... What should I do to stay with my access?

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -https://helpx.adobe.com/creative-cloud/help/sign-in-out-activate-apps.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html

  • How to createt two channels in AFG3102

    I am trying to create two channels on AFG3102 but we manage only create one channel at a time.

    can you explain how?

    Hey kamils,.

    I tried your VI with material real (I have a Tek AFG 3252) and it does not resemble the generation was already enabled for the first string. So, when I ran your code it has been implemented both slots but it turned only on channel 2. I added a function to configure output on the end of the VI for channel 1. I tested the code changed with my 3252 and exits the scope and it seems to work fine. The two waveforms are identical you currently give the same data at the same time, but this can easily be changed to fit your application. Take a look at the attached VI and let me know if you have any other questions.

    Lars L

  • How to connect two computers and LAN

    I can't get my toshiba to interface with my desktop computer or to connect to the internet via a CAT5.
    I tried everything I know.

    I'm not too sure about the LAN MAC? He just will not connect even if the device is functioning properly.

    Any ideas?

    Here are the instructions how can connect the two computers.

    -First of all, you will need to disable the firewall.
    -Then you need to set the same workgroup on both computers
    -in the Lan Card Properties-> Protocol TCP/IP settings, you must assign the IP address manually. That is, a computer must use the 192.186.50.1 ip address and the other computer must be set to 192.186.50.2.
    -MAC address is fixed and cannot be changed. Each LAN card uses unique mac address

    After these settings, you must restart the portable computers (computers)

    PS: I recommend Google for details and further instructions.

  • Use the listbox control to select several channels and display on the chart

    Hello everyone!

    I have a problem using the ListBox selection mode 1 or mode items. I have 6 channels of data, and I have a 2D chart. I am able to reterieve the signal names in the list box, but I want to be able to choose one or more signals to display on the chart. I used the table to index my 2D data are connected and then the output of the index table is connected to the graph. I had to use the listbox control as an index for the table to index and display the data in the index selected for display on the chart. I used lisbox as the value property nodes, the line active and all but not able to display signals on the graph. I have attached a code example to show you what exactly I'm looking.

    Any suggestions will help a lot.


Maybe you are looking for

  • What is this other forum of Mozilla?

    Hello I found another forum of Mozilla on the internet under the name of - forums.mozillazine.org - can you please tell me about this forum on the other. What is the difference between the two forums. Thank you link fixed, as it was an @ after the fo

  • Motherboard Compaq CQ5700F: compatibility CPU-H-apricot-RS780L-u

    The product specifications to http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en & cc = us & taskId = 120 & prodSeriesId =... Show info for compatible processors theis:

  • Upgrade memory on Satellite L40 - 15G

    I have a Toshiba L40 - 15G with 1 GB of ram (2x512MB) DDR2. He works at a frequency of 266 Mhz.I want to switch to 2 GB of ram going 2x1GB sticks or stick of 2 GB. However, I don't know if the 2 GB key is accepted on a slot.Should I buy a 2 GB key or

  • Contextual menu tree different for parent elements and children

    Hi people, I'm trying to write a vi with a tree control... I was able to create a context menu for the item parent by right clicking on the tree-> Advanced-> Run - Time control-> context Menu-> Edit... However, I would like to create two menus, one a

  • Spectrum 360: Display driver stopped responding and recovered - spectrum 360

    Just in case someone is looking for a (kind of) solution to this problem: Location: -New spectrum x 360, came loaded with Windows 10. All updates (Windows and Intel and HP) made. -When you scroll websites with Firefox, the computer hangs for about 5