How to make my program forcefully errror

hi 2 all
how to make my program forcefully error out even i have to get data
regards
siva

Hi Mate,
Just remove the quries which you execute
Thanks
Kash
www.mkashu.blogspot.com

Similar Messages

  • How to make labview program to get average value of 200 reading from multimeter (by using loop)

    Hello
    How to make labview program to get average value of 200 reading from multimeter (I using using loop) to read voltage from mulmeter  but I like to get average value of all of 200 reding how can I do that?
    Thanks
    Wee
    Solved!
    Go to Solution.

    Another idea with less programming - take advantage of the "free" array that comes with a Chart - i.e. the  History Data.
    1) Wire your DMM data to a Chart. (You can set the chart to invisible if you don't plan on using it in the GUI).
    2) Set the Chart History Length to 200 (right click on the chart, click on Chart History Length...)
    3) On the block diagram, use the History Data Property Node, wire it to Mean.vi, and you're done.
    Easiest running average ever.
    Message Edited by Broken Arrow on 04-07-2010 11:36 AM
    Richard
    Attachments:
    EasyAvg.jpg ‏8 KB

  • How to make a program for backgroung processing used servlet

    how to make a program for backgroung processing used servlet

    well i need the coding part written in servlet ,in which servlet is always ready for accepting a client request.

  • How to make my program case - in sensitive?

    Hi,
    Iam writing a SELECT query in report for retrieving the address number by giving address details like street, city and post code.But my program is case sensitive such that if the user inputs either in Upper Case or Lower Case, it will not work.
    For eg: suppose the city is Cape Town. If the user inputs like CAPE TOWN or cape town ( via Selection Screen ), then it won't work.
    How can i  make my program case- in sensitive?? please suggest..

    This is possible. I have done something similar to it in my search programs.
    For this we need to make a subroutine. In this subroutine we first need to convert the case into upper case using
    TRANSLATE string TO UPPER CASE.
    then prefix and postfix this string with &,
    _and if this does not work then we have to break the srting entered by the user on basis of spaces and prefix and postfix it with &. _
    Now pass this string to the query and it will definitely get the result.

  • How to make my program faster?

    I have a program which produces two elements array. In normally the program ends in microseconds, however when I organize my program to send the array as a data to DAQ.mx write and the array will be the voltage output from my NI USB-6012 DAQ, my program ens in 40 seconds. How can I make my program faster? Is there any solution?
    I have attached the normal program and with DAQ.vis.
    Attachments:
    step step 1.vi ‏15 KB
    step step 2.vi ‏34 KB

    Program 1 runs 5 times and program 2 runs 41 times per loop. the total number of inner iterations is 25 vs. 1681 for a 67x difference.
    Program 1 and program 2 have no timing information, thus spin at a undefined rate.
    Program 2 does single point hardware IO and also has no timing information. The speed will depend on the hardware.
    Running at a hardware dependent rate is not a good idea in general, because the speed will vary with every change in hardware and is not deterministic. You don't even know what occurs first at each iteration: the input or the output.
    If speed is important, what you should do is use an improved variation (Yes, use FOR loops and ramps!) of program 1 to generate the final data array, then do a single "Nchan,Nsamp" IO, running input and output synchronized hardware timed off the same clock. This way you can select any acquisition speed up the the maximum supported by your DAQ hardware. It will be fast and at an exactly defined rate as it should be!
    Try it!
    I am not familiar with your hardware: USB-6012. can you give a link to the product page?
    LabVIEW Champion . Do more with less code and in less time .

  • Help on how to make a program on Calendar of the year

    I'm new to java programming.
    Our teacher assigned me to make a program for a calendar of the year.
    I'm confused on what to do. Could you give me some tips on how to
    make a successful calendar of the year program?
    What shall I study first to create an output like this....?
    The program should run like this!!!!
    Enter the year from 1990 to year 2050.
    Enter the month of the year entered.
    Then displays the calendar.
    Ex.
    SEPTEMBER 2002
    Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5 6 7
    8 9 10 11 12 13 14
    15 16 17 18 19 20 21
    22 23 24 25 26 27 28
    29 30
    Hoping that you would reply.
    Thank you very much!!!

    Don't want to do your homework. You should think about how you might do it yourself first.
    However, the class java.util.Calendar will be useful to you. Read up on that in the API docs.

  • How to make a program for rebooting linux kernal

    i'am using fedora core 2. i want to make a program for rebooting the kernal locally.

    nkay, how about:
    sudo reboot

  • How to make a program restart at the click of the mouse or a key on....

    How would I make a program restart at the click of the mouse or a key on the keyboard?

    Yes, definitely, thats what I would want to happen but I'm not sure how to go about the coding. Would I have to use a key listener? Or would I have to construct the method from scratch?

  • How TO Make my program executable?

    please list steps to make my program executable jar ??
    please write steps from 0 ot the end?
    thank u

    jar cvfm MyJar.jar MyManifest.txt -C . *.javawhere do you type that? I tried in a command console
    but it didnt work...Make sure jar.exe is in your path.
    and what do u mean by com.acme.MyMainClass? do I have to put the com.acme?No, you would replace it with the fully qualified name of your own class of course. You are allowed to use your own brains too.

  • How to make a program that will ask for a name the first time the program is used and if is not the first time will not ask the name?

    I want to make a program that will ask for the ID of the testing machine the first time the program is running, then will never ask for it. I'm using Labview 6.0

    Hi
    There are a Couple of methods you can use for this.
    Method 1 -
    You can create an ini file and save a boolean Key "First Instance" as True. Now In your Program you read this Key, If it is True then you can show your ID Dialog VI.If False do not run the VI. At the Conclusion of Id Dialog you can update this registry enrty to False. So In effect you have created One time Event. In fact you can save ID as another Config entry.
    The Drawback and advantage is that such an INI file can be edited by someone moderately knowledgeable about the Program
    Method 2
    Use Unitialized Shift Register in A while Loop. Please see LV2 style Globals entry under this forum. You can read and write to this Variable and it retains the Value it last had within it.
    You can read
    this Global the Very first time and say if it true you display your ID Vi. If False you dont. When you display your ID Vi you can Update your Global Like Before.
    If you need Example Let me Know.
    Good Luck
    Mache!!
    Good Luck!
    Mache

  • How to make this program terminate?

    hi,
    how to make the code below stop? is is hanging because UnicastRemoteObject has registered it, and no-one has unregistered it?
    thanks,
    asjf
    import java.rmi.*;
    import java.rmi.server.*;
    public class UniTest extends UnicastRemoteObject implements Remote {
         UniTest() throws RemoteException {}
         public static void main(String [] arg) throws Exception {
              UniTest ut = new UniTest();
    }

    having done some tests it possibly seems linked to the size of the environment
    my system is a win2k machine, with sdk 1.4.1_02 from sun
    if I run
    java UniTest
    then that terminates, but if I first run a batch file containing this
    set FILL0=aaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnoooooppppp
    set FILL1=bbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaa
    set FILL2=cccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbb
    set FILL3=dddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbccccc
    set FILL4=eeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccddddd
    set FILL5=fffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeee
    set FILL6=ggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffff
    set FILL7=hhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggg
    set FILL8=iiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhh
    set FILL9=jjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiii
    set FILL0=kkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjj
    set FILLa=lllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkk
    then it doesn't?
    any help would be really appreciated?
    asjf

  • Confusion on how to make array program

    I have been taking a Java class at school for a couple months and am a bit unsure about how to go about completing a particular assignment. No text book that I found could really make me understand. I am trying to make a simple applet that tests for a username and password. My teacher tried it and also couldn't do it. Here is what we have so far. Any input on how to make the array portion work would be appreciated greatly:
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    public class PasswordApplet extends Applet implements ActionListener
    //Declaring variables
    String id, password;
    boolean success;
    String idArray[] = {"aaron","kevin"};
    String passwordArray[] = {"shs", "bears"};
    //Create components for applet
    Label headerLabel = new Label("Please type your ID and Password");
    Label idLabel = new Label("ID: ");
    TextField idField = new TextField(8);
    Label passwordLabel = new Label("Password: ");
    TextField passwordField = new TextField(8);
    Button loginButton = new Button("Login");
    public void init()
    //Set color, layout, and add components
    setBackground(Color.orange);
    setLayout(new FlowLayout(FlowLayout.LEFT,50,30));
    add(headerLabel);
    add(idLabel);
    add(idField);
    idField.requestFocus();
    add(passwordLabel);
    add(passwordField);
              passwordField.setEchoChar('*');
    add(loginButton);
    loginButton.addActionListener(this);
    public void actionPerformed(ActionEvent e)
    success = false;
    id = idField.getText();
    password = passwordField.getText();
    //Sequential search
    int i = 0;
              while( i<idArray.length)
                        if(id.compareTo(idArray)==0)
                             if (password.compareTo(passwordArray[i])==0)
                                  success = true;
                        i = i+1;
                   if (success = false)
                        headerLabel.setText("Unsuccessful. Try Again");
                        idField.setText("");
                        passwordField.setText("");
                        idField.requestFocus();
                   else
                        headerLabel.setText("Login successful");
    repaint();

    I have been taking a Java class at school for a
    couple months and am a bit unsure about how to go
    about completing a particular assignment. No text
    book that I found could really make me understand.
    sigh
    am trying to make a simple applet that tests for a
    username and password. Okay.
    My teacher tried it and also
    couldn't do it. Why? What is the point in telling us this? Your teacher is an idiot? Good for you.
    Here is what we have so far. Any
    input on how to make the array portion work would beWhat specific problem are you having? Tell us that. It doesn't work is meaningless.
    Do you have an error? Does it compile? Which specific line of code does not do what you expect?

  • How to make standalone program in java?

    I have try use jar and it work. but how to access a folder that in the jar file?
    example:
    ------files---------------------------------------------------------------
    pic ( folder that storage images)
    mainClass.txt (set where is the "main" class)
    myclass.class
    main.class
    and i run in command line:
    jar cmf mainClass.txt run.jar *.*
    after that its created run.jar that store all files that i want
    In main.class i get a images from a pic folder.
    So how i get images from a pic folder after i make a standalone jar file ( get a path of image (up one folder of my main.class folder) in jar file where my main.clss is in the jar file too ) ?
    thx..

    Actually i access my image from other class, class that not contain main class, let call myclass, myclass isn't contain main class
    i hava set path
    "ImageIcon icon" in the myclass.class
    ImageIcon icon = new ImageIcon(myclass.class.getClassLoader().getResource(path));its error:
    "Could not find the main class. Program will exit"
    i try:
    ImageIcon icon = new ImageIcon(main.class.getClassLoader().getResource(path));but the same error too..
    Edited by: sayunara on Apr 18, 2008 2:05 AM

  • Help, how to make a program type in a command in command prompt?

    I've got a small code that only works if you type in something like this (assume that the .java file is smallcode.java):
    c:\>java smallcode filename.dcm
    on the other hand, in my main program I have a if else ladder that I want to fit in this code, when my file chooser choose the file type .dcm, I want it to execute the command above, how can I do it?

    1. Not sure if your file is an absolute path name,
    like "c:\files\file.dcm". If it's not, then it has to
    be in the same directory as where your running
    picviewer from. I always use the absolute path just
    to be safe.you know what, you just point out how stupid I am, the path is relative, it depends on where the user surf into, I get the directory like this:
    FileDialog fd = new FileDialog(this, "Select Directory", 0);
    String directory = fd.getDirectory();
    String fileName = fd.getfileName();
    >
    2. Your command string is wrong, try:
    String cmd = ("cmd /c d:\\java
    project\\picviewer\\test\\java DicomViewer " +
    "\""+file+"\"");You are missing a space between DicomViewer and the
    file name. Also, to make sure that it doesn't parse
    the file name, put it in quotes (like I have done
    above).I see, I'll modify the code and come back in couple minutes.
    thanks

  • How to make my program appear in programs menu of win98

    i'm new java programmer .i'm developping a client server application for accessing a data base server.after i have finished my program i need to destribute it on clients in my corporation lan .how can i make it appear as ashortcut on my user's desktop or in his programs menue
    on windows89.

    create a shortcut to javaw.exe and add some parameters behind: the classpath, the main class if not precised in your manifest and the optional params for your Java app.

Maybe you are looking for

  • Mountain Lion 10.8.2 Will not Boot

    I'm on an early 2011 MBP. I have a 256GB SSD with OSX on it and a 500GB HDD with a data partition and a boot camp partition. I just updated from 10.8.1 to 10.8.2. When the I turn it on, the start progress indicator fills up then the machine turns off

  • Dynamic field modification in Work Area.

    Hi, I want to insert 1 record in a transparent table. (But for time being, let us assume the table is MARA) The columns and table name to which data is to be inserted are stored in another transparent table say (z1354_inv_rec_dt). The data to be inse

  • How do City Building Games Run on the MBA?

    Dear Reader, *You can skip this part if you want to directly reach my point , if you like a bit of introduction.. then please don't stop and read on* Yes, I know... a lot of questions have already been asked on gaming and the MBA. I even looked into

  • Bdc programing

    Hi, i am new to bdc.in my req.. they asked me to change bapi function module and i want replace with bdc. i want to do recording for ME21n or ME21 Tcode and bdc Session method.plz let me know the process by step by step.if any one have code for this

  • HT204019 Why can't you make custom ringtones and apply them to your iphone without bypassing iTunes on a Mac or PC?

    I just don't think doing 18 steps just to get 1 ringtone is necessary...and if it is, it should be changed.