Control and design applying ramp input and plotting polar coordinates state space

Hi
I am trying to do a fairly simple state space task with Control Design and Simulation toolbox, however I am quite new at using this toolbox and need some help :-)
I want to simulate a MIMO system of a 2-DOF robot arm. The robot arm consists of two links, the first link can rotate arround its origo at its end, and the next link moves inside the first link, in and out.
So the two outputs is define as
r (radius), which is the distance to the end-effector of the robot, and
theta, which is the angular postion of the robot arm
FYI, the two inputs are the currents send to the two motors controlling each link.
I have set up A, B, C and D matrices in the attached VI file and putted it inside a simulation loop.
Now I need help :-)
I want to simulate the system when a ramp input is applied to the two inputs and plot the two outputs in a polar graph to show the end-effectors position when the system is just "let loose". The result should be a spiral (this is verified in MATLAB simulink).
So please, I need help setting up the VI to do the above, can anyone help?
Best regards
Simon
MSc. Eng.
Message Edited by SCMAJA on 10-16-2009 11:21 AM
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
Attachments:
2 DOF robot with ramp input, polar coordinates plot, state space.vi ‏49 KB

Hello Simon,
The error comes from your Ramp Input. Since your system is MIMO, you would need to feed in a vector input to the system.
I've changed your VI and attached here~!
Andy Chang
National Instruments
LabVIEW Control Design and Simulation
Attachments:
MIMO Robot VI.vi ‏76 KB

