Same error cluster for different instrument drivers?

Hi All...
mz question is regarding error cluster wiring for different instrument drivers. As u can see from attached file, i have 3 different devices with drivers. At the beginning i initialize and configure each one by wiring adresses and error clusters individually. After that i want use measruement vi's with an order. That s why I would like to use same error cluster for those 3 different measurment drivers as illustrated in the picture. is it possible?
second question is that at the beginning in the initializing process, i do not set any order of those 3 devices. VI would try to initialize all of them at the same time which is not possible due to serial GPIB? Do i need to determine any sequences of initializing of devices?
thanks
Attachments:
vi scheme.JPG ‏19 KB

Your sceme is fine. The error cluster is a generic container to pass any error that can occur from one function to the next. Normally, if a function has it's Error In terminal connected and an error is passed in from a previous function, that function will not do naything except pass the error through so it can be handeled in you code.
Since your running on serial, just "serialize" your initialization functions using the error cluster to set the order. This way only one will be running at a time. It doesn't matter what order.
Ed
Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

Similar Messages

  • Same error code for two different errors

    I have a simple state machine with a few states, two of which are read ini file and read GPIB data. I also have an error handling state where I would like to handle all errors. Errors are checked for on each iteration of the loop, passed by shift register. However, I can't just unbundle the error cluster and wire the error code to a case structure because if the ini file doesn't exist (error code 7) I want to exit the program. But if I get error 7 from the gpib (Nonexistent GPIB interface) I want the program to continue running. What is the best way to track where the error is coming from so I know how to handle it when two error codes for different errors have the same error code value?
    Message Edited by for(imstuck) on 01-27-2010 03:47 PM
    CLA, LabVIEW Versions 2010-2013

    Another option is to check the existence of the file before opening the config file, then exit the program if nessecary. Relying on error codes might be a bad option.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Same preparedstatement object for different queries.. ?

    Actually I m getting same preparedstatement object for many queries in a for loop..In this scenario its not working properly..Suppose like dis..
    connection con.setAutoCommit(false);
    PreparedStatement prepStmt = con.prepareStatement(
    "UPDATE DEPT SET MGRNO=? WHERE DEPTNO=?");
    prepStmt.setString(1,mgrnum1);
    prepStmt.setString(2,deptnum1);
    prepStmt.addBatch();
    PreparedStatement prepStmt = con.prepareStatement(
    "UPDATE EMP SET EMPNO=? WHERE DEPTNO=?");
    prepStmt.setString(1,empno1);
    prepStmt.setString(2,deptnum2);
    prepStmt.addBatch();
    Whether we can take same preparedstatement object for different query..??Its not giving any error but its not updating all the records but only the last one...
    Any solution..

    kriti123 wrote:
    Actually I m getting same preparedstatement object for many queries in a for loop..In this scenario its not working properly..Suppose like dis..
    Ignore all of the above.
    You are using a batch.
    There is a specific idiom for that. You create the statement once and then keep calling the appropriate methods on it to load and then execute the batch, and check errors.
    When done you close it. If you need commit you are going to need to deal in blocks.
    If you have a large volume of data then database import tools are very likely to be substantially faster.

  • Can i use the same email address for different users?

    we are a small department with one email address, can i use the same email address for different users?

    No. Each user needs to have his unique ID.
    Mylenium

  • Is it possible to have same file size for different dpi?

    I changed one.TIFF file (300dpi, 1024X1332)  to .jpg files of four different dpi. But when I checked the four result jpg files, I found out that they are all in same file size and quality.( I also have checked the property of the files in the Windows.)
    I think more DPI means more data and more file size. Am I wrong?
    I use Photoshop CS 5.1(64bit, WINDOWS) - which is part of my Adobe Master Collection CS5.5.
    TIFF(300dpi, 1024X1332) ->
    1. JPG(72dpi, 1024X1332) : 306KB
    2. JPG(108dpi, 1024X1332) : 306KB
    3. JPG(144dpi, 1024X1332) : 306KB
    4. JPG(600dpi, 1024X1332) : 306KB
    I tested a few times more with different files. and same result comes out.(same file size for different dpi)
    Thanks in advance.

    Yes absolutely. Great observation.  PPI does not control the number of pixels, just how big they are.
    Now, if you change the PPI in the Image Size dialog with Resample checked.. then, that is a different story. In that case you will be changing the pixel dimension of an image (i.e.,changing the total number of pixels making up the image) while keeping its print size.
    In your test files, you will notice all the print sizes are different, because all you were telling Photoshop to do was change the size of the pixels (if or when the image is ever printed), which is really just a bit of metadata of the file.

  • Can we use same number range for different  fields

    can we use same number range for different  fields. how can we see the number range defined for a particular field

    Hai,
    Yes you can have same number range for different fields  by using the same domain to the data elements that are user to your two fields.
    To see the range:
    Go to SE11,Type table Name open it-->double click on the DataElement adjasent to the field name ,You will get Domian ,Double click on Domain You will get Domain.There See Value range option .Value range cam also be defined by Value Table which will also at the Doamin level.
    <b>Reward points if it helps you.</b>
    Regds,
    Rama.Pammi

  • The same output message for different partner roles

    Hi All,
    Is it possible to create automaticaly in PO the same output message type ( for example - 'mail') for different partner roles( for example - 'VN' and 'OA') ?
    If it's possible,then how?
    Thanks.
    Liza

    Hi,
    Thank you ,but I have a next problem:
    When I  tried in transaction mn05 to add second record for the same output type for other  partner roles.
    I got error message "The condition record entered already exists".
    Regards,
    L.

  • Issues of using same enhancement set for different components

    Hi experts,
    I have an issue when using the same enhancement set(ZCRM_EHSET) for two different components IUICMD & IUICMRD. Component IUICMRD has two views IUICMRD/MainVS & IUICMRD/MeterReading and these views have been copied to Component IUICMD.
    Now, i am getting the following error, when i try to access AccountSearch view of component IUICMD
    Context initialization failed in view IUICMRD/MeterReading of UI Component IUICMD
    An exception has occurredException Class CX_SY_MOVE_CAST_ERROR - Source type \CLASS=CL_IUICMD_BSPWDCOMPONENT_IMPL is not compatible, for the purposes of assignment, with target type \CLASS=CL_IUICMRD_BSPWDCOMPONENT_IMPL
    Method: CL_IUICMRD_METERREADING_IMPL=>DO_INIT_CONTEXT
    Source Text Row: 10
    Let me know how i can solve this. Is there any precautions that i should have taken before using the same enhancement view for two different components.
    Thanks in advance.......................
    Regards,
    Prabahar

    Hi Bharathy,
    Thank you for the reply which helped me to come close to the solution.
    I hope you reply will solve the second part of my question where i get MOVE_CAST_ERROR.
    My first Question is still unanswered and i request you to provide solution if you have any. I worked on CRM 4.0 and CRM 2007 is new to me.
    My first question is below.
    I have two components IUICMD & IUICMRD. I have enhanced 4 views in the first component IUICMD using enhancement set ZCRM_ENHSET. There is no problem with that. But when i try to use the same enhancement set ZCRM_ENHSET for enhancing the second component IUICMRD, it's enhanceable in enhancement set.  But 2 views IUICRMD/Meterreading & IUICMRD/MainVS is also copied to first component and available as enhanceable views in First component.
    Is it the std behaviour that views from one component is copied to other when you try to use the same enhancement set? Kindly let me know if you faced similar situation.
    Best regards,
    Prabahar

  • Message-Mapping: Use same RFC lookup for different target fields

    Hello,
    I need to apply an RFC Lookup which delivers a boolean flag back (true or false). This RFC lookup should be used for different target fields.
    Is there a way to execute the RFC lookup just once and then store the result in an internediate variable that I can use for all futher checks for different target fields?
    If this is not possible and I have to apply the RFC lookup for all necessary target fields is it then executed for each target field ? This is exactly what I want to avoid in order not to slow down performance.
    The input parameter (=source field value) would be the same.
    Thank you for your advice!

    Exactly.
    Here is a UDF example I have that you could adapt to your needs.
    Set
    public String setCounter(String a,String b,Container container){
    /* Store values in global datacontainer
    a: mapping value and return valueparameter
    b: name for stored value parameter
    GlobalContainer myGlobalContainer;
    myGlobalContainer = container.getGlobalContainer();
    myGlobalContainer.setParameter(b.toUpperCase(), a);
    return a;
    Get
    public String getCounter(String a,Container container){
       //write your code here
    GlobalContainer gc = container.getGlobalContainer();
    if (gc.getParameter(a) != null) {
      return String.valueOf(gc.getParameter(a));
    } else {
    return "1";

  • Same batch number for different order materials

    Hi, pls advise can we assign same batch no's for different production order finished products?

    Yadav,
    Yes, it is possible to assign the same batch number to different production orders in the Order Goods Reciept tab.  If you are not maintaining any batch in this field then you can manually create a batch in MSC1N and use the same when making GR using MB31 or MIGO.
    Regards,
    Prasobh

  • I get the same error message for QuickTime

    I went on www.vzwpix.com to view a video someone sent me. When I clicked to play it I received the following message: “This content requires the QuickTime® Plugin. Download QuickTime® Player?”
    When I clicked yes, I was sent to your website and asked to download QuickTime 7.1.6 for Windows 2000/XP which I did but when I return to www.vzwpix.com I get the same error message when I try and play the video. I have even rebooted my computer and it still occurs.
    Am I downloading the right program?
      Windows XP  

    Hi there,
    Jacumba is right.
    The problems are actually Flash movies.
    This is what you need to do:
    Go into the QuickTime area of QT System Preferences, and in the Advanced tab look at the Mime settings (at the bottom). Under Miscellaneous is Flash media, that should not be checked, so click to make the square appear white. QuickTime can only really handle Flash 5 or earlier movies, and Flash is currently on v9.
    The other Enable Flash box you saw is specifically to do with Flash tracks that are inside QuickTime movies already. You're given the option to turn that off because of potential, though unlikely no doubt, security issues.
    You may need to log out and back in again for the changes to take effect.

  • Different execution plan for same query but for different condition value

    Hi All,
    I'm facing a strange situation where same query for different condition not working.
    1--
    Select  top 10 * from revenuefact(nolock) 
    where feecode ='OW4'
    2--
    Select  top 10 * from revenuefact(nolock)
    where feecode ='BTE'
    1st query is returning result easily but 2nd query is taking too long. Column
    feecode has already Non-clustered index and Clustered index is also available for another col RevenueSID.
    I was surprised when checked the query execution plan for both the above queries  which is quite different (as per attached below). Can anyone suggest me the reason behind it.
    And solution for the same. One more thing that data for feecode BTE is inserting through different source instead of others feecode and table contains more than 300 million rows.

    When I speak with people inside Microsoft who work with the optimizer, the refuse to accept the work "bug" when a query produces the correct result, but with a suboptimal plan. They prefer to use the word "limitation".
    The limitation here is that when the optimizer compares two plans, it only looks at the estimated cost. As far as I know, it does not perform any analysis from the perspective "what if the statistics are wrong"? They do provide the hint OPTIMIZE
    FOR UNKNOWN, but that does not work then there is a constant as in this case.
    The optimizer will surely distinguish between TOP 10 and TOP 10000000. With the latter, you have all reason to expect a Clustered Index Scan no matter which value you search for - unless you pick a value for which the histogram indicates that there are no
    rows.
    Interesting enough, I was able to reproduce the situation in my Northgale database, which is an inflated version of Northwind, and where statistics should be accurate.
    SELECT TOP 10 * FROM Orders WHERE EmployeeID = 8
    results in a CI scan, and so does also EmployeeID = 7, and even 5. There are only 2292 rows out of a total of 344305 rows. If I try EmployeeID 808 for which there are 1797, the optimizer goes for the index seek.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • TS3999 PUtting multiple entries in the same calendar spot for different people, locations?

    Using icloud calendar to track my mtgs and meeting space reservations.  Once I enter my appt, I can't put the SAME appt in the same spot, for other managers' calendars, or the meeting space, without creating each as a mtg at a differnt time & then correcting that?  Because it doesn't seem to let me work in a space that is already "occupied"...  Help!

    Delete all Locations and use Automatic.
    When you enter the password for each sub-node, OS X remmebers it, so if you travel it just connects to the next sub-node.
    Locations is used for different networks with totally different setups, not just passwords.

  • "I am looking for LabVIEW instrument drivers for a PTS 160 Frequency Synthesizer

    looking for instrument driver for PTS 160 Frequency Synthesizer

    "Unfortunately I was unable to find a driver for this instrument at http://ni.com/idnet. This leaves you with one of a couple options. It may be possible to modify an existing driver to work with this instrument. Otherwise, http://www.ni.com/devzone/idnet/other. htm states a few options to obtaining a driver. NI only writes drivers for standalone instruments in the eight IVI classes(DMMs, Scopes, Function Generators, Switches, Power Supplies, Power Meters, RF Signal Generators, and Spectral analyzers) that communicate via GPIB, Serial, or TCP/IP, so a driver cannot be written for your instrument. It would also be beneficial to notify the instrument manufacturer, they often have drivers for multiple programming languages. If they do not, you may want to hire an
    Alliance Member to write an driver for you.
    Alliance Member Directory
    http://www.ni.com/alliance/ alliance_member.htm"

  • I am looking for LabVIEW instrument drivers for Audioprecision test equipment. It looks like you do not support any Audioprecision intruments?

    I also do not see any support for Keithley 2420 Sourcemeters.

    Hi Kristen,
    If you search www.Keithley.com you will find an instrument driver for the 2420 device. Go to the "downloads" section and search for 2400.
    I am not sure what you mean by Audioprecision instruments. If you had a specific driver in mind, I would check with the instrument manufacturer. Often times they develop and support the drivers since they know the instruments far better.
    If you do not see the driver on their website, please submit a request at http://zone.ni.com/idnet97.nsf/instrumentdriverrequest/ and with the instrument manufacturer.
    We develop drivers based on demand and popularity so the more requests we have for it, the greater the possibility that we will develop one.
    If you would like to try developing your own instrument driv
    er (or modify the existing one), we have documentation, model instrument drivers, and driver templates to help at:
    http://www.ni.com/devzone/idnet/development.htm
    Hope this helps out!
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

Maybe you are looking for

  • Adobe reader iOS app error "A system error was encountered."

    Hello everyone, I am using Adobe Reader app for my iOS device. The app is throwing an error "A system error was encountered."  whenever I highlight any word/sentences in the pdf file and the pdf file closes automatically and all the highlights/strike

  • Crystal report parameter asking for DB login

    Hi All, I have created a crystal report in 2008, in my crystal reprot i have a command which gives me 2 columns and a stored proced which give me 6 columns and then i joined them in link tab. Now in my report i have created a parameter using one the

  • Is there a "slim" effect Motion(5)

    I've seen some (older) movies and especially credits filmed with a narrowing effect and wondered if it was possible with motion. And while I'm at it, what about a saturated/technicolor(?) effect? Sorry, complete novice that hasn't yet purchased Motio

  • Tiles insert on condition

    I need to insert one of the 3 pages via tiles depends on condition. I use solution found on this forum and it works fine but as you can see it's not clean as it should be. Is there a way to do this without jsp code but with pure jsf + tiles. I tried

  • Query is counting twice

    Hi all, i loaded a cube, this bring 2 records FROM  a ODS for example Char     KF    A          1 A          -1 in the query the result is Char      KF    A            2 Why did this happen?, the result must be 1, the -1 must be omited, i dont know w