A question about 'value spots' in the Vision Assistant of NOR

Hello, all,.

I am a new learner or vision.

When I use 'mark set' in the Vision Assistant of NOR. It works well. for example

(The image above is the example in the Vision Assistant of NOR, please see help > Assistant Solution > Inspection of dental floss)

However, when I put the program NI Vision Assistant to create a Labview VI program. (Tools > create a LabVIEW VI), then run the VI, it no longer works.

The result of the system of coordinates outside is always like that.

I can't find where is the error. I tried a few other examples in the Vision Assistant of NOR. If the command "set mark" is used in the program in the Vision Assistant of NOR. then create the LabVIEW VI.

The problem still occurs.

I hope some man experienced in NI Vision could help me.

Thank you.

Hi all

This problem has been reported under Corrective Action Request (CAR) 441410 and has since been fixed in 2014 of VDM. I highly recommend upgrading to the latest version here: www.ni.com/download/vision-development-module-2014-f1/4971/en/ because it contains other patches. If you are unable to do so, I have attached the patched file, you need to change. Replace the following file (assuming that the default installation location): \National Instruments\LabVIEW 2013\vi.lib\vision\Vision Utils.llb Assistant with the version I have attached here, and that should solve the problem you see with NaN values of reference in the VG of the generated code.

Kind regards

Joseph

Tags: NI Software

