Using a Zero Up device

Hi
IM using a number of Zero up power suppliers throw a Zero up controller connected by GPIB.
since I have to read different channels of the controller IM using the attached VI and initializing the communication each time.
the problem is that every now and then the initialize VI gives me the following error:
<ERR> nlZUP Initialize
The ID Query failed.  This may mean that you selected the wrong instrument or your instrument did not respond.  You may also be using a model that is not officially supported by this driver.  If you are sure that you have selected the correct instrument and it is responding, try disabling the ID Query.
what should i do??
thanks
Shai  
Attachments:
ZUP read.vi ‏21 KB
nlZUP.llb ‏561 KB

There is no reason to initialize/close every time. That's just a waste of time. The VISA session will remain available until you explicitly close it or you close out of LabVIEW. How are you running this VI? Are you using the "Run Continuously" button? If so, stop. That button should not be used that way.
The error is being generated with the  "nlZUP chechInstrumentType" VI. That VI is fed a string from the "nlZUP setPSAddress" VI, and is fed the result of the ":MDL?; " command. My guess is that sometimes you're not getting the right string returned. This could be a communication error, or perhaps the instrument is busy, and the wait time for the response is too short. As I said, unless you're physically changing the instrument on the fly while the VI is running, there is no point in always asking what kind it is.

