Best way to throw custom error from SubVI

Hi
I was wondering how best to throw error messages from a SubVI.
Say I have a toplvl VI called Caller.vi which calls Sub.vi. The toplvl vi whishes to use the Sub.vi's error out cluster to determine what to do - e.g. halt execution of the toplvl vi if the Sub.vi throws an error. Easy enough if the Sub.vi just have to pass errors from build in LabView functions and VI's, but how to do it if the sub vi has to throw a custom error upon some condition?
Say the sub vi takes a certain number of inputs and that the inputs need validation before executing what ever the sub vi does. E.g. a certain algorithm implemented is only meaningfull if a>10.
My own thought is this: Simply select between an empty/no-error error cluster and an error-cluster containing the wanted custom errorcode and description. The area circled in blue is the interesting part:
Is that the worst idea you've iever seen implemented?
The only other real suggestion I've been able to find (which originally adresses another issue, but shows a method for "throwing an error") is a VI posted in this thread: http://forums.ni.com/t5/LabVIEW/Throw-an-error/m-p​/882575 which looks like:
Please help me out guys How to throw a custom error which is not intended for the end-user, but intended to ease the life of a develper calling the sub-vi if he/she wishes to.
Best regards
Wuhtzu

Thank you tbob. (EDIT: and thank you blawson)
I know all about volunteering and having jobs to do - I participate in quite a few fora. I just thought that my topic was lost since after only 2 days it was on page 3 of the forum - but if page 3 isn't forgotten I will remember that next time and also if 2 days isn't patient I will also remember that
To you answer: The error code should be negative, shouldn't it? Even though an indicator wired to error-out of a build in labview function will actually display error codes as positive... maybe it's diffrent form labview version to labview version. My v2010 manual reads:
"You can define custom error codes in the range of -8999 through -8000, 5000 through 9999 or 500,000 through 599,999"
So say I want to throw an error with error code 5687 - should I then wire -5687 or +5687 to the cluster?
Thanks - Wuhtzu