Similar Questions

  • How can I import an image with transparent background .png in the Vision Assistant?

    Hello

    I am using the Vision Assistant of NOR. Here, I want to overlay one existing image with another. Therefore, I use the overlay Installer where can I import a .png image. If I do, I don't get

    the transparent background of the back of the image, even, I was saved with a transparent background. The image is displayed with an orange background.

    If I import the same image to any front panel for example, I see the picture on the right path with a transparent background. What I've done wrong? I have attached the image I want to use.

    Thank you

    Hello! Don't know how to do this in the Vision Assistant. Try to use the overlay (bitmap) or convert your image into mask. Effect of transparency not supported in the Vision. What you can do in LabVIEW is something like this:

  • I want to use the Vision Assistant. I have NEITHER Vision Acquisition8.5.1

    I have NI Vision Acquisition 8.5.1 and a map of the video capture card. I am told that I must use the Vision Assistant to do what I

    necessity and that it is part of the installation. Where can I find or how to install.

    No I had not had the CD. I discovered today that NI Vision Acquisition 8.5.1 is software to control a card video capture card. Vision Assistant 8.6 is free to download 30 day trial of of NOR and then around £2800 purchase Web site. Thanks for your help. I'm now sorted.

  • Protégé M200: Question about Vista TPM and the Bitlocker

    You want to know if I have a TPM chip to launch bitblocker on the M200 using Vista. Just call Toshiba Technical Support - the guy was totally distraught!

    If I don't have a TPM chip, then I can install it?

    Hello

    It is a good question. To my knowledge the Portege M200 does not support TPM but the Portege M400, R400 module and the R200

    But the Bitlocker, which is only available on the Vista Enterprise and ultimate can also be used without the TPM chip but then some functions are not available; for example, the SecureBoot.
    Without TPM only the OS volume encryption is available.
    In this case you can encrypts the entire Windows volume including both data and file system user, the file of hibernation, the page file and the temporary files.

    Using volume of BONE (HDD) encryption an encryption key will be generated. This key will be written to the USB and then the USB is required!

    AFAIK the Bitlocker requires 2 partitions. A partition must be created as needs at least 50 MB primary partition. I recommend a? about 1.5 GB
    The second big partition Vista can be installed.

    After the installation of Vista the Bitlocker must be enabled in Group Policy (units without secure TPM). This can be done using the command 'gpedit '.
    And then under models of administration-> windows components-> Bitlocker bitlocker function can be activated!

    Anyway, there is much information Bitlocker and I think you should also consult the Microsoft Web site for more information:
    BitLocker Windows Drive Encryption step-by-step guide

    I hope I could help a little

  • I have a Photosmart C7280 and s question about a decision of the network.

    I currently have two workstations connected to a router via ethernet cables.  They are connected to a single (not HP) printer with USB cable through a USB switch.  Two laptops to connect to the wireless router.  I could replicate the existing configuration with the C7280, but the idea of a network in which the laptops were allowed to participate is very attractive.  One of the laptop is running Windows version 7, the other computers running Linux.  If I go for an ethernet network, the laptops will be able to connect to the printer via the router?  If I go for a wireless network, desktop computers will be able to connect to the printer via their ethernet cables?  A couple of Wireless USB adapters are a possibility.

    I understand that you have questions about networking with your printer.

    Yes, wired network connections will be no problem to connect to a wifi connected printer.  Most routers bridge cable and wireless to work as a single network.  There are some routers between wired and wireless networks, but these are before any company grade routers and network equipment.

    A wired desktop computer will be able to print to a wireless printer as long as it is connected via the same router.  Conversely, a wireless computer can print to a printer connected Ethernet as long as it's the same router.

    I recommend using a network for the printer configuration, if possible, to avoid printing problems.  USB hubs have been known to cause printing problems, although this isn't always the case.

  • Question about a post on the forum, help

    http://supportforums.BlackBerry.com/T5/Java-development/XML-parsing-using-DOM/m-p/545678#M110568

    can someone please see post above.

    My question is this code point, the synchronized block startng.

    Which is the right place or it should be as below.

     Object obj = Application.getEventLock();
         for (int i=0;i
    

    Thanks in advance

    The synchronization is needed by updating the user interface.  You should like few other things as you can while holding this lock.  I think that the way you have it properly.

    That said, I would recommend that people do not use this approach.  In addition, it is an expensive way to add fields to the form.  By adding this, you cuase the screen available for each field that you add.  You do better something like this:

    VerticalFieldManager newVFM = new VerticalFieldManager();
    for (int i = 0; i)<>
    {
        
    Node value = list.item (i).
    getChildNodes () .item (0);
    _node = List.Item (i) .getNodeName ();
    element value = .getNodeValue ();

    METTREAJOURCHAMP (newVFM, _node, element);

    }
    {Synchronized (application.getEventLock ())}
    _SCREEN. Add (newVFM);

    }
    ..

    ' Public Sub METTREAJOURCHAMP (VerticalFieldManager newVFM, node of the chain, string element) {}

    String title = "SectionName".
    newVFM.add (new RichTextField("." + élément));
    {if (node. Equals (title))}
    newVFM.add (new SeparatorField());
    }

    Edit: Corrected according to the following post.  Thank you

  • Several Questions about educational Versions of the software

    Well, I have several questions about teaching from Adobe software.  I will attend school in the near future (now I'm not enrolled in any type of school) and I see that Adobe has huge discounts on "educational software".

    What exactly is the difference between the "commercial" version of a program and an educational version?  Do you need some kind of student card to activate an educational version, or proof that you are in school, or something special like that?  I noticed people unopened sell educational versions on eBay and I heard there is no differences between the software, but this makes me wonder... why the price difference?

    Also, I intend on buying another Mac in the near future - probably for the school.  My second question is - with this software (education), is that I can put programs on my desktop and my laptop, or they won't work on one person on one computer?  I've heard people that serial numbers cannot be activated so many times.

    Last question.  My HDD recently crashed and I lost a good bit of things and had to re - install everything.  If this would never happen again, reinstall all Adobe programs on a hard drive nine?  Or I will meet the all 'serial numbers cannot be activated so many times?

    Very well.  I think about the fact.  Any input would be great.  Thank you.

    -Mike

    In terms of content, there normally is no real difference between the editions of the retail and educational/student. There may be some additional fonts or clip art in the commercial version, but this varies from one version to the other, and a product.

    You must qualify to buy an educational/student version. These qualifications are listed on the Adobe Web site. Normally, you must provide proof of reserve that sells licenses of software for you. You can not buy now for the reason that you will be a student in the future. You must have purchase student status.

    Unlike versions of retail, education/student Adobe versions software are not transferable. Sale of such software 'closed' on eBay must be regarded with suspicion. Adobe resellers do not offer software on eBay sales. The software is either stolen, used (but reconditioned), or pirated goods.

    Most of the Adobe software, including the Creative Suite software, can be activated at the same time on two computers owned and used by a single individual. second computer is usually a laptop, if first computer is a computer at home for students. For retail sales, usually first computer is a desktop computer and the second computer is a mobile computer or at home. Computers must not run the software at the same time. And No, two students may not share a single copy on two separate computers.

    The software can be turned on and off but after 20 or if these cycles, you will need to call Adobe and explain what is happening to get characters such cycles. If you are enabled on both systems and a hard drive or a computer turns off and you need to reinstall the software without having the possibility to disable the system blew, Adobe activation support group normally will be granted an additional activation, assuming that you do not have a record of abusing the privilege (as your hard drive breaks down once a month!).

    -Dov

  • Question about high latency of the processor

    Hey there,

    Hoping that someone here is able to help me with a high level of CPU Ready I see in one of my groups.

    Our cluster specification:

    8 guests - ESXi 4.0

    Dual - core Xeon 6 per host

    72 GB memory per host

    DRS and HA on

    Resources to its customers:

    32 guests (4 per host) with 4 vCPU and 20 GB of memory (use ave is 15 to 17 GB)

    The guests are Win 2 k 3 servers. Most traffic is read traffic and traffic - based application and is busy. Load of the CPU on each host is about 40-50% to the total of peak, but guests are higher than I think we should for the time loan CPU. See the chart below. I was wondering how concerned I should be at the ready time CPU?

    CPUReady.PNG

    My first thought is that if the server has 12 hearts and we have 4 guests each asks 4 vCPUs in time with an activity semi busy, then we'll always see higher than normal loan of CPU time. Mainly because there is always one of the guest who has be waiting for the moment on the processors. So assuming that it is correct, if I was to lower the number of CPU 3 on each client (or maybe even 2), I should actually see the loan CPU time go to zero without affecting the performance of comments? maybe even win a few performance?

    Just check my logic here. Making sure that I'm not crazy (which my wife would probably).  :-)

    Thanks in advance!

    -Adam

    The rule is that whatever it is ready by more than 10% * by vCPU * is bad, if with vCPU you will get higher numbers, so its nothing to worry too much.

    Jason Boche said it is much better that I did

    http://www.yellow-bricks.com/2010/01/05/ESXTOP-valuesthresholds/comment-page-1/#comment-5861

    are you really an application performance problems?

  • Advancing the Straight Edge configuration in the Vision Assistant

    Hello world

    I used the function advance Straight Edge with Vision Assistant who I little understand but this is not enough for what I'm trying to achieve. I tried to find some info on the underlying theory, but the only thing I found is the help document for it, which provides details on the different variables only.

    Could you please tell me where I could find a good source of information on edge configurations right ahead?

    Thank you  

    Take a look at the NIVisionConcepts.chm you could find under ...\National Instruments\Vision\Documentation.

    Christian

  • Make an adjustment in line with the Vision Assistant for a polynomial function?

    Hello

    I have the following problem: I have a laser beam which a (non-linear) line on a wall. For this line, I need to know (exactly) mathematical

    function. That's why I can get a picture of the line, but I don't know how I can extract the mathematical function with a line fit for example. If I could "convert."

    the line at points that I would use the line fit function to LabView that should work without problem.

    Is there a way to solve the problem with vision assistant or... ?

    Thanks in advance

    Hello

    after thresholding, this should work:

    False case just by...

    Best regards

    K

  • Equium A100 PSAAQ: Question about new update of the package of added value

    Equium A100 (PSAAQ) has received value-added information package download from toshiba, downloaded successfully, 3 provided separate files, zip files don't know which use as for the two buttons six buttons or without button machines, the question is which buttons do they refer to? so I know which file is correct for my machine, help please.

    Hi Andrew

    You should check this thread
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=25055

    It s on the same theme

  • Question about consistent errors in the event viewer XP Home Edition

    I ran a program called VEW looking errors up to twenty in the XP Event Viewer.

    Here is the data for the analysis of files:

    V01c Vino event viewer run on Windows XP in English
    Report run at 28/01/2012 23:42:23

    Note: All dates below are in the format dd/mm/yyyy

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    "System" Log - error Type
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Journal: "System" Date/time: 01/28/2012 22:48:06
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: "System" Date/time: 01/28/2012 22:47:40
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 01/28/2012 22:35:31
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 27/01/2012-22:49:54
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: "System" Date/time: 27/01/2012-22:37:21
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 27/01/2012-14:32:57
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 27/01/2012 03:38:23
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 25/01/2012-13:53:36
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: "System" Date/time: 25/01/2012-13:32:34
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 24/01/2012 23:35:59
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: "System" Date/time: 24/01/2012 23:21:10
    Type: error category: 0
    Event: 29 Source: W32Time
    The time provider NtpClient is configured to acquire time from one or more time sources, however none of the sources are currently accessible.  No attempt to contact a source will be for 14 minutes. NtpClient has no source of accurate time.

    Journal: "System" Date/time: 24/01/2012 23:21:10
    Type: error category: 0
    Event: 17 Source: W32Time
    Time provider NtpClient: an error has occurred during the DNS lookup of the manually configured peer 'time.nist.gov, 0x1 '. NtpClient will try the DNS lookup in 15 minutes. The error was: a socket operation was attempted to an unreachable host. (0 x 80072751)

    Journal: "System" Date/time: 24/01/2012 23:18:36
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 24/01/2012 02:15:46
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 24/01/2012-12:58:29 AM
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: "System" Date/time: 24/01/2012 00 h delighteth
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: 'System' time: 23/01/2012 23:26:32
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: 'System' time: 23/01/2012 23:26:19
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: 'System' time: 23/01/2012 23:02:41
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: 'System' time: 23/01/2012 18:28:49
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 24/01/2012 23:35:59

    Parameters of scanning has been:

    • System
    • Errors
    • 1-20 errors, valued at twenty.

    What are these errors and they are nothing to worry about?

    I have Nero 8 on this system and have an updated hosts file the running here: http://winhelp2002.mvps.org/hosts.htm

    Not sure, but I may have changed a network setting to activate the new hosts file work properly.

    Seen these errors for a while. system works well and smoothly.  No symptoms of malware or infection seen or found.  I would call these software errors as they seem does not affect the operation of the system.

    XP Home Edition SP3 P4 2.8 2 GB RAM

    Joe

    Oh yes :)

    I have never used the program VEW and don't think I will check it - I just look at the Event Viewer logs the old-fashioned way (manually) if I think that there is a problem, but that might just be the old me.

    It is true that XP Home doesn't have Group Policy Editor, but all policy settings are always available via the registry.

    Some malware will change your GP settings and cause problems.

    I have a little import registry will correct all the ones I know, so if someone has these symptoms, any flavor of XP, they are running, I'll just send the script because sometimes you will be not able to solve the problem, even if you have not the GP Editor.

    The registry always import work - and work well for XP Home or XP Pro.  If you have the symptoms and XP Home, what would you?   Start the import operation of the registry.

    If you're curious, off on my SkyDrive it is a spreadsheet Excel (Group Policy settings) who has all the parameters of GP and where they are in the registry.  I do not recommend start searching, but it is useful to know where things are if there is a problem.

    I would not allow the connection of a security XP stuff unless you think you're being attacked.  More and verbose logging slows things down.  My Event Viewer Security log is empty.

    Find the links to the Microsoft Support Engineer for the most part useless to actually solve a problem (because it help you with your problem), if someone has a question or point of Event Viewer, I usually just send them this:

    To view the logs in Event Viewer, click Start, settings, Control Panel, administrative tools, event viewer.

    A shortcut to the event viewer is to click on start, run and enter in the box:

    %SystemRoot%\system32\eventvwr.msc

    Click OK to launch the event viewer.

    The most interesting newspapers are usually the system and Application logs.

    Some newspapers such as security and Internet Explorer may be completely empty or have just a few items.  The default settings for XP wants do not connect all this activity, unless you need to solve a problem in these areas.  If you enable logging for them the papers fill up quickly and could adversely affect the performance of your system with all the extras (often unnecessary) activity.

    If you have Microsoft Office installed, it has its own newspapers, and they can be empty or occasional boring activity very little or, if there is no problem with your desktop applications.  It's normal.

    Not every event is a problem, some are informational messages that things work very well, and some are warnings.

    However, no event should defy reasonable explanation.

    Each event is sorted by Date and time.  Errors will be red Xs, warnings will have yellow! s.
    Informational messages have white is.  Not every error or warning event means that there is a serious question.

    Some are excusable at boot time when Windows starts.  Try to find only the events to the date and time around your problem.

    If you double-click on an event, it will open a window of properties with more information.  On the right are black up and down arrow keys to scroll through the open events. The third button that looks like two overlapping pages is used to copy the details of the event in your Windows Clipboard.

    When you find an interesting event that occurred at the time of your question, click on the third button at the top and arrows to copy the details and then you can paste the details (right click, paste or CTRL-V) the text in detail here for analysis.  Remove all personal information from your information after you paste If you are forced to do so.

    If you paste an event, it will look something like this annoying system startup event:

    Event type: Information
    Event source: Service Control Manager
    Event category: no
    Event ID: 7035
    Date: 14/07/2010
    Time: 17:54:18
    User: Jose
    Computer: computer

    Description:
    The Remote Access Connection Manager service was sent successfully a starting control.

    To get a fresh start on any log of the event viewer, you can choose to clear the log (the log backup is available), and then reproduce your problem, then just look at the events around your show and troubleshoot events that are happening when you have your question.

    You can search for events on the World Wide Web and get ideas.  It's where people events they see and then to the top of their questions, ideas and solutions:

    http://www.EventID.NET/

    If you find your event in the discussion, the first idea or discussion does not necessarily mean it is the "answer" to your situation, so read through all the ideas to find the one that sounds more like your situation.

  • Question about network vMotion of the Ferguson VCP5 CERT Guide book.

    I'm studying for my VCP5-VTC, and I have a question.

    On page 154, a book that I read, it says network vMotion is a vDS ability but not vs.

    Can someone help me understand what is vMotion network?

    If it comes to vCenter linked mode, this means that the network vDSs are migrated between vCenters when the vCenter fails?


    I thought that most of the work made by the switch hidden on the CDS of the ESXi server that does not migrate anywhere. ?

    Thank you in advance for thinking about my question. I googled 'network vmotion' but most of the responses were in regards to VM vMotion.

    maintain the stats from the network for the movement of virtual machines between hosts

    Sorry I don't have an environment real stats

  • Questions about regular maintenance of the supply service

    Hi - today I received the notice on the subject of the thread - rss health acrobat upcome scheduled maintenance of the supply service.

    A few questions:

    (1) how many times must we expect it in regular maintenance that interrupts the service?

    (2) can ask us, the users, that scheduled maintenance will be moved to less awkward hours? 5 19:00 PST is listening for our company (we do therapy online course, and a lot of people looking our service once they get off work for the day).

    Thank you

    Chris

    Hi Chris,

    (1) majority of our maintenance - as this one night, what happens once a month, without interruption of service maintenance.  An existing session can get an auto-reconnect, but it should be transparent to the end user.  With the health page, our goal is to communicate more, but put you up a good point here, as the ad seems more worrisome than what I have described.  I'll take action to discuss with our operations team, so we are clearer about the experience expected in the future.

    Every now and then, we will need a maintenance resulting in downtime.  And when that happens, explicitly indicated us on the health page and are designed to achieve these during low traffic hours.

    (2) the current offer today Adobe is a service of several tenant, and unfortunately, it is impossible to find a time that works perfectly for all our customers.  At the end of the day, without interruption of service for all maintenance is our goal.  If you need something that is more suited to your needs, the good news is that we now have a partner who can offer the ACC as a single tenant with custom SLA.  If you are interested, please visit http://www.connectsolutions.com/products/lccs/.

    Thank you

    Fang

  • Questions about how to avoid the "while OTHERS"

    Hello

    I am currently teaching myself PL/SQL. I have the script according to which uses SO that OTHERS (not a good thing):
    undef sv_student_id
    
    declare
      v_student_id          student.student_id%type  := &sv_student_id;
      v_total_courses       number;
    
    begin
      if v_student_id < 0 then
         raise_application_error(-20000, 'A student ID cannot be negative');
      end if;
    
      exception
        when others then
          dbms_output.put_line('Got an exception');
    end;
    /
    When I run the above script and enter the value - 10 when prompted, I get the following output:
    SQL> @213c
    Enter value for sv_student_id: -10
    old   2:   v_student_id          student.student_id%type  := &sv_student_id;
    new   2:   v_student_id          student.student_id%type  := -10;
    Got an exception
    What leaves to be desired (like a better message ;))

    The questions are:

    1. How can I get the outer exception to display the error message specified in the raise_application_error instead of a generic message (such as 'Got to exception')?

    2. I want catch exception using something specific, like "when-20000 then" (which does not), instead of the Tote so "than others'.

    Thank you for helping,

    John.

    Published by: 440bx - 11 GR 2 on Aug 14, 2010 08:01 - plural for questions

    1)

    undef sv_student_id
    
    declare
      v_student_id          number  := &sv_student_id;
      v_total_courses       number;
    
    begin
      if v_student_id < 0 then
         raise_application_error(-20000, 'A student ID cannot be negative');
      end if;
    
      exception
        when others then
          dbms_output.put_line('error_code='||sqlcode ||', error_message='|| sqlerrm);
    end;
    / 
    

    2)

    undef sv_student_id
    
    declare
      v_student_id          number  := &sv_student_id;
      v_total_courses       number;
      my_ex exception;
      pragma exception_init(my_ex, -20001);
    begin
      if v_student_id < 0 then
         raise my_ex;
      end if;
    
      exception
        when my_ex then
          dbms_output.put_line('my catch!');
    end;
    / 
    

    and maybe, that

    undef sv_student_id
    
    declare
      v_student_id          number  := &sv_student_id;
      v_total_courses       number;
    begin
      if v_student_id < 0 then
         raise_application_error(-20001, 'A student ID cannot be negative');
      end if;
    
      exception
        when others then
          if sqlcode = -20001 then
          dbms_output.put_line('-20001 message');
          elsif sqlcode = -20002 then
          dbms_output.put_line('-20002 message');
          ...
         end if;
    end;
    / 
    