Similar Messages

  • XiFi and Audigy Take Over Input and Output from Bluetooth Head

    I am having trouble with my bluetooth headset when making phone calls in any VoIP application (Skype, Yahoo!). I usually use the headset as the input and output for my VoIP bits so I can move away from my desk, etc... First, it worked under XP with my Audigy no problem. I bought a XiFi and installed the latest drivers and it began stealing my audio. Oddly, it does not do it until the call connection is made (so I hear the ringing in the BT headset and once the call is answered the system reverts to the mic, a Logitech USB, and main speakers, directly plugged to the soundcard).
    I decided to put my audigy back in, because I was planning on upgrading to Vista and thought the XiFi may be bad. I did a fresh Vista install with the Audigy and everything worked (i.e. audio for phone calls stayed in my BT headset). I then upgraded from the Microsoft drivers to Creative?s Vista drivers and the problem then happened with the Audigy as well.
    This leads me to believe that some sort of regression happened in the latest drivers. Everything else works great, games, movies, etc? but this is a show stopper because I want to use my bluetooth headset. I tried to downgrade to the Microsoft drivers but the card would no longer work. I have tried a driver install only, then added the software, removed that and did a full install. This is with BETA drivers on Vista, but the problem existed in XP as well which were not BETA drivers AFAIK. I have updated to the latest Bluetooth drivers as well with no luck.
    I have confirmed this on two of my PCs and a friend of mine is having the same problem (XP, XiFi) so he went and bought a Skype phone which works correctly.
    Thanks in advance

    thanks for reply..
    Please help me out with the entire setp by step procedure that i have to follow in getting the output in variable
    i am using to get the emp name from webservices and i am passing empno from form.
    INPUT STRING
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
       <soapenv:Header/>
       <soapenv:Body>
          <tem:ALL_GetEmpNamefrmID>
             <!--Optional:-->
             tem:EmployeeLogin>{$ /process_data/@emp_no $}</tem:EmployeeLogin>
          </tem:ALL_GetEmpNamefrmID>
       </soapenv:Body>
    </soapenv:Envelope>
    when i hard coded emp no for testing EG: 1234 the out put i am getting the folloeing XML when i click tes
    OUTPUT:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <soap:Body>
          <ALL_GetEmpNamefrmIDResponse xmlns="http://tempuri.org/">
             <ALL_GetEmpNamefrmIDResult>SUBBA</ALL_GetEmpNamefrmIDResult>
          </ALL_GetEmpNamefrmIDResponse>
       </soap:Body>
    </soap:Envelope>
    Please help me out what are the steps i have to follow for getting out put SUBBA to my variable

  • Design view issue - CSS and html

    Hi
    I was wondering if anyone can help me with this. Someone has
    created a page for me using html and CSS as requested. The problem
    is that whenever I try to open the index.html file in design view
    or code and design view, Dreamweaver crashes and I have to restart.
    I am attaching the html and CSS below. Just as an aside, I have
    asked them to create the code using CSS rather than tables and have
    ended up with div hell.
    Cheers
    Julie
    @charset "utf-8";
    * {padding:0; margin:0;}
    body {padding:10px 0 10px 0; background-color:#fff; margin:0
    auto; width: 976px; font-family:Arial, Helvetica, sans-serif;
    font-size:11px; color:#333;}
    #wrap {margin:0 auto; padding:0; position:relative; width:
    976px;}
    a:link { color:#999; text-decoration: underline; }
    a:visited { color:#999; text-decoration: underline; }
    a:hover{ color:#666; text-decoration: none; }
    img { border:none; padding:0; margin:0;}
    h1 {font-size: 36px;}
    h2 {font-size: 24px;}
    h3 {font-size: 18px;}
    h4 {font-size: 16px;}
    h5 {font-size: 14px;}
    h6 {font-size: 11px;}
    input { position:relative; font-weight: normal;cursor:
    pointer;vertical-align: middle;padding: 0 3px;font-size:
    13px;font-family: Verdana, Helvetica, Arial, sans-serif;
    border:#a09f6f 1px solid;}
    select {font-family: Verdana, Helvetica, Arial,
    sans-serif;font-weight: normal;cursor: pointer;vertical-align:
    middle;border: 1px solid #999;padding: 1px;background-color:
    #FAFAFA;}
    option {padding-right: 2px;}
    textarea {font-family: "Lucida Grande", Verdana, Helvetica,
    Arial, sans-serif; width: 60%;padding: 2px;font-size:
    1em;line-height: 1.4em; border:#a09f6f 1px solid; width:390px;
    height:170px;}
    /* Header Part Start */
    #header {margin:0; padding:0; position:relative;
    background:url(../images/index_01.jpg); width:976px; height:97px; }
    #header .headprt {margin:0; padding:0; position:relative }
    #header .headprt .headprtr { float:right; width: 500px;
    margin:0; padding:0; position:relative }
    #header .headprt .headprtr .padhr { color:#fff; margin:0;
    padding:16px 44px 0 0; position:relative; text-align:right;}
    #header .headprt .headprtl {margin:0 500px 0 0; padding:0;
    position:relative;}
    #header .headprt .headprtl .padhl{ color:#fff; margin:0;
    padding:40px 0 0 44px; position:relative }
    .hhllb { font-size:16px;}
    .hhlld { font-size:16px; font-weight:bold}
    .hhllc { font-size: 20px; font-weight:bold}
    .hhlls { font-size:14px}
    .kulay { color:#e55b68}
    /* Header Part End */
    /* Main Part Start */
    #maincontent {margin:0; padding:0; clear:both;
    position:relative; display:block; background-color:#fff }
    #maincontent .boxmainbgl {margin:0; padding:0;
    position:relative; background: url(../images/index_10.jpg) repeat-y
    top left; }
    #maincontent .boxmainbgl .boxmainbgr {margin:0; padding:0;
    position:relative; background: url(../images/index_11.jpg) repeat-y
    top right; }
    #maincontent .boxmainbgl .boxmainbgr .boxmainbgtopl
    {margin:0; padding:0; position:relative;
    background:url(../images/index_02.jpg) no-repeat top left; }
    #maincontent .boxmainbgl .boxmainbgr .boxmainbgtopl
    .boxmainbgtopr {margin:0; padding:0; position:relative;
    background:url(../images/index_05.jpg) no-repeat top right; }
    #maincontent .boxmainbgl .boxmainbgr .boxmainbgtopl
    .boxmainbgtopr .boxmainbgbotl {margin:0; padding:0;
    position:relative; background:url(../images/index_15.jpg) no-repeat
    bottom left; }
    #maincontent .boxmainbgl .boxmainbgr .boxmainbgtopl
    .boxmainbgtopr .boxmainbgbotl .boxmainbgbotr {margin:0; padding:0;
    position:relative; background:url(../images/index_16.jpg) no-repeat
    bottom right; }
    #maincontent .boxmainbgl .boxmainbgr .boxmainbgtopl
    .boxmainbgtopr .boxmainbgbotl .boxmainbgbotr .boxpadzki {margin:0;
    padding:8px 48px 0 49px; position:relative; height: 1340px;}
    .mainconup {margin:0; padding:0; position:relative;
    clear:both; display:block; overflow:hidden; height:485px }
    .mainconup .mmtoprt { float: right; width:615px; margin:0;
    padding:0; position:relative }
    .mainconup .mmtoprt .mmrtM {margin:0; padding:0;
    position:relative; background:url(../images/picpic.jpg) no-repeat
    top left; height:479px; }
    .mainconup .mmtoprt .mmrtM .mmrtA {margin:0; padding:200px 0
    0 10px; position:relative; width:600px; }
    .mainconup .mmtoprt .mmrtM .mmrtA .mmppr { float:right;
    width: 195px; margin:0 0 0 -3px; padding:0; position:relative }
    .mainconup .mmtoprt .mmrtM .mmrtA .mmppc {margin:0 195px 0 0;
    padding:0; position:relative;}
    .mainconup .mmtoprt .mmrtM .mmrtA .mmppc .mmppx {float:right;
    width: 205px; margin:0; padding:0; position:relative}
    .mainconup .mmtoprt .mmrtM .mmrtA .mmppc .mmppl {margin:0
    205px 0 0; padding:0; position:relative; height:100px}
    .bkspdC { font-size: 22px; font-weight:bold; color:#fff;
    margin:0; padding:30px 0 0 0; position:relative; line-height:20px}
    .bkspdB { font-size: 22px; font-weight:bold; color:#fff;
    margin:0; padding:20px 0 0 0; position:relative; line-height:20px}
    .bkspdA { font-size: 22px; font-weight:bold; color:#fff;
    margin:0; padding:30px 0 0 10px; position:relative;
    line-height:20px}
    .mainconup .mmtoplt {margin:0 615px 0 0; padding:0;
    position:relative }
    .mainconup .mmtoplt .logo {margin:0; padding:2px 0 0 3px;
    position:relative }
    .mainconup .mmtoplt .linek {margin:10px 20px 7px 3px;
    font-size:2px; padding:0; position:relative; border-top: #e7e7e7
    2px solid }
    .mainconup .mmtoplt .pargs {margin:0; padding:10px 20px 0
    3px; position:relative; line-height:13px }
    .hhllw { font-size: 22px; font-weight:bold; color:#23a9e8}
    .maincentr { clear:both; margin:0; padding:0;
    position:relative; background-color:#2774c2; display:block; }
    .maincentr .mckbb {margin:0; padding:10px 10px 20px 20px;
    position:relative; color:#fff; }
    .maincentr .mckbb .mckrt {margin:0; padding:0;
    position:relative; float:right; width:290px }
    .maincentr .mckbb .mcklt {margin:0 290px 0 0; padding:0;
    position:relative }
    .maincentr .mckbb .mcklt .mcklrr {margin:0; padding:0;
    position:relative; float:right; width:290px; height:170px;
    background:url(../images/bgline.jpg) no-repeat right 10px; }
    .maincentr .mckbb .mcklt .mcklcc {margin:0 290px 0 0;
    padding:0; position:relative; height:170px;
    background:url(../images/bgline.jpg) no-repeat right 10px; }
    .maincentr .cbgc {margin:0; padding:0; position:relative;
    background:url(../images/bgline2.gif) repeat-x top left;
    height:2px; font-size:2px}
    .customks {margin:0; padding:0; position:relative;
    font-size:20px; font-weight:bold }
    .quotep {margin:0; padding:20px 20px 0 0; position:relative }
    .quotep .quotea {margin:0; padding:0; position:relative;
    background:url(../images/qouteleft.jpg) no-repeat top left; }
    .quotep .quotea .quoteb {margin:0; padding:0;
    position:relative; background:url(../images/qouteright.jpg)
    no-repeat bottom right }
    .quotep .quotea .quoteb .quotez {margin:0; padding:28px 0 0
    0; position:relative; font-size:12px; line-height:13px; }
    .xquotep {margin:0; padding:20px 20px 0 20px;
    position:relative }
    .xquotep .xquotea {margin:0; padding:0; position:relative;
    background:url(../images/qouteleft.jpg) no-repeat top left; }
    .xquotep .xquotea .xquoteb {margin:0; padding:0;
    position:relative; background:url(../images/qouteright.jpg)
    no-repeat bottom right }
    .xquotep .xquotea .xquoteb .xquotez {margin:0; padding:28px 0
    0 0; position:relative; font-size:12px; line-height:13px; }
    .mainbut {margin:6px 0 0 0; padding:0;
    position:relative;clear:both; display:block }
    .mainbut .mainbbj {margin:0; padding:0; position:relative }
    .mainbut .mainbbj .mainbbrt {margin:0; padding:0;
    position:relative; float: right; width: 167px }
    .mainbut .mainbbj .mainbbrt .sshots {margin:0; padding:0 0
    2px 0; position:relative; width: 167px }
    .mainbut .mainbbj .mainbbrt .sshots .higfx {margin:0;
    padding:0; position:relative; width: 167px; height:122px;
    overflow:hidden }
    .mainbut .mainbbj .mainbblt {margin:0 167px 0 0; padding:0;
    position:relative }
    .mainbut .mainbbj .mainbblt .mainbbrr {margin:0; padding:0;
    position:relative; float: right; width: 425px }
    .mainbut .mainbbj .mainbblt .mainbbrr .mainbbpads {margin:0;
    padding:10px 26px 0 26px; position:relative; font-size:12px;
    line-height:14px }
    .mainbut .mainbbj .mainbblt .mainbbcc {margin:0 425px 0 0;
    padding:0; position:relative; background:#3a3a3a; color:#fff }
    .mainbut .mainbbj .mainbblt .mainbbcc .mainccpads {margin:0;
    padding:20px 25px 25px 18px; position:relative; font-size:12px;
    line-height:15px }
    .hhllt { font-size: 20px; font-weight:bold; color:#23a9e8}
    .hhllk { font-size: 18px; color:#23a9e8}
    /* Main Part End */
    /* Footer Part Start */
    #footer {margin:0; padding:0; clear:both; position:relative;
    display:block }
    #footer .footboxbg {margin:0; padding:0; position:relative;
    background: url(../images/index_18.jpg) repeat-x top left; }
    #footer .footboxbg .footboxlt {margin:0; padding:0;
    position:relative; background: url(../images/index_17.jpg)
    no-repeat top left; }
    #footer .footboxbg .footboxlt .footboxrt {margin:0;
    padding:0; position:relative; background:
    url(../images/index_20.jpg) no-repeat top right; height:36px }
    /* Footer Part End */

    Web Dynpro doesn't allow for the inclusion of custom HTML and CSS.  It is far building business application in a client rendering abstracted framework. 
    If you need some common header, then you should consider the usage of the NetWeaver Portal.

  • Can you perform simultaneous timed digital input and output using a PCI-6120?

    Is it possible to do simultaneous timed digital input and output using a PCI-6120? It seems that timed digital operations require using the group read/write commands, which utilize an entire port. Since the PCI-6120 has only 1 digital I/O port, I would like to be able to use 2 lines as outputs and 1 line as input, and do both in a deterministic fashion. i.e. create a digital signal with known pulse widths and read an input line at a known time after the outputs were set. Is this possible to do with only one digital I/O port?

    Hello,
    This can be done in LabVIEW. There is actually an example that installs with NI-DAQ.
    Below is a link to a Knowledge Base that explains how to find the correlated digital I/O examples.
    http://digital.ni.com/public.nsf/websearch/B849664604EB34B886256D12005B5520?OpenDocument
    Just take a look at the example titled �Continuous CDIO with external clock (E).vi�
    Best regards,
    Justin Tipton
    National Instruments

  • Building Peak and Hold output counters: HW and SW required?

    Hello,
    I am using the 2 counter outputs of USB-6211 and PCI-6602 to drive injectors with PWM commands at rather slow frequencies (up to 10Hz) --- see top picture in the attached file. What I would like to do now is to drive Peak-and-Hold injectors (as shown in the below picture). I wonder if such profiles can be programmed or set in the hardware at the beginning of a test then reset everytime the users want to change the current settings (this latter does not need to be in real-time).
    Can I achieve this with my hardware, do I need specific hardware? Is the only solution to build the train of impulsions and send it in a sort of time-based way? I do not really see the SW related that I must use.
    Thanks for any insight.
    Christophe
    Attachments:
    P&H command.doc ‏34 KB

    Hello,
    If you really need the exact pattern to be completely accurate up to 0.1%, then your pulse parameters should be able to change with maximally a 0.1% error. 
    This means that your pulse parameters should be updatable with an error smaller than 1 ms.
    Therefore you cannot use Non-Buffered Pulse Train Generation (Implicit timing), because in that case changing your pulse parameters would be done software-timed. This type of Pulse Train Generation can be performed on STC 2 - and STC 3 - chipsets.
    Because a computer only has an accurate 1kHz clock available, this would probably not fulfill your needs.
    Two other options that could do what you are asking are Buffered Pulse Train Generation (with Implicit Timing) and Buffered Pulse Train Generation (with Sample Clock Timing).These options are only available on STC 3 - chipsets. These chipsets allow you to change your pulse parameters in a hardware-timed manner.
    The 6211 card you mentioned is an M-series device and these devices use a STC 2 - chipset. Therefore it will not be possible to do a hardware-timed buffered  pulse train generation.
    As far as I know it will not be possible to do the hardware-timed buffered  pulse train generation with the 6602-card.
    I don't have one available over here to test it, but of course you can always test it at your side.
    The examples to test this can be found the following way:
    - Open LabVIEW and go to Help > Find Examples
    - Select Browse and go to Hardware Input and Output > DAQmx > Generating Digital Pulses
    - Here there should be two examples of the buffered Pulse Train Generation. (starting with "Gen Dig Pulse Train - Buff-... ")
    - In the Requirements section they also mention the cards that do support this functionality.
    Can you let me know if your test allows you to produce the wanted results?
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Control Simulation and Design with DAQmx

    Hi all, thanks in advance for any helpful direction you can provide.
    I was recently setup with Labview 2013 Developer Suite and the Control and Simulation Design add-on and was hoping to get a little nudge in the right direction.
    I have used Labview and the NI DAQmx setup for regular external measurements before but never integrated with the Control and Simulation toolbox. I am trying to use the Control and Simulation Toolbox to model a simple system (to start) in conjunction with the DAQmx setup I have, and am somewhat at a loss.
    For example, I want to use Labview Control and Simulation to simulate a simple integrator (1/s). The input for the integrator is an external analog voltage (from separate electronics) coming in through the DAQmx setup and the output of the integrator is also and external analog voltage going back to the external electronics. In essence, a very simple control loop.
    I have been digging through tutorials and searching for examples, of which there have been many excellent ones. However, I have yet to find an example whereby the control and simulation loop is talking to the outside world through the DAQmx interface. I do not believe the RT module or RT target is necessary for timing as the fastest we are running the loop is around 10Hz. I have found some small examples discussing how the Control and Simulation Toolbox timing can be controlled by the RT target or even the DAQmx but I am still struggling on how to pass data in and out of the loop and how to set the timing parameters. How do you get it to simply run endless, for example.
    Again, thanks for any information or direction you can provide.

    Hey Cabala,
    Based on your description this would be a great starting example. 
    https://decibel.ni.com/content/docs/DOC-11521 
    Depending on your hardware you may or may not be able to use hardware timed single point for acquisition but you could set it up for continuous as well and use the same structure of 1 read and 1 rate for each cycle of the loop. 
    You can replace proportional gain function with the CD and Sim Loop and place a Integrator function with in that.
    Sorry it appears one of the dependencies for that example is missing so you can't run it off immediately. 
    Please let us know if you have any other questions. 
    Kyle Hartley
    RIO Product Support Engineer
    National Instruments

  • I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel

    I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel.
    When it was explained to me it didn't sound to hard of a task, I have no LabVIEW experience and the tutortial sucks.

    StevenD: FYI, I did NOT give you the one star rating. I would never do that!
    StevenD wrote:
    Ow. Someone is grumpy today.
    Well, this is an assignment, so it is probably homework.
    Why else would anyone give HIM such an assigment, after all he has no LabVIEW experience and the tutorials are too hard for him?
    This would make no sense unless all of it was just covered in class!
    This is not a free homework service with instant gratification.
    OK! Let's do it step by step. I assume you already have a VI with the digital indicators.
    "...but have no idea where to begin".
    open notepad.
    decide on a format, possibly one line per indicator.
    type the document.
    close notepad.
    open LabVIEW.
    Open the existing VI with all the indicators.
    (are you still following?)
    look at the diagram.
    Who made the program?
    Does the code make sense so far?
    Is it a statemachine or just a bunch of crisscrossed wires?
    Where do you want to add the file read?
    How should the file be read (after pressing a read button, at the start of the program ,etc.)
    See how far you get!
    Message Edited by altenbach on 06-24-2008 11:23 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Creating model with Control and Design LV2009

    Hello,
    I'm trying to make a PI control model with Control and Design in labview 2009. I'm tyring to create the following transferfunction:
    D(z)=Kp+((Kp*Ki)/(1-z^-1))
    But labview adds by itself an extra z^-1 in the Numerator
    See the attachment what I have tried. I first want to create 1+(1/(1-z^-1)). What I'm I doing wrong ?
    Greetz,
    Jeroen
    Attachments:
    model.jpg ‏50 KB

    Jeroen,
    The two expressions "1+(1/(1-z^-1))" and "(2-z^-1)/(1-z^-1)" are equivalent to one another.  They just have the terms rearranged.  Since LabVIEW expresses a transfer function as a numerator and denominator, it is drawing the function as "(2-z^-1)/(1-z^-1)".  You aren't doing anything wrong.
    Chris M 

  • Applying of FFT and Octaves analysis to an analog input

    Is it posible to aply, in real time, with LabVIEW 5.0 an FFT and Octaves analysis to an analog input obtained with a Labpc 1200? If yes could you please give me a hinch? Thank you very much.

    There is basic FFT analysis built into the libraries that ship with LabVIEW Full Development System (FDS). However I would recommend considering the Sound & Vibration toolkit as an add on for LabVIEW. This contains more complete FFT analysis solutions (including averaged FFT analysers) and has a complete range of octave analysis (full and fractional analysis).
    The examples are very good and even if you haven't had much experience of using traditional boxed FFT/octave analysers you will quickly be in a position to have a good working application up and running.
    This brings me onto the question of the board that you are using. Depending on the type of signals that you are working with, you may find that there are a number of limitations to using the Lab-PC-1200.
    1. The board has only 12-bit ADCs which therefore gives a maximum dynamic range of approx 72dB. A 16-bit board would offer a wider dynamic range of 96dB while some of the dedicate signal/audio analyser boards on offer from NI have 24-bit ADCs and a dynamic range of 120dB.
    2. If you are analysing more than one channel and are looking at phase measurements (i.e. stereo if it is audio you are acquiring) you will be limited by the architecture of the Lab-PC-1200. This board uses a multiplexer to switch from one channel to another. This will automatically insert a phase error into the measurements that you take. An example of where this might be a problem would be if you were analysing the response from two audio speakers, or trying to analyse the performace of an object to vibration using multiple accelerometers. Dedicated boards on offer from NI (NI 44xx range) have simultaneous sampling inputs and these get around these phase problems.
    The analysis that you perform with such a board all takes places on the host computer i.e. your Windows PC. As such you comment "is it possible to apply, in real time..." will depend entirely on the specification of your PC. NI does offer a few boards that will allow FFT and octave analysis to be performed on the actual DAQ board itself (NI 45xx range of dynamic signal analysers).
    So in summary, consider the Sound & Vibration toolkit and also consider the limitations of the Lab-PC-1200. It may not be the best choose - but if you are stuck with the board, you can still develop a suitable LabVIEW application and if possible upgrade the hardware sometime in the future (the code should not need to change if you change the board).
    Jeremy

  • How to control (the input and output) EXE file after I call it using exec?

    Hi,
    I knew that I can use runtime.exec() to call one EXE file, and this works. But this EXE has two characteristics:
    1. After this exe starts, it asks user to input number such as 1 or 2 onto computer screen, then press return. Then the exe will start the calculation.
    2. after it starts calculation, it prints 3 columns of numbers onto the screen.
    My two questions are:
    1. How to use java to input the number such as 1 or 2 automatically? this EXE can not work like this in DOS command line:
    C:> file.exe parameter
    The parameter is the number such as 1 or 2 that I wanna input.
    2. how to redirect the 3 columns of numbers from computer screen to txt file?
    My colleague can solve these two questions using Mathematica. So I know that definitely there is at least one solution for it. I just can not do it using Java. This wierd exe file bothered me a lot and I really wish that I can get help from someone in java community.
    Thank you!
    Tony

    When you call Runtime.exec, you get a Process object. (I presume something similar happens when you use ProcessBuilder.) Process has methods with names getOutput, getInput, and getError. These correspond to the standard input, standard output, and standard error streams of the spawned process.
    You can read and write to the process on the streams corresponding to input and output that the process writes to the console.
    [add]
    In fact, you should be grabbing and reading the output/error streams anyway, because of the points raised by the Traps article. Google "Java Runtime exec traps" and you'll probably get a link to this JavaWorld article, which describes common Runtime.exec problems and how to solve them.
    Edited by: paulcw on Jun 15, 2010 4:09 PM

  • Number Scrolling Out of Control When I Try to Set Dimensions Of New Design - Elements 8, 9, and 10!

    i'm really hoping someone can help me with this, as i really need to be able to access elements for my online business.  i currently use a macbook pro (newish within the last 2 years) and have used photoshop elements 8, 9, and most recently even 10 and the same thing keeps happening...they will work fine for a while and then all of a sudden i will go to enter the size dimensions of a new design and the numbers in the dialog box will just start scrolling like crazy.  for instance if i try to set the dimension to 5x7 inches and enter the number 5 into the width box, it will (all on its own, like it's possesed!) scroll to the number 10 and then scroll back down to the number 0 and it will continue to do this whenever i try to enter a number.  however, it will allow me to use photoshop element's custom presets, such as US letter size (8.5x11) etc.  just wont' allow me to enter a "custom" size.  this same scrolling occurs when i try to save a file as a jpeg, if i try to save it at number 12 "maximum" quality, it will scroll down to the number 0 and the quality box (low medium maximum) will scroll through those choices as well.....i hope this makes sense.  i haven't been able to find much about this issue.  the only thing i could find suggested deleting the "preferences settings" by pressing "command, option, shift" upon launching the program, which i've done several times and it doesn't solve the issue.  also, versions 9 and 10 are both downloaded "trial" versions of the program, but version 8 was a hardcopy disc that i bought myself a couple of years ago and the same issue eventually happens to all of them.  PLEASE HELP!!!!  i would really appreciate it, thanks!

    hi barbara
    thank you for your response, i appreciate it.  there's definitely nothing wrong with the mouse or trackpad, both work fine in every other application....i can also easily change size dimensions in other programs on my computer so it doesn't seem to be that either.  it seems like there is something weird going on in the way that pse and my mac are interacting with each other, just wish i knew what it was.    thank you again, wish me luck!

  • I am trying to design a VI that will identify the position of any overshoots and undershoots from an input array of 100 elements

    I am trying to design a VI that will identify the position and number of all overshoot and undershoot values. I have been trying for the past three weeks to solve this problem but I am having difficulty with the output arrays which will store the overshoot/undershoot values. I am using a for loop but when I connect the array indicator the wire from the o/p tunnel to the array indicator shows an errror? Any help would be greatly appreciated
    Regards,
    Kadeel

    Hi Kadeel,
    what error do you get? What happens when you right-click the loop output and select Create->Indicator?
    Why not attach your vi, that you have been working on for 3 weeks?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I am trying to use a SC-2024-RTD DAQ board to do 3 things (monitor two sensors (input) and control a small motor (output)) simultaneously. I have not been successful using labview for output. I can't even get it to show a voltage at the output pins.

    I have it configured for voltage modulation, channel 0, and I am testing Ix0+ and Ix0-. To run it, I am right-clicking on the function and clicking "test". What's wrong?
    thanks, Alex Millie
    [email protected]

    Ix0(+/-) are make the excitation current. You can see this in figure 4-1 in the user manual. You can see the output voltage from the MIO card by looking at the voltage from terminal 23 to terminal 20 (channel 0) and terminal 23 to terminal 21 (channel 1). You can see this pinout on page 3-5 of the SC-2042-RTD user manual.

  • Ask the Expert: Hierarchical Network Design, Includes Core, Distribution, and Access

    Welcome to the Cisco® Support Community Ask the Expert conversation.  This is an opportunity to learn and ask questions about hierarchical network design. 
    Recommending a network topology is required for meeting a customer's corporate network design  needs in their business and technical goals and often consists of many interrelated components. The hierarchical design made this easier like "divide and conquer" the job and develop the design in layers.
    Network design experts have developed the hierarchical network design model to help to develop a topology in discrete layers. Each layer can be focused on specific functions, to select the right systems and features for the layer.
    A typical hierarchical topology is
    A core layer of high-end routers and switches that are optimized for availability and performance.
    A distribution layer of routers and switches that implement policies.
    An access layer that connects users via lower-end switches and wireless access points.
    Ahmad Manzoor is a Senior Pre-Sales Engineer at AGCN, Pakistan. He has more than 10 years of experience in first-rate management, commercial and technical skills in the field of data communication and services lifecycle—from solution design through sales pitch, designing RFPs, architecture, and solution—all with the goal toward winning projects (creating win/win situations) of obsolete solutions.  Ahmad also has vast experience in designing end-to-end data centers, from building infrastructure design to data communication and network Infrastructure design. He has worked for several large companies in Pakistan and United Arab Emirates markets; for example, National Engineer, WATEEN Telecom, Emircom, Infotech, Global Solutions, NETS International, Al-Aberah, and AGCN, also known as Getronics, Pakistan.
    Remember to use the rating system to let Ahmad know if he has given you an adequate response. 
    Because of the volume expected during this event, Ahmad might not be able to answer every question. Remember that you can continue the conversation in the  Solutions and Architectures under the sub-community Data Center & Virtualization, shortly after the event. This event lasts through August 15, 2014. Visit this forum often to view responses to your questions and the questions of other Cisco Support Community members.

    Dear Leo,
    We are discussing the following without any product line, discussing the concept of hierarchical design, which will help you to take decision which model is better for you Two Layer or Three Layer hierarchical model.  
    Two-Layer Hierarchy
    In many networks, you need only two layers to fulfill all of the layer functions—core and aggregation
    Only one zone exists within the core, and many zones are in the aggregation layer. Examine each of the layer functions to see where it occurs in a two-layer design:
    Traffic forwarding—Ideally, all interzone traffic forwarding occurs in the core. Traffic flows from each zone within the aggregation layer up the hierarchy into the network core and then back down the hierarchy into other aggregation zones.
    Aggregation—Aggregation occurs along the core/aggregation layer border, allowing only interzone traffic to pass between the aggregation and core layers. This also provides an edge for traffic engineering services to be deployed along.
    Routing policy—Routing policy is deployed along the edge of the core and the aggregation layers, generally as routes are advertised from the aggregation layer into the core.
    User attachment—User devices and servers are attached to zones within the aggregation layer. This separation of end devices into the aggregation permits the separation of traffic between traffic through a link and traffic to a link, or device. Typically, it is best not to mix transit and destination traffic in the same area of the network.
    Controlling traffic admittance—Traffic admittance control always occurs where user and server devices are attached to the network, which is in the aggregation layer. You can also place traffic admittance controls at the aggregation points exiting from the aggregation layer into the core of the network, but this is not common.
    You can see, then, how dividing the network into layers enables you to make each layer specialized and to hide information between the layers. For instance, the traffic admittance policy implemented along the edge of the aggregation layer is entirely hidden from the network core.
    You also use the core/aggregation layer edge to hide information about the topology of routing zones from each other, through summarization. Each zone within the aggregation layer should have minimal routing information, possibly just how to make it to the network core through a default route, and no information about the topology of the network core. At the same time, the zones within the aggregation layer should summarize their reachability information into as few routing advertisements as possible at their edge with the core and hide their topology information from the network core.
    Three-Layer Hierarchy
    A three-layer hierarchy divides these same responsibilities through zones in three vertical network layers,
    Traffic Forwarding—As with a two-layer hierarchy, all interzone traffic within a three- layer hierarchy should flow up the hierarchy, through the layers, and back down the hierarchy.
    Aggregation—A three-layer hierarchy has two aggregation points:
    At the edge of the access layer going into the distribution layer
    At the edge of the distribution layer going into the core
    At the edge of the access layer, you aggregate traffic in two places: within each access zone and flowing into the distribution layer. In the same way, you aggregate interzone traffic at the distribution layer and traffic leaving the distribution layer toward the network core. The distribution layer and core are ideal places to deploy traffic engineering within a network.
    Routing policy—The routing policy is deployed within the distribution layer in a three- layer design and along the distribution/core edge. You can also deploy routing policies along the access/distribution edge, particularly route and topology summarization, to hide information from other zones that are attached to the same distribution layer zone.
    User attachment—User devices and servers are attached to zones within the access layer. This separation of end devices into the access layer permits the separation of traffic between traffic through a link and traffic to a link, or device. Typically, you do not want to mix transit and destination traffic in the same area of the network.
    Controlling traffic admittance—Traffic admittance control always occurs where user and server devices are attached to the network, which is in the access layer. You can also place traffic admittance controls at the aggregation points along the aggregation/core edge.
    As you can see, the concepts that are applied to two- and three-layer designs are similar, but you have more application points in a three-layer design.
    Now the confusion takes place in our minds where do we use Two Layer and where the Three layer hierarchical model.
    Now we are discussing that How Many Layers to Use in Network Design?
    Which network design is better: two layers or three layers? As with almost all things in network design, it all depends. Examine some of the following factors involved in deciding whether to build a two- or three-layer network:
    Network geography—Networks that cover a smaller geographic space, such as a single campus or a small number of interconnected campuses, tend to work well as two-layer designs. Networks spanning large geographic areas, such as a country, continent, or even the entire globe, often work better as three layer designs.
    Network topology depth—Networks with a compressed, or flattened, topology tend to work better as two-layer hierarchies. For instance, service provider networks cover large geographic areas, but reducing number of hops through the network is critical in providing the services they sell; therefore, they are often built on a two-layer design. Networks with substantial depth in their topologies, however, tend to work better as three-layer designs.
    Network topology design—Highly meshed networks, with many requirements for interzone traffic flows, tend to work better as two-layer designs. Simplifying the hierarchy to two levels tends to focus the design elements into meshier zones. Networks that focus traffic flows on well-placed distributed resources, or centralized resources, such as a network with a large number of remote sites connecting to a number of centralized Data Centers, tend to work better as three-layer designs.
    Policy implementation—If policies of a network tend to focus on traffic engineering, two-layer designs tend to work better. Networks that attempt to limit access to resources attached to the network and other types of policies tend to work better as three-layer designs.
    Again, however, these are simple rules of thumb. No definitive way exists to decide whether a network should have two or three layers. Likewise, you cannot point to a single factor and say, “Because of this, the network we are working on should have three layers instead of two.”
    I hope that this helps you to understand the purposes of Two Layer & Three layer Hierarchical Model.
    Best regards,
    Ahmad Manzoor

  • How to Create a Rich Dynamic Input and Output PDF to insert and get data into, from Database (MSSQL)

    HI ,
    I want to use Adobe LiveCycle Designer and Adobe LiveCycle Workbench features to create a Dynamic PDF form which can allow me to store data into database(MSSQL Server) and Can also provide me the Output PDF form with all the information which has been been filled in by the User in input form. Both Input and Output forms must be Dynamic. I am stuck in this process and Need Experts Advice on the Complete optimal process flow of the Adobe.
    Regards
    Ritesh Grover

    HI
    Go to the lay out of your screen and doublr click on the table control fields, you can get the Properties/Attribute of the screen or table control Fields
    Assing a Group GRP1 for all the fields i n the table control.
    in PBO
    if ok_code = 'INPUT'.
    LOOP AT SCREEN.
    IF screen-grp1 = 'GRP1'.
    screen-input = 1.
    modify screen.
    endif.
    ENDLOOP.
    elseif ok_code = 'OUTPUT'.
    LOOP AT SCREEN.
    if screen-grp1 = 'GRP1'.
    screen-input = 0.
    modify screen.
    endif.
    endloop.
    endif.
    Regards
    Ramchander Rao.K
    Edited by: Ramchander Krishnamraju on Aug 8, 2009 5:27 AM

Maybe you are looking for

  • Gantt chart in cProjects and XML definition

    Hi, I am making some changes to the XML file passed to the graphic in WebDynpro ABAP - Gantt chart (in cProjects module). I would like to achieve a result that some bars are drawn with a pattern, for example with lines. I am using the Node definition

  • PropertyNotFoundException on a custom component

    Hello, I'm experiencing some issue while using a custom component in a FXML file. I try to instanciate my comp and tu set a text with the command : <fx:include source="MyComponent.fxml" text="myText" /> I have linked my component to a controller usin

  • 451 4.4.3 Temporary server error. Please try again later ATT3.1

    I currently have Exchange 2007 and 2010 in my organization with all of the mailboxes located on 2010. 2007 exists solely because our ILM2007 still provisions the accounts to 2007 first, and then we migrate those mailboxes to 2010. Last week, we setup

  • Can I copy Lion?

    I read that once I download Lion from the App store, I can copy it to a USB key and install it on my other computers. Is this true? Tks

  • Best Listing Method

    I posted the other message on "Learning Java Classes etc." and I am building an applet to list files in a directory. Since I have classes, methods, and objects from SunJava, Visual Age, and Visual Cafe, which is the best and/or most complete method t