Similar Messages

  • Best Way to port the data from one DB to another DB using Biztalk

    Hi,
    please suggest best way to move the data from one db to another DB using biztalk.
    Currently I am doing like that, for each transaction(getting from different source tables) through receive port, and do some mapping (some custom logic for data mapping), then insert to target normalized tables(multiple tables) and back to update the status
    of transaction in source table in sourceDB. It is processing one by one.
    How/best we we can do it using  bulk transfer and update the status. Since it has more than 10000 transaction per call.
    Thanks,
    Vinoth

    Hi Vinoth,
    For SQL Bulk inserts you can always use SQL Bulk Load
    adapter.
    http://www.biztalkgurus.com/biztalk_server/biztalk_blogs/b/biztalksyn/archive/2005/10/23/processing-a-large-flat-file-message-with-biztalk-and-the-sqlbulkinsert-adapter.aspx
    However, even though a SQL Bulk Load adapter can efficiently insert a large amount of data into SQL you are still stuck with the issues of transmitting the
    MessageBox database and the memory issues of dealing with really large messages.
    I would personally suggest you to use SSIS, as you have mentioned that records have to be processed in specific time of day as opposed to when the
    records are available.
    Please refer to this link to get more information about SSIS: http://msdn.microsoft.com/en-us/library/ms141026.aspx
    If you have any more questions related to SSIS, please ask it in
    SSIS 
    forum and you will get specific support.
    Rachit

  • Since I believe you can't create a Photo album (book) in Apperature, what is the best way to transfer my pictures from my Apperature Library to iPhoto without loosing any picture quality?

    Since I believe you can't create a Photo Album (Book) in Apperature, what is the best way to transfer my pictures from my Apperature Library to iPhoto (in order to create my book) without loosing any picture quality ?

    Since I believe you can't create a Photo Album (Book) in Apperature, what is the best way to transfer my pictures from my Apperature Library to iPhoto (in order to create my book) without loosing any picture quality ?
    Why do you think that? You can create printed Books in Aperture with similar themes as in iPhoto, and with more options to create custom themes on your own.
    See this page - http://www.apple.com/aperture/what-is.html - scroll down to see the example books.
    But if you prefer the iPhoto themes and layout, you can open your Aperture library in iPhoto, if you have both the current version of iPhoto and Aperture. Simply use the command "File > Open Library in iPhoto" and you can create your book in iPhoto.
    And switch back to Aperture by using the command "File > Open Library in  Aperture".
    See: Aperture 3.3: Using a unified photo library with iPhoto and Aperture
    Regards
    Léonie

  • HT3847 How is the best way to separate copied MP3 from AIFF files in my library?

    How is the best way to separate duplicate MP3 from AIFF files in my library?

    Zice wrote:
    I want higher resolution then afforded in the original download.
    Then why are you converting iTunes purchases?
    You cannot get higher resolution by converting  the original. This goes for converting anything, not just iTunes purchases.
    Creating an AIFF will simply make the file 10 time as large with zero increase in quality.
    Don't really want to debate value of creating the new version.
    Agreed.
    You are simply wasting time and drive space converting iTunes purchases to AIFF.

  • I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    Paragon even has non-destriuctive conversion utility if you do want to change drive.
    Hard to imagine using 3TB that isn't NTFS. Mac uses GPT for default partition type as well as HFS+
    www.paragon-software.com
    Some general Apple Help www.apple.com/support/
    Also,
    Mac OS X Help
    http://www.apple.com/support/macbasics/
    Isolating Issues in Mac OS
    http://support.apple.com/kb/TS1388
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725
    Apple Mac App Store
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store
    How to Buy Mac OS X Mountain Lion/Lion
    http://www.apple.com/osx/how-to-upgrade/
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Mac OS X Community
    https://discussions.apple.com/community/mac_os

  • Got new macbook pro. What is the best way to transfer my itunes from my old pc to my new mac? I want to be able to plug my iphones and ipad in to new mac and have redo anything

    Got new macbook pro. What is the best way to transfer my itunes from my old pc to my new mac? I want to be able to plug my iphones and ipad in to new mac and have redo anything

    See Here... This should transfer everything...
    Move iTunes Library from PC to MAC
    http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

  • Best way to transfer DVD videos from laptop to ipad air

    Best way to transfer DVD videos from laptop to ipad air

    presuming they're not copywriteed commercial dvd's, you can use a program like Handbrake to convert the dvd files to mp4's that you can then import into iTunes and sync to your device.
    If they're copywritted commercial dvd's then you'd have to break the copywrite encoding to transcode the files and since that is illegal in the US no one here can help you with that.

  • I bought CS6 extended yesterday (yes i did). I have CS4 and lots of photo's in bridge (tagged with keywords). What is the best way to get my photos from bridge cs4 to cs6? Is there a guideline how to go about so I don't loose any of my photos/keywords? Wh

    I bought CS6 extended yesterday (yes i did). I have CS4 and lots of photo's in bridge (tagged with keywords). What is the best way to get my photos from bridge cs4 to cs6? Is there a guideline how to go about: so I don't loose any of my photos/keywords? Who can help?

    The Bridge General Discussion can give you the specifics of transferring your information over to Bridge CS6.

  • What is the best way to make a DVD from iMovie

    What is the best way to make a DVD from iMovie?
    I am using iMovie 06 (Naturally) with iDVD 08. I have always used;
    iMovie 06, File > Share to iDVD 08. And got pretty good results.
    Some say the best way is to quit iMovie 06, open iDVD and import the movie from the Media button.
    I have tried both methods in the results look the same. I'm interested in getting the very best quality possible.

    You likely have one of the most expensive media converter boxes on the market today.
    But does it work well with most macs? (my guess is that it does). But more specifically can it "handshake" with an intel based mac? I personally haven't tried it.
    But you may want to read this for yourself if you haven't already:
    http://discussions.apple.com/thread.jspa?threadID=1179361&tstart=2362
    Assuming it works then the best format is .dv which this unit will support apparently.

  • What is the best way to completely uninstall Aperture from a MacBook Pro?

    What is the best way to completely uninstall Aperture from a MacBook Pro.
    I just ordered a new MacBook Pro and I want to remove it from my older MacBook Pro.

    Deleting the application from your /Applications folder is sufficient. There are sample projects in /Library/Application/Aperture you may want to get rid of as well, as they take up a fair bit of space.

  • What is the best way to filter an IP from being blocked?

    What is the best way to filter an IP from being blocked by a false positive? Event Action Filter?

    I'll assume you really mean "blocked" as opposed to "denied". You can either create an event action filter and subtract the blocked action, or you can add the address to the "never block" addresses.

  • What is the best way to call a report from within a report

    What is the best way to call a report from within a report(master / Detail concept)
    A type of drill down report
    Oracle Database 10g
    Forms 10.1.2.0.2
    Report Builder 10.1.2.0.2

    Hi
    Have a look in this link, certainly you will get fix, if not just post a comment on blog, will get reply soon
    http://windows7bugs.wordpress.com/?s=oracle+10g+bug

  • What is the best way to export a cutterline from photoshop?

    What is the best way to export a cutterline from photoshop?
    Wie exportiere ich am am besten einen Schnittlinie aus Photoshop? Ich bekomme von einem Wort immer nur den ersten Buchstaben exportiert, obwohl alles gerastert auf einer Ebene liegt.
    Thank you! Vielen Dank!

    What are you talking about exactly?
    If you need to export vector data Photoshop is not the first choice but if you have Type Layers (without faux styles), Vector Masks or Paths it is possible.
    alles gerastert auf einer Ebene
    does not seem to make sense in this context though.

  • What is the best way to email a video from iPhoto? It won't let me share a video!

    what is the best way to email a video from iPhoto? It won't let me share a video!

    Size is not the issue. In the old iPhoto you used to be able to share a video and it would compress it to fit an email friendly size. It doesn't do that anymore from iPhoto. I miss that feature. I have to export the video from iPhoto to my desktop then take into the old Quicktime 7 to share in email. Crazy.
    It shouldn't be that complicated. I shouldn't have to find a work around. I guess apple wants to put  you in a box so you have to do it "their way" via uploading to iWeb or iCloud instead of emailing video.
    I don't like those options being taken away.  While the quality may suffer by compressing for email, it is still the most direct and unconvoluted way of sharing something fairly quickly. I don't want to have to post to YouTube or Vimeo or iCloud and send a link. Just compress the video and hit send in an email and be done with it.

  • HT1338 best way to extract a video from a website?

    what is the best way to extract a video from a website? THANKS!

    how bout a bit more thought on this one, some people are trying to pull a video clip from their 15 seconds of fame on channel 7 news,
    or perhaps a short intro video clip, on a site they own becuase it is playing as flash. since they never had hard copy of the video clip, its difficult to ask themselves for permission, if they don't know how, which is, i'm sure, why this fellow did indeed ask.
    no such thing as dumb questions...just helpful ones that others may also wonder.