Maybe you are looking for

  • Why do I get tons of files once I installed Firefox?

    After I installed a Version of firefox I get files and shortcuts.Here is a list:default valuesdictionariesaccessibleMarshalwebapprtUninstallSearchPluginsmodules ofExtensionscomponentsapplicationRed listbreakpadinjectorchrome.manifestcrashreportercras

  • Windows 95 to Windows XP game

    Very well. I tried to launch the Heroes of Might and Magic 2 on my XP computer and it does not work. I also tried the compatibility mode. And then I tried to go into the CD itself and change for compatibility 95 with 256 colors, 640 x 480 resolution,

  • I have been using for many years photo manager.

    I have been using for many years photo manager. He said all of a sudden, I can't access, unless I get a product key. I don't have a product key as it was an upgrade.  How to do this?

  • All Documents and the missing photos after a system restore, what happened, and how can I recover my files?

    HelloAll of my documents and photos are missing after a system restore. Here's the story. A virus called "Windows Recovery" popped up earlier and I did a system restore to get rid of him. To restart the computer, all my files and photos were missing.

  • HP Pavilion Notebook PC g6: Windows 10 free download

    I chose to have the 10 free Windows download.  However, when it came, I read the system configuration required and realized that my laptop probaby did not have sufficient capacity to run the operating system.  I therefore refused the conditions appli