Problem with Concatenate Two Colums

Hi
Wish you happy new year to oracle forums members....!
I was try to concatenate 2 colums with some funcationality. but i am not able to use the concatenate symbol with this query .
I give my query
select CASE WHEN LENGTH (mkt.MARKET_NUMBER )<14 THEN to_char (mkt.MARKET_NUMBER , '00099') end as "NEW_NO" || ''|| MARKET_NAME
MARKET_VALUE MARKET_NAME
45 AAAA
98 BBBB
977 CCCC
MY output shout be
Value
00045 AAAA
00098 BBBB
000977 CCCC
Please help me..to get the answere
Thanks

Not clear .This?
sql>
select case when length(val) <14 then  '000'||val||' ' end|| name mname
from t;
MNAME 
00045 aaaa 
00098 bbbb 
000977 ccc                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to concatenate two colums into one single column

    I need some ideas to concatenate two different columns into one single column using a set of distinct values.
    For Example,
    Customer Product Number
    xyz A 1
    xyz B 2
    xyz B 1
    AAA C 7
    AAA A 1
    The result should look like this,
    Customer Value
    xyz A1 B2 B1
    AAA C7 A1
    How would I group this into once value ?
    Thanks in advance ...

    Tom's discussion of writing your own aggregate routines
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2196162600402
    starts off with a link to the 8i alternatives
    "see
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:229614022562
    for 8i methods (not aggregates)"
    Unforutnately, it's a lot more work in 8i.
    Justin

  • Problems with Syncing two different libraries on one mac

    Ever since I downloaded itunes 11 onto my mac I am having problems with syncing.  We have two libaries on our mac and can still easily move between the two, each keeping our own playlists, and music/podcast libaries.  The problem is with the syncing to our ipods. The playlists stay separated, but unfortunately the sync update pulls both music libraries and puts it on each of our ipods.  Having very different music tastes, this is a drag. 
    A second issue - there is still that problem of having issues with purchased music not staying in playlists (on ipod) after syncing.
    I've tried looking around the itunes tutorials and articles but wasn't having luck.  any feedback would be greatly appreciated.
    Oh, in case it matters, one of us is using an Iphone and the other an ipod touch.

    you might have to find a third party program to get those songs off her ipad onto the computer, apple doesnt support that unless they are purcahsed from itunes store because of DRM (Digital Rights Media) another word for copy write. so theres not a whole lot of hope for that, but you can always create a new user on your computer
    >user>+ icon>Create new user make it admin
    -if they are how ever purchased from itunes you would still make that new user, plug the device into itunes and authorize the computer by clicking store on the top of your screen where file edit and view are, Store>authorize this computer
    once thats done you'll then plug that device in to the computer and on the left side of itunes you'll see devices and "Device name" the device its self, right click or control click the name and choose transfer purchases, anything that has ever been purchased of gotten for free will sync onto the computer,
    you cant just simplay pull the songs off the device to the computer, doesnt work like that

  • Problems With Printing Two Up

    Hi-
    I have a document that consists of pages that are 5.5x8.5, in other words half of a standard 8.5x11 sheet of paper. I want to be able to print these two up on 8.5x11 sheet of paper. So in the layout section of the print dialog I set pages per sheet to two. The problem is that when it prints each page is smaller than it should be, it seems like it's padding the pages with white space and making them smaller. Is there a way to get around this?
    Any help would be appreciated!
    Thanks,
    Jonathan

    You are not the only one with this problem. I have been fighting this issue all day.
    I have read the User Manual up and down, I have scoured the support pages, and I have spent untold fruitless hours with technical support... am currently still unable to solve this problem.
    When using a Pages template, I am unable to change page size while holding the formatting together. No way to select all and group it - no way to start a blank document with the proper page size and then insert a (template) page, no way to change paper once the template is open....
    I have a template from Pages (doesn't matter... pick any one at all that has formatting and objects, not straight text) which opens with a default page setup of paper size A4. Fine. In printer settings, "Choose Layout from the pop-up menu and choose the number of pages you want to appear on each sheet" (page 173, Chapter 10) which makes perfect sense to me.
    I am trying to achieve two pages per sheet for a "tabloid" type publication. I wish to print on A3 - which should work perfectly - the page size in the end result (2 per sheet) is in fact A4, because A3 is two A4s laid side by side. So, this is as the formatting intended it should be, because smaller is too small and larger wouldn't work.
    When I print I get:
    a) the proper layout, but with the size being HALF an A4 instead of a full A4 (half an A3)
    b) the right size (when changed in page setup) with formatting all over the map and all the work destroyed.
    It is easy enough to say "Before you print, you should make sure the paper size and orientation are set the way you want by opening the Page Setup dialog" (page 169 Chapter 10) but these Pages templates are not able to be printed on ANY size of paper except A4 - the way they have been laid out originally. It doesn't matter which size you're trying to print - an invitation on smaller paper perhaps, a tabloid type newsletter on larger, anything at all on banner paper...
    There has to be a fix for this somewhere.
    Can anybody help?

  • Problem with opening two frame by single hyperlink

    HI to everyone,
    I making a project , in that i want if i click on a
    particular hyperlink. then it open two Different frame which is
    showing different content . one is in the same page in which is h
    yperlink is appearing pelink (means in the same frame ) and the
    other frame showing some other content , Robohelp allowing to do
    this event seprately but not simultanously............i want to
    perform this both frame should be open at same time by single
    click...........
    plz if any one know solution of this problem plz let me
    know.....................
    Thank's
    Roziao

    Hi RoboWizard,
    I understand (I think!!!) about how to create a frameset
    using the method you detailed. Say I create a frameset with 2
    frames: 'TOC' frame on the left and 'Details' frame on the right.
    When I create the frameset I specify the default 'TOC' topic as
    tralala.htm, which is a basic list of contents. I don't know the
    full list of contents to display until the user clicks on a link to
    display a topic in the 'Details' frame. I specify the default
    'Details' topic as Welcome.htm, which is an introductory topic.
    Say my initial Blurb.htm topic (as described in my previous
    post) contains two links:
    How to make a cup of tea
    How to perform a headstand
    If I click on 'How to make a cup of tea' I would like to
    display my Outline.htm topic in the 'Details' frame giving an intro
    about tea and the art or making it, and a task list Contents.htm in
    the 'TOC' frame detailing each step in making a cup of tea. When I
    click on a link in Contents.htm, it updates to the relevant topic
    in the 'Details' frame.
    If I click on 'How to perform a headstand' I would like to
    display Outline2,htm topic in the 'Details' frame giving an intro
    about balancing and seeing life upside down, and a task list
    Contents2.htm in the 'TOC' frame detailing each step in performing
    a headstand. When I click on a link in Contents2.htm, it updates to
    the relevant topic in the 'Details' frame.
    However, what actually happens is:
    I click on 'How to make a cup of tea'. Outline.htm topic
    displays in the 'Details' frame, and the tralala.htm is still
    displayed in the 'TOC' frame. To display Contents.htm in the 'TOC'
    frame, I would have click on a separate link.
    Same problem when I click on 'How to perform a headstand'.
    I hope this example explains my problem a little better. Do
    you understand?
    I'm sure there is something blatently obvious that will
    overcome the problem. I've only recently discovered frames, so my
    knowledge is not the greatest on this subject and hope there is an
    easy answer to solve my issue. I'm hoping for a 'Doh!' moment!
    Many thanks for your help.
    Liz

  • Problem with inserting two BLOBs into a table using setBinaryStream

    DBMS 9.2.0.1.0, Oracle JDBC driver 10.1.0.2.0
    The following code insert in one INSERT two BLOBs
    into two columns using PreparedStatement.setBinaryStream(). When the size of the of at least one blob exceeds
    some limit (? 2k, 4k ?), the values are swapped and
    inserted into wrong columns.
    Please, is this a problem in JDBC driver?
    ====================================================
    import java.io.ByteArrayInputStream;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import java.sql.Statement;
    * Test - two BLOBs swapped problem.
    * If size of the blob is larger that some treshold, they are swapped in the database.
    public class BlobSwapTest {
    private static Connection getConnection() throws SQLException {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    } catch (ClassNotFoundException cnfe) {
    throw new SQLException("ClassNotFoundException: " + cnfe.getMessage());
    return DriverManager.getConnection("jdbc:oracle:thin:@//HOST:1521/DB", "USER", "PSWD");
    private static void createTable() throws SQLException {
    Connection conn = getConnection();
    Statement stmt = null;
    try {
    stmt = conn.createStatement();
    try {
    stmt.execute("DROP TABLE BlobTest2");
    } catch (SQLException e) {
    System.err.println("Table BlobTest2 was not deleted: " + e.getMessage());
    stmt.execute(
    "CREATE TABLE BlobTest2 ("
    + " pk VARCHAR(512), "
    + " blob BLOB, "
    + " blobB BLOB, "
    + " PRIMARY KEY (pk)"
    + ")"
    } finally {
    try {
    if (stmt != null) stmt.close();
    } finally {
    conn.close();
    public static void main(String[] args) throws SQLException {
    createTable();
    Connection conn = getConnection();
    PreparedStatement pstmt = null;
    try {
    conn.setAutoCommit(false);
    pstmt = conn.prepareStatement("INSERT INTO BlobTest2 VALUES (?,?,?)");
    final int size = 5000; // change the value to 500 and the test is OK
    byte[] buf = new byte[size];
    byte[] buf2 = new byte[size];
    for (int i = 0; i < size; i++) {
    buf = 66;
    buf2 = 88;
    pstmt.setString(1, "PK value");
    pstmt.setBinaryStream(2, new ByteArrayInputStream(buf), size);
    pstmt.setBinaryStream(3, new ByteArrayInputStream(buf2), size);
    pstmt.executeUpdate();
    conn.commit();
    } finally {
    if (pstmt != null) pstmt.close();
    conn.close();
    ====================================================

    See my response in the JVM forum.

  • Problem with using two Nanos with one XP computer

    I've got two profiles set up on an XP Home Edition OS. I have iTunes loaded within each profile. When I move from one profile to the other and I exit the iTunes on the first profile and enter the second profile...when I try to launch iTunes on second profile it tells me someone is using iTunes and to continue it must be shut down. I already shut it down...but the first profile is still running. Only when I log off of the first profile will I be able to use iTunes on the second profile. Please don't tell me I have to live with this...thank for any help that you can provide.

    I've got two profiles set up on an XP Home Edition
    OS. I have iTunes loaded within each profile. When
    I move from one profile to the other and I exit the
    iTunes on the first profile and enter the second
    profile...when I try to launch iTunes on second
    profile it tells me someone is using iTunes and to
    continue it must be shut down. I already shut it
    down...but the first profile is still running. Only
    when I log off of the first profile will I be able to
    use iTunes on the second profile. Please don't tell
    me I have to live with this...thank for any help that
    you can provide.
    Firstly my experience of MS Windows would suggest that although you've shut the application down there's still a whole lot going on in the background tying up the loose ends. If you swap users before this completes then it may be put on hold, hanging onto the program or its config files. This may be completed by logging the profiles off fully.
    As previously mentioned you'll have to live with it.

  • Problem with editing two forms

    Hello!
    I have two reports and two forms on these reports. The reports actually contain the columns of one table separated in two groups(Report1=group1(column 1-5 for example) and Report2=group2(column 6-10 for example)). So when i select Edit on a row of Report1 i go to Form1 and see the data to be edited of Form1 of row1 for example. I would like to go to Form2(i have a tab for this) and see the same row(row1) to be edited with the columns of Report2.I hope that i am clear enough.
    Thanx in advance for any answers.

    If you're using the Automatic Row Processing (DML) process, there is a box named "Return Key Into Item" which can return the current key (ID) to a designated (hidden) item. You can then this item's value passing to the next page.
    Ittichai

  • Problems with Disk Two Of Installation

    Hi,
    I've managed to install disk one of the installation cds and now i'm on my 6/7 time of trying to instal disk two. Everytime I do, it works for a while and then a sign comes up saying 'An error occured while installing Mac OX, then once I click continue it comes up with a box saying 'The installer could not install some files in "/" (or another area) it stops at different places each time and each time I clean the disk and it stops at a different spot. The disk to me looks very clean and has no marks at all.
    This mac is second hand. I bought it off ebay with installation disks for leopard however the seller had put on snow leopard. I wanted to downgrade for a few reasons mainly ease of use and compatablity reasons. Neadless to say, now I have installed disk one, there is no way of going back to SL, so if anyone can help I will be very thankful!
    Thanks,
    Thom

    you can call applecare.
    (800) APL-CARE (800-275-2273)
    give them the serial number of your mac and if it's not two old they'll send you replacement disks. snow leopard can be bought at any computer store for $30.
    Message was edited by: V.K.

  • Problems with syncing two iPhones

    My girlfriend and I both bought iPhones the other day and we have an iMac at home (Intel iMac). Both iPhones have been connected to iTunes and, when both phones were connected to iTunes, I don't think we changed users on iTunes (I have an Apple account and she has and Apple account as well).
    At some point, I tried to import my contacts from Yahoo and, at some point, she plugged her iPhone into the computer as well. We both ended up getting all of my contacts and all of her contacts (she tried to sync as well) on both phones. In addition, any time I try to download an application, it asks me for her password. Also, when I connected my iPhone to the iMac last night, it automatically synced and provided me with all of her applications.
    Is there any way to solve this problem apart from "restoring" both of the phones?
    Thanks for any help that you might be able to provide.

    Set up a second user account. From that point on everybody can have his/her own music, calender etc.
    Here are some articles about sharing:
    http://support.apple.com/kb/HT1203
    http://support.apple.com/kb/HT1495

  • Problem with layering two still images

    Hi,
    I am trying to create a simple transition between two still images (the first one is in V2 and the second is in V1, with overlapping). I noticed that when I add a video transition (like cross dissolve) the second image becomes blurred and out of focus. This creates a noticeable jump: the emerging second image is first seen blurred and then suddenly becomes focused again. When I took out the transition, I noticed that the first images is blurred during the time of the overlap, and then the second image is clear and does not loose quality.
    I tried to apply a De-interlace filter but it just made the images look bad.
    The two images are jpg format, 1087x751 and 770x1124
    It seems like a simple procedure but I don't know what to do... Why do the images loose their quality? Even without using the transition, why does the image in V2 is blurred when overlapped with an image in V1. The second layer should not be affected from a lower one, no?
    MANY THANKS

    Welcome to the forum!
    Did you render the two images (plus transition) fully before viewing? Check in the Sequence->Render menus to ensure all render types have a check mark beside them.
    -DH

  • Problem with using two different apple IDs on the same iPhone 4s

    my friend installed an app on my iPhone 4s using his apple ID. Then I created an apple ID for my own use. I then installed an app on my iphone. But, there's a pop-up box containing my friend's ID and asked me to put his password. How can i use my own apple ID?

    All apps - all paid and free apps include DRM protection which is tied to the iTunes account that was used to download the app. In order to install an app update available for an app downloaded and installed with your friend's iTunes account will require using your friend's iTunes account and knowing your friend's iTunes account password.
    If a paid app, this amounts to stealing. Delete the app that was downloaded with your friend's iTunes account and download the app with your iTunes account if an app you want.

  • Problem with loading two Javascript scripts

    I loaded a dreamweaver widget called "twitter client" to pull user info from twitter. Problem is that it will not show up in the browser. I can get it to load and show, but only after I comment out the footer information. The footer is pulled externaly and calls on a Javascript hosted on another server. Here is the code showing the problem. I also loaded it to http://www.tempthirteen.com/template/. I am really at a loss as to what is causing it.
    Thanks so much!!
    Nate

    <!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" lang="en" xml:lang="en" dir="ltr">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="images/struct/favicon.ico" type="image/x-icon" />
    <title>Your Site Title Here</title>
    <meta name="robots" content="all" />
    <meta name="Copyright" content="(c) Duke University" />
    <meta name="description" content="This is where you can put a description of your organization or your website." />
    <meta name="keywords" content="duke university, duke" />
    <meta content="en-US" name="language"/>
    <link type="text/css" rel="stylesheet" media="all" href="css/screen.css" />
    <link type="text/css" rel="stylesheet" media="print" href="css/print.css" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/header/css/screen-globalHeader-nologo.css" type="text/css" media="Screen" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/footer/footer.css" type="text/css" media="screen" />
    <!--[if lte IE 6]><link rel="stylesheet" href="css/screen-ie6.css" type="text/css" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/footer/footer-ie6.css" type="text/css" /><![endif]-->
    <script src="scripts/jquery.js" type="text/javascript"></script>
    <script src="scripts/twitter_search.js" type="text/javascript"></script>
    <style type="text/css">
    /* BeginOAWidget_Instance_2125523: #twitter */
            #twitter { height: 258px; width: 292px}
    /* EndOAWidget_Instance_2125523 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2125523" binding="#twitter" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body class="shadowBackground">
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/bar.html"></script> 
    <div id="pagewrapper" class="home">
        <div id="header">
            <div id="logo">
                <p><a href="http://www.duke.edu" tabindex="1" accesskey="1"><img src="images/struct/logo-print.png" width="141" height="64" alt="Duke University" /></a></p>
                <h1><a href="index.html" rel="home" tabindex="2" accesskey="2">Your Site Title Here</a></h1>
            </div>
            <form action="http://www.duke.edu/search/" method="get" id="search-inBanner" name="duke_search">
            <label for="search-field-banner"><input class="text" id="search-field-banner" name="q" value="Search" tabindex="3" accesskey="3" /></label>
            <button id="search-go-banner" type="submit" tabindex="4" accesskey="4">Go</button>
              </form>
        </div>   
        <div id="wrapper">
        <div id="nav">
            <ul>
                <li><a href="landing.html" tabindex="5" accesskey="5">Nav Link One Here</a></li>
                <li><a href="landing.html" tabindex="6" accesskey="6">Nav Item 2</a></li>
                <li><a href="landing.html" tabindex="7" accesskey="7">Nav 3</a></li>
                <li><a href="landing.html" tabindex="8" accesskey="8">Nav Link Four Goes Here</a></li>
                <li><a href="landing.html" class="last" tabindex="9" accesskey="9">Nav Link 5</a></li>
            </ul>   
        </div>   
        <div id="content">
            <div class="col">
              <div id="twitter"></div>
                <script type="text/javascript">
    // BeginOAWidget_Instance_2125523: #twitter
    $(document).ready(function() {
        $('#twitter').twitterSearch({
            term: 'from%3Adukenews',
            title: '',
            titleLink: 'http://www.twitter.com/dukenews',
            bird: false,                    // true or false (show or hide twitter bird image)
            birdSrc: '/images/tweet.gif',         // twitter bird image
            birdLink: 'http://twitter.com/dreamweaver',        // url that twitter bird image should like to
            avatar: true,                // true or false (show or hide twitter profile images)
            anchors: true,            // true or false (enable embedded links in tweets)
            animOutSpeed: 500,    // speed of animation for top tweet when removed
            animInSpeed: 500,    // speed of scroll animation for moving tweets up
            pause: true,                // true or false (pause on hover)
            time: true,                    // true or false (show or hide the time that the tweet was sent)
            timeout: 4000,            // delay betweet tweet scroll
            css: {
                a:     { textDecoration: 'none', color: '#3B5998', fontWeight: 'normal'},
                container: { backgroundColor: '#eee' },
                frame: { border: '10px solid #33ccff', borderRadius: '10px', '-moz-border-radius': '10px', '-webkit-border-radius': '10px' },
                img:   { width: '30px', height: '30px' },
                loading: { color: '#888' },
                text:  {fontWeight: 'normal', fontSize: '12px', color:'#000'},
                time:  { fontSize: '12px', color: '#CCC' },
                title: { backgroundColor: '#33ccff', padding: '0px 0 0px 0', textAlign: 'center', fontWeight: 'bold', fontSize: '14px'},
                titleLink: { textDecoration: 'none', color: '#3B5998' },
                user:  { fontSize: '12px'},
                fail:  { background: '#6cc5c3 url(/images/failwhale.png) no-repeat 50% 50%'}
    // EndOAWidget_Instance_2125523
                </script>
    <h2> </h2>
                <h2>Header Here</h2>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas commodo mauris ut erat fermentum ultrices. In mauris est, ullamcorper eu molestie eu, semper ut sapien. In eu auctor quam. Etiam gravida lorem sed dolor iaculis vestibulum.</p>
            </div>
            <div class="col">
                <img src="images/placeholder-2.jpg" alt="Placeholder 2" height="214" width="304"  />
                <h2>Header Here</h2>
                <ul>
                    <li><a href="http://www.duke.edu">Link Sample 1</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 2</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 3</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 4</a></li>
                </ul>
            </div>
            <div class="col last">
                <img src="images/placeholder-3.jpg" alt="Placeholder 3" height="214" width="305"  />
                <h2>Contact Us</h2>
                <p>Office of Lorem Ipsum<br />
                30000 Allen Drive<br />
                PO Box 9000<br  />
                Durham, NC 27707</p>
                <p><span class="cat">Phone: </span>919-555-1234<br />
                <span class="cat">Fax: </span>919-555-1234<br />
                <span class="cat">Email: </span><a href="mailto:[email protected]">[email protected]</a></p>
            </div>
        </div>
        </div>
    </div>
    <script src="http://brandbar.oit.duke.edu/footer/videos_podcasts_full.php" type="text/javascript"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/header/js/jquery.min.js"></script>
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/globalHeader.js"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/footer/js/footer.js" ></script>
    </body>
    </html>

  • Problem with connecting two computers with windows7 to the internet at the same time with wrt110

    Me and my friend have both installed windows7 on our computers.
    If one of us connects to the internet via wireless router WRT110 it goes without any problems.
    But if we both try to connect to the internet at the same time, it doesnt want to connect.
    Can anyone help?
    Solved!
    Go to Solution.

    You can try upgrading/reflashing the router's firmware....Download the firmware from www.linksys.com/downloads and save it on the desktop....Login into the Linksys GUI and click on Administration tab...click on subtab "firmware upgrade" and choose the correct .bin file...click on upgrade....Wait for few seconds until it shows that "Upgrade is successful"  After the firmware upgrade, click on "Reboot" and you will be returned back to the same page OR it will say "Page cannot be displayed".
    Now,press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router...

  • Problem with two parallel While loops

    I have a serious problem with controlling two parallel While Loop. Here is the deal:
    I have written a VI to send a series of commands called Cycle through Serial Port to a custom hardware. One of these commands is setting motor pressure by sending it's command and changing it's voltage. After setting desired pressure I have to read and control motor pressure, again through serial port in a parallel loop. There is a Pressure Sensor in system and I can obtain current's motor pressure by sending a command and receiving pressure value. In the first While loop I send some commands to hardware including Pressure Setting Command trough a state machine. In the second While Loop I read pressure value and then decide to increase motor voltage or decrease  it. Now the problem is in communicating these two loops. In cycle after "Init" state when state reaches "Pressure 2 Bar" motor voltage will increase. Meanwhile I have to control this voltage in parallel While Loop. As you can see I used Local Variable to communicate between these two loops. The problem is that loops are not synchronized. Specially when I switch to "Pressure 3.8 Bar" state during cycle running control loop (second while) is still working based on "Pressure 2 Bar" state not 3.8 bar. Because of this motor pressure goes to 3.8 bar for a sec (becuase of  "Pressure 3.8 Bar" state) and comes back to 2 bar (because the second while still has not gotten that new state,most probably cause of all the delays in the loop)  and after couple seconds it goes back to 3.8 bar.
    I really don’t know what to do. Is there a way to fix this? Or I should consider a better way to do this?
    I went through Occurrence Palette but couldnt figure out how to embed that in the VI. 
    Sorry for my poor English. I attached VI and it's subVIs as a LLB file. I can explain more details if somebody wants. 
    Attachments:
    QuickStartCycle.llb ‏197 KB

    I make it a point to NEVER have a WAIT function inside a state machine.
    It sort of defeats the purpose, which I define as "Examine current state; decide whether you've met the conditions to advance to another state, then get out".
    For example, I have a single state machine VI controlling four identical instruments, via TCP connections.
    For some functions, that means issuing a command, waiting 60 seconds, then reading results.
    If I waited INSIDE the state machine, then it's tied up waiting on one device and cannot handle any others.
    Not a good plan.
    To handle this, I have a loop which calls the state machine.  After issuing the command, the state goes to "Waiting on Response", and there is a target time of 60 seconds from now.
    It's called over and over in that state, and each time merely compares NOW to the target time.  If NOW is past the target, then we read the results.
    the state machine can tell the caller when to call back; that's how I distinguish between an urgent need and nothing-to-do.
    By having the CALLER do the waiting, instead of the state machine itself, the state machine is free to handle another device, or do something else on the same device.
    You should be calling the state machine over and over and over anyway.  So, have the state machine "control the pressure" on every call, and THEN examine whatever state it's in.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

Maybe you are looking for

  • SP2010 Bug? Cannot change List View in Ribbon. List view drop down not responding?

    In all of my Libraries I have 3-5 views (standard and custom), I cannot select them from the Ribbon thought, the drop down button does not respond when clicked (nothing happens): When going with the mouse over the drop down button it shows "javascrip

  • Error while deploying war file inOC4J through o9ias

    Dear friends I receive an error while deploying a war file to oracle 9i application server stating that one or more process is running, shutdown by 9iAS or by enterprise manager or use dcmctl resynInstance to free the resource. This error happens whe

  • 10.1.3 Production deployments

    We're doing a little internal intelligence gathering and trying to figure out how many customers that have already or will very soon deploy BPEL or ESB applications on 10.1.3 or later by the end of March 2008. Please send me an email with the custome

  • MaxChars breaks text field maxlength attribute

    I don't know if others are having problems with this, or if perhaps there is fix, but I've noticed that whenever you set the maxChars option in Spry, if the text field has a maxlength attribute, it will break it. This is in Spry 1.6.1.

  • Getting error when activating serial key with cs6 creative suit  specifically for the Flash Builder 4.6

    I got he the software Adobe Creative  Master Suite CS6 was able to activate all the software  except   Flash Builder 4.6  keep getting message Serial number is not valid cs6 master collection serial. Is there anything else needed to be done when acti