Maybe you are looking for

  • How to capture JPEG files by using camera

    Hi, now I have a problem, I need your help, I am trying to use a camera that capture JPEG files from camera, I have used those related classes(JMF), but I still can not capture any JPEG files from it. Although there are some examples about the video

  • Data retraction from BW to R/3

    We have a simple requirement. Please help me with this 1> We have a workbook based on 3 quires which are based on a multiprovider. 2> The BEx report is generated with different logics as per requirement 3> Currently we are saving the report as csv fi

  • CIFS : cache error messages

    Hi, cifs.log shows the following messages whenever a user renames a directory from a Windows 7/Mac client (1), or access his home directory from a Mac client (2). (1) May 20 16:58:15 hec5 CIFS[11203]: EVENT: RPC: Received rename event for volume: SAV

  • Cannot load old tabs

    I have 60 tabs that I wish to open upon startup, but after updating firefox it will simply not load any of the websites. Tabs are opened, but they cannot connect. It simply gets stuck when trying to reach the websites. It worked just great before upd

  • ITunes Update: Cannot Locate iTunes.msi

    I am currently attempting to update my iTunes to the most recent version (I believe it is 10.5.11). However, I am currently stuck due to a popup during the installation process which states that I need to locate the "iTunes.msi" file. If I press canc