Similar Messages

  • AutoSize not working properly in TextField when using non-zero line spacing

    When using non-zero line spacing, the autoSize property is not functioning as expected, causing text fields to scroll that shouldn't.  Also, when using device fonts, the sizes of the TextFields are wrong in the Flash IDE.
    I have a TextField whose height is supposed to be dynamic, depending the width of the TextField.  wordWrap is true, the text is left aligned, and the autoSize value is flash.text.TextFieldAutoSize.LEFT.
    When the TextField's width is adjusted, the height increases or decreases as expected, but when I scroll the mouse wheel over the TextField, it allows a single line to scroll out of view.  This should not be happening.  The autoSize property should ensure the TextField is large enough to neither require nor allow scrolling.
    Has anyone else encountered this issue or know how to fix it?
    Update: Been a problem since at least 2006! > http://blog.nthsense.net/?p=46
    http://www.kirupa.com/forum/showthread.php?288955-Disabling-textfield-scrolling   Bug is caused by using a line height ("line spacing" in Flash) larger than zero, for example 1.0pt.  It looks like when I reduce the line spacing of the text field to zero, the issue goes away.  There doesn't seem to be anything wrong with how autoSize is calculating the required height of the text (i.e. it is exactly textHeight + 4 pixel gutter, and drawing the rectangle (2,2,textWidth,textHeight) aligns visually with the text), so it must have to do with how the TextField is deciding whether it needs to scroll or not, and that separate calculation is being thrown off by the non-zero line spacing.  The additional non-zero spacing at the end of the last line could be making the TextField think it needs to scroll, even though it's hight is sufficient at "textHeight + 4".  Apparently the problem manifests when using a non-zero leading value as well.
    In fact, it has to be related to the leading value exactly, since the following code stops the textfield from scrolling.
    //body is TextField
    var tlm:TextLineMetrics = body.getLineMetrics(body.numLines - 1);
    trace(tlm.leading); //traces "1" here.  traces zero when line spacing is zero, and traces larger values with larger line spacing values
    body.autoSize = flash.text.TextFieldAutoSize.NONE; //turn off autosize so the height can be set manually
    body.height += tlm.leading; //increase height of textfield by leading value of last line to cause scrolling to be turned off.
    Honestly, this is pretty unacceptable bug.  First of all, scrolling should not be sensitive to trailing line spacing, because autoSize and textHeight do not include it. It need to be consistent, and I think textHeight and autoSize setting height = textHeight + 4 is correct.  Vertical scrolling should use textHeight as it's guage for whether scrolling is necessary, but instead, it's obviously involving the leading values of the last line.  At the very least, vertical scrolling should simply be disabled when autoSize is turned on and wordWrap is true, because the TextField should be big enough to fit all the text.  The workaround of manually adjusting the height is also no good, since turning autoSize back on will immediately change the size back and trigger scrolling again.  I also shouldn't have to set line spacing to zero just to use the autoSize feature, since the scrolling calculations are wrong in this way.

    No, lol.  Luckly, I replace most of my TextFields on the display list with my subclass TextFieldEx.  I just call a clone method that accepts a TextField and returns a TextFieldEx with identical properties.
    I corrected the problem via modifying the subclass to behave differently when autoSize is not NONE and wordWrap is true.  Under those conditions, the maxScrollV and scrollV property values are fixed at 1, and the class listens for its own SCROLL event and sets scrollV to 1 when it occurs.  That allows me to leave everything else alone, including text selection, and use whatever line spacing I want.
    The modification seems to work fine so far.
    For anyone interested in doing something similar, here is a clone method that will copy a TextField.
    public static function clone( t:TextField ):TextFieldEx
                                  var te:TextFieldEx = create( "", t.width, t.type, t.multiline, t.wordWrap, t.selectable, t.embedFonts, t.defaultTextFormat );
                                  te.alpha = t.alpha;
                                  te.alwaysShowSelection = t.alwaysShowSelection;
                                  te.antiAliasType = t.antiAliasType;
                                  te.autoSize = t.autoSize;
                                  te.background = t.background;
                                  te.backgroundColor = t.backgroundColor;
                                  te.blendMode = t.blendMode;
                                  //te.blendShader = t.blendShader;
                                  te.border = t.border;
                                  te.borderColor = t.borderColor;
                                  te.cacheAsBitmap = t.cacheAsBitmap;
                                  te.condenseWhite = t.condenseWhite;
                                  te.displayAsPassword = t.displayAsPassword;
                                  //te.embedFonts = t.embedFonts;
                                  te.filters = t.filters;
                                  te.gridFitType = t.gridFitType;
                                  te.height = t.height;
                                  te.opaqueBackground = t.opaqueBackground;
                                  te.restrict = t.restrict;
                                  //te.selectable = t.selectable;
                                  te.sharpness = t.sharpness;
                                  te.thickness = t.thickness;
                                  te.transform = t.transform;
                                  //te.type = t.type;
                                  te.useRichTextClipboard = t.useRichTextClipboard;
                                  //te.wordWrap = t.wordWrap;
                                  //Assign text last
                                  te.htmlText = t.htmlText;
                                  return te;
    //And the create method it uses
    public static function create( text:String = "", width:Number = NaN, type:String = null, multiline:Boolean = false, wordWrap:Boolean = false, selectable:Boolean = true, embedFonts:Boolean = false, font_or_textformat:*=null, size:Object=null, color:Object=null, bold:Object=null, italic:Object=null, underline:Object=null, url:String=null, target:String=null, align:String=null, leftMargin:Object=null, rightMargin:Object=null, indent:Object=null, leading:Object=null ):TextFieldEx
                                  var tf:TextFieldEx = new TextFieldEx();
                                  tf.width = isNaN(width) ? 100 : width;
                                  tf.defaultTextFormat = (font_or_textformat is TextFormat) ? (font_or_textformat as TextFormat) : new TextFormat( font_or_textformat as String, size, color, bold, italic, underline, url, target, align, leftMargin, rightMargin, indent, leading );
                                  tf.embedFonts = embedFonts;
                                  tf.multiline = multiline;
                                  tf.wordWrap = wordWrap;
                                  tf.selectable = selectable;
                                  tf.type = type;
                                  tf.text = text; //setting text last ensures the text line metrics returns correct values
                                  //Initialize the TextField's size to fit the text.
                                  if (!multiline)
                                            //When in single-line mode and no specific width is given,
                                            //expand width to entire line.
                                            if (isNaN(width))
                                                      tf.width = tf.textWidth + 4; //match width of text
                                  //Height is always automatically adjusted to fit the text by default.
                                  //It's better than the arbitrary 100px default height.
                                  var minimum_height = tf.getLineMetrics( 0 ).height;
                                  var h:Number = tf.textHeight;
                                  tf.height = (h < minimum_height) ? (minimum_height + 4) : (h + 4); //match height of text, ensuring height is at least enough to display one line, even if there is no text
                                  return tf;

  • SF300 and using Subnet Zero and All-Ones Subnet

    Anyone have experience using Subnet Zero and the All-Ones Subnet on the SF300 series switches?
    We have a scenario which we are using an SF300 as a Gateway Device.  We have a /29 broken up into two /30 subnets.  We have two routers which need to be isolated from each other, but use the same Internet service/circuit.
    We are in need of adding a third router which needs to be isolated from the other two. After requesting additonal IP addresses, our provider has claimed we need to use the Subnet Zero and All-Ones Subnet to make effecient use of the IP's which will ultimately give us the additional IPs we need.
    I am not familair with thsi practice or setup. Can anyone provide insight and/or if the SF300 series supports this?

    Hi Brian, this switch will not support an all-one subnet mask.
    -Tom
    Please mark answered for helpful posts

  • Using iOS5 on multiple devices

    hi Forum
    Is there a view on how to use iOS5 on multiple devices when multiple devices are owned by differing family members? i have an iPhone, my partner has an iPhone, and together we have an iPad. [i have a MBP as well but havent updated to Lion yet, dont knwo if this is part of this question]. iOS5 can sync to multiple devices so can we sync all apps and musc between the mobile devices? do they have to be on the same apple user ID? of have i got that wrong?
    also contacts and photos wise, we both have our own photos, contacts, calendar and mail. can any/all of these be syncd between us all? i guess the one that would be syncd would be photos as youd want to see that on the ipad.
    Andi

    The iTunes account and iCloud accounts are not linked on your devices.
    So you can each have an iCloud account that works on your iDevices nd all be logged into the same iTunes account in the iTunes Store, App Store, IBooks, etc.
    You do really need your iMac to be on 10.7.2 as it was a requirement before you moved to iCloud, did you lie when asked the question "are all your devices ready for iCloud".

  • I bought my ipad 2 from a friend I am trying to connect to my itunes on my computer and it will not recognize it. It keeps telling me that IPad cant be used because apple mobile device service is not started. can you help

    I bought my IPad 2 from a friend. I have reset to clear all of his information out. I am trying to connect it to my computer to sync my itunes and I keep getting the message that my IPad can't be used because Apple Mobile Device Service is not started can anyone help with this?

    I cannot find "Other" devices. I found Apple Mobile Device under Universal Bus Controllers but cannot see "recovery mode" or any other status. I use Windows Vista.
    When I try to restart Apple Mobile Device Service I get the following message: "The Apple Mobile Device Service on Local Computer started then stopped. Some services stop automatically if they are not in use by other services or programs". What does this mean?
    During the last 48 hours I was able to see my iPad in iTunes only one time during many attemnpts to connect . I haven't been able to see it during the llast several attempts.
    Any suggestions? The standard suggestions have not worked: i.e. stop then start AMDS; tuurn off iPad and PC, then restart both and reconfrom iPad to PC; reload iTunes.

  • First off, i think it's sad that i have to use my non apple device to post this question... Why has my iPad become absolutely useless after updating to iOS 8.1? I am unable to use my mini because it crashes, slow performance, major battery drain.

    First off, i think it's sad that i have to use my non apple device to post this question... Why has my iPad become absolutely useless after updating to iOS 8.1? I am unable to use my mini because it crashes, slow performance, major battery drain.

    Restore iPad to Factory Default; do not restore from backup. It may be the cause of the problem.
    Settings>General>Reset>Erase all content and settings

  • Since the iOS7.0.2 update to my iPhone 4S, I can no longer choose use of my Bluetooth device if using the power cord to listen to MUSIC or answer my phone (choice of powercord as 'dock,' speaker,

    Since the iOS7.0.2 update to my iPhone 4S, I can no longer choose use of my Bluetooth device if using the power cord to listen to MUSIC or answer my phone (choice of powercord as 'dock,' speaker, & phone only).  Was this former-feature now an oversight??  I'd really appreciate having my Bluetooth once again listed as a choice of  audio option.  Especially considering the battery life is not what it was prior to this update, and requires recharging often.

    Sorry to tell you but unless you have a Retail Apple Store close by, they are the only ones I have found with all the adapters and accessories. I bought an extra lightning to usb adapter the other day to use in my truck. Good luck....

  • Where can I find an adapter that will let me use my firewire 800 devices with a thunderbolt only ported macbook air?

    Been looking for a way to use my firewire 800 devices with my macbook air - which has only usb and thunderbolt ports.  I've seen internet pages for an adapter from sonnet but have not found anywhere to actually purchase such a thing.  Would love to be able to at least try to use the thunderbolt port - for something - or trade the thing in for something with present day usable firewire 800 ports.  Is this thunderbolt technology already getting shelved?  I see like 5 items on the market that actually use this port...  really?  That's it?   Thank you for any guidance!

    Sonnet has an TB-capable expresscard adapter.
    http://store1.sonnettech.com/product_info.php?products_id=392
    FW800 Expresscard
    AND
    TB cable sold seperately

  • We have a large family, 5 kids and two adults all with iPads, iPhones, Mac Books, Servers....  How can we combine our purchases to use on all our devices.  We have two Apple ID's and sometimes buy multiple copies because of how we are limited...

    We have a large family, 5 kids and two adults all with iPads, iPhones, Mac Books, Servers....  How can we combine our purchases to use on all our devices.  We have two Apple ID's and sometimes buy multiple copies because of how we are limited...

    Hello Halfback71,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/ht5622
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.
    Best of luck,
    Mario

  • HT201257 hardware test using an external optic device (iMac) on macbook pro 9 years old via firewire. What to do? and how to do it?

    hardware test using an external optical device (iMac) on macbook pro 9 years old via firewire. What to do? and how to do it?
    I thiunk the graphic card is defective and need to run hwt

    You don't.
    Need a internal optical drive and the Hardware Test on disks is old and outdated anyway.
    Your machine has lasted a long time, congratulations, they usually only last about 4-5 years.
    They get clogged up with dust and overheat, kills the video card, there is nothing you can do as it's hardware damage over time.

  • I have 2 iphones, 1 personal and 1 business.  I thought I was supposed to have 2 separate itunes accounts.  I now have a work ipad and want to only have 1 itunes account that I can use for all 3 devices.  How do I cancel 1 account or just combine the 2?

    I have 2 iphones, 1 personal and 1 business.  I thought I was supposed to have 2 separate itunes accounts.  I now have a work ipad and want to only have 1 itunes account that I can use for all 3 devices.  How do I cancel 1 account or just combine the 2?

    I want to be able to transfer my apps from my original itunes account that I have on my personal iphone 3 and work ipad 3 to my work iphone 4S ,as well as purchase more more apps for the work iphone with the original itunes account.  Plus I need to sync all 3 of them with my work tower computer.  I really appreciate you're trying to help me out.

  • HT1589 Can I use more than 1 device ie iPod and iPhone on the same iTunes account and have different music on them

    Can I use more than 1 device ie iPod and iPhone on the same iTunes account and have different music on them

    Yes. Use the option to sync with selected playlists on the music tab when your devices are connected.
    tt2

  • How to use more than one device under same apple ID?

    How do you you use more than one device under same apple ID? say for facetime?

    You don't. One Device and one Apple ID.

  • Can I use US purchased Airport devices in the UK?

    Well, I got the news yesterday and I'll be moving to the UK in September for a minimum of three years. While I've a world of things to plan, I know that I'll be taking my MacBook Pros and iPods and will be buying another "Apple World Travel Adapter Kit" only for the MBPs (as they're such good fit and I know I was able to use my PowerBook in London so I'm supposing the same of my MBPs? And possibly even dole out the cash for two of the same for my iPods?) but I notice that the description says nothing about Airport Extremes and Expresses.
    As I don't really know exactly how long I could be staying (3 years until...?), I'm thinking I'll just sell a good deal of what I own, ship what I can't live without, and buy new (or used) furniture and electronic/computer gear... but will I need to buy new Airports? Will it depend on the type of broadband service that I choose (as I notice several that offer 'wireless' service - which I assume is simply their wireless routers paid for in the monthly subscription fee?
    I think (but am not certain) that my cable/broadband/phone service will be through Homechoice (8Mbs): although it's possible that Telewest (who say they have a 10Mbs option coming soon?) or ntl (2Mbs?) will be available in the SW1W 8xx area - I've no idea how service availability works in the UK, really - more homework to do. I'm very, very confused about London broadband/cable TV options just now... BT says they have an 8Mbs service? Over DSL... or what? Electric and gas is easy... but cable and Internet service has (obviously) changed a bit since my last 3-year stint from 1983-1986. At least I hope it has... snooker at 2:00 a.m. is not the only thing showing in that timeslot now, I'm hoping.
    But what about my in-flat wireless? Should I just buy wireless gear when I get settled in? It doesn't seem that anything I have is going to meet the voltage requirements. From the information I've been able to find (none - hence this message) my Airport Express and my Extreme are going to be useless.
    If I have to buy new equipment, I'll just do it. I don't really mind paying VAT at all - much easier to keep a running total in your head when you don't have to keep remembering to add 9.78% sales tax to an item priced - today only! - for $127.49; nor do I mind the 8-9% higher prices of Apple gear in the UK than in the US - I'll be in London, after all! The City That Never Sleeps! No, wait, that's New York - London, thank goodness, sleeps... and if you ever tire of it, you just die, saith O rare Sam Johnson! In New York, you're never sleeping, always tired, and so death is just around the corner (all too literally, at times). But if I can save a few pounds by bring some of my smaller electronic gear along, I'd like to do so.
    So... has anyone ever been on the road in the UK (or moved to the UK) and used US purchased Airport devices successfully? If it means using cumbersome converter kits, I'll just buy new... but if it's a simply plug change, I've plenty left over that I don't feel the need to buy 'Apple Sanctioned' kits.

    Welcome to the discussions!
    +Will a USA airport extreme work in UK?+
    Yes
    +Do the US have different wifi signals to UK?+
    Yes. UK uses channels 1-13. US uses 1-11. You won't be able to use 12 and 13 on your AirPort Extreme. I'm not sure about 5 GHz channels if you plan to use that frequency.
    +Is there anyway of over writing the firmware with UK firmware?+
    No
    +maybe I am just setting it up wrong?+
    If you can tell us what modem (make and model number) you are using with the AirPort Extreme, we may be able to help with the setup.

  • Is there a way to delete the Apple ID on one device (IPhone 5) and replace the ID on that device with an existing ID used on three other devices?

    Is there a way to delete the Apple ID used on one device (IPhone5) and replace it with another ID that is being used on three other devices?

    If you have turned on Settings > iCloud > Find My you will have to start by turning that off - requires entering the Apple ID password.  Then remove the Apple ID from all places it is used, i.e., Messages, FaceTime, and so on.  Go to the App Store and then Sign Out.  Now you can enter the desired Apple ID and password in all of those places.

Maybe you are looking for

  • Modelling 1:N relationships using Master Data

    Hello All, I was trying to store the Bill of Material data in BW and was confused as to how model this as master data. The bill of material is basically a BOM number with a number of components in it. i.e. a 1:N relationship between the BOM and the c

  • Difference between Intel Core Duo and Intel Core 2 Duo

    I bought my MBP in November of last year, before the update on the Pros. However, it says about the new Pros that they have Intel Core 2 Duo processors, which are faster than the Intel Core Duos of previous MBPs. I know I bought mine before they upda

  • Using TDMS to create an HR only client?

    Hi Everyone, Just wanted to ask the question as to whether anyone has created an HR only client using TDMS?  Was it done successfully?  How long did the process take and were there many complications with it? We have never done it before but may pote

  • Guest account will not auto logout

    I'm using a number of Snow Leopard machines in a public computing setting using the Guest account quite successfully. However, when the idle timer ticks over, the dialog box confirming the Guest account's files will be deleted comes up and does not t

  • How do I change my devices from one computer to another

    Hello, I have my devices on an iTunes account in my laptop.  I purchased a new Desktop PC and wish to switch iTune accounts to sync my devices in my desktop PC.  I also have Mobile me. George