Can't get IVI Power Meter error query to work properly.

I have been trying to use the IviPwrMeter Error-Query.vi to read possible errors coming from the Power Meter.  However, I have found that no errors can be detected using this vi.  This is because the returned value 'status' is wired over to the 'error code' input of 'IviPwrMeter Error Converter.vi' and the status value will always be equal to VI_SUCCESS as the attached code signifies.
All of this code was generated by either LabWindows/CVI and/or LabView.
If I wire the error code output of 'IviPwrMeter_error_query' function to the error code input of 'IviPwrMeter IVI error converter.vi', the errors on the Power Meter is at least detected.
Am I doing something wrong here or are there other work arounds?
Source listing of driver call:
ViStatus _VI_FUNC age4418b_error_query (ViSession vi, ViInt32 *errCode,
                                        ViChar errMessage[])
    ViStatus    error = VI_SUCCESS;
    checkErr( Ivi_LockSession (vi, VI_NULL));
    if (errCode == VI_NULL)
        viCheckParm( IVI_ERROR_INVALID_PARAMETER, 2, "Null address for Error Code");
    if (errMessage == VI_NULL)
        viCheckParm( IVI_ERROR_INVALID_PARAMETER, 3, "Null address for Error Message");
 if (!Ivi_Simulating(vi))                /* call only when locked */
     ViSession   io = Ivi_IOSession(vi); /* call only when locked */
     checkErr( Ivi_SetNeedToCheckStatus (vi, VI_TRUE));
     viCheckErr( viPrintf(io, "YST:ERR?"));
  viCheckErr( viScanf (io, "%ld,\"%256[^\"]", errCode, errMessage));
 else
         /* Simulate Error Query */
     *errCode = 0;
     strcpy (errMessage, "No error.");
Error:
    Ivi_UnlockSession(vi, VI_NULL);
    return error;

Dennis,
I get the same results as you if I don't have a power meter connected.  However, this doesn't supprise me because the session handle is probably checked at a higher level.
The calling hiearchy is as follows (I think, because I don't have all of the code)  IviPwrMeter Error Query.vi -> IviPwrMeter_error_query (IviPwrMeter.dll) ->age4418b_error_query (age4418b.dll).  I would guess that the session is validated in the second layer and not the bottom layer where the actual instrument error query is happening.
Something you may try.  If you have any instrument, write a simple program to get a valid handle then call the error query using the error cluster to link them together.  Set a breakpoint before the error query, run the program, use MAX to send an invalid command and create an error.  Then resume your original program and see if an error is reported in the error cluster after executing the IVI error query.
Bob

Similar Messages

  • I have a 4s and it keeps saying  it is in oritation lock and can not get it out so the phone will work properly. please help

    how do i restore my 4s can not get nothing to work

    Swipe up from the bottom on the screen to get to Control Centre...
    The button on the right is the Rotation lock... Turn it off.
    See  >  http://support.apple.com/kb/ts3805
    If unable to turn it off...
    First try a Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least Ten seconds... (But can take Longer)... until the Apple logo appears. Release the Buttons
    If no joy... Try a Restore...
    1: Connect the device to Your computer and open iTunes.
    2: If the device appears in iTunes, select and click Restore on the Summary pane.
    Restoring  >  http://support.apple.com/kb/HT1414

  • How can I get vertex colors on a mesh to work properly on a PDF 3D

    Hi everyone,
    I am working with GeoMagic Wrap 2013, a software for modelling meshes.
    I digitalize objects through a 3d scanner.
    The Scanner can digitalize objects, generating a mesh, either with .stl or .obj extensions.
    .Obj is useful because you can retain the original color of the object you are acquiring when getting the mesh.
    What Wrap 2013 let me do, among other functionalities, is to export the mesh in the .pdf format as a PDF 3D.
    The issue is that what i see in Wrap 2013 is this:
    but what i get when i export them in PDF 3D is this:
    which is unconvenient because the point of this is to provide a potential client with a fully rotatable and zoomable preview of a product he/she is interested in.
    How can i get the original colors to render properly on a PDF 3D?
    Thank you

    Thanks Dave,
    I am not so technical about the subject but what you are saying (and what is written on the topic you liked above), is that is not possible to achieve the result i'd like with my model using PDF 3D?
    What is quite annoying is that many mesh modelling softwares now provide PDF3D export service but practically forcing you to use uniformed colors that are really not suitable for certain use... you can't have a model with the original (or vertex more in general) colors...
    That would be really a pity to say the least, especially considering that after some work time i can have really nice looking models within my sofware and no way to present it to the client except some really "flat" photos :/

  • How can i get a power bar code i only have a ee mobile wifi

    How can i get a power bar code i only have a ee mobile wifi which doesnt allow me to sent texts .. ive tried the sim card in a unlocked phone but it wont send texts

    You could try putting your SIM into an EE phone. It's only a SIM, it should be be able to send an SMS.

  • Desktop Manager "disconnected" and I can't get rid of the error message

    I just purchased a Blackberry Curve 8530, running v5 software, my computer is Windows 7. I installed the 501_b073_multilanguage software that I downloaded from Blackberry's website. When I launch the Desktop manager I get this message: "Before you begin, verify that your current BlackBerry device is connected to your computer." The troubleshooting posts I've seen on this forum include many tips (the ones I've tried are below). One in particular I can't do is "The desktop manager is showing "disabled."
    -Make sure that the user has gone into the desktop manager and selected options > connection settings > detect."
    ... because I can't get rid of the error message dialoge box, and I can't click on the options menu in the BB Desktop Manager.
    I have tried the following:
    uninstalled it and reinstalled it twice - 2nd uninstall was a "hard" uninstall where I deleted the registry files by hand
    moved the cable to the USB port in the back (after trying both the ports in the front) of the computer
    restarted the computer many times
    hard booted the phone by removing the battery
    plugged in, removed, and replugged in the phone.
    Also:
    The phone is installing correctly when I plug it in, but the software still doesn't seem to see it.
    In the Device Manager, the BlackBerry is showing up under Portable Devices. Double-clicking on it gives me the reassurring "This device is working properly." message.
    The Com1 port is working properly also, according to the Device Manager.
    Double-clicking on the device manager icon to get the properties shows that the Com1 port is "disconnected" -- when I try to configure it it just pops back to the disconnected state.
    If someone has an idea or something I haven't tried I'd sure appreciate it!!
    Thanks!
    K
    Solved!
    Go to Solution.

    Okay, folks, after a 3 1/2 hour phone call with a (very patient) telephone support person at Blackberry, here's what I learned.
    You can check your USB drivers this way:
    Plug in your phone into your USB drive. Assuming your Blackberry is "seen" by your computer...
    Go into the Device Manager on your computer (control panel)
    Expand the Universal Serial Bus controllers item on the bottom of the list
    Right-click on BlackBerry Smartphone and choose Properties
    Click on the Driver tab
    Click on the Driver Details button
    You should see one driver. I saw two. The one the BlackBerry likes is the RimUsb one.
    So here's what NOT to do: We tossed the entire driver that was the "extra". This effectively made using my mouse and keyboard impossible, as they are USB, and sent my poor husband into the basement to find a million-year-old keyboard (and then a mouse) with the old fashioned kind of connectors (PS2). Bleh. Don't do that.
    Here's what I did that worked (not saything this will work for you -- this modifies the Registry so better do a system backup with that backup and restore if you're nervous about this sort of thing):
    From the start menu, choose run, and type regedit to get into the Registry editor.
    Follow this file path: Computer, HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Control, Class
    Click on: {36FCE60-C465-11CF-8056-4445535400000}
    If there's an item on the right called "UpperFilters", delete it. (see pictures)
    Hope this helps someone.
    Karin
    First pic: shows "before"
    Second pic: shows full file path and "after"

  • HT1526 I can't delete any files, can't empty the trash bin, can't open my iTunes. Safari isn't working properly either. I keep getting the error message -50 when i try to delete anything...HELP!

    I can't delete any files, can't empty the trash bin, can't open my iTunes. Safari isn't working properly either. I keep getting the error message -50 when i try to delete anything...HELP!

    Hello, not too helpful, but...
    enum {
      paramErr                      = -50,  /*error in user parameter list*/
    Usually means a bvad or unacceptable Charachter in a File or Folder name...
    http://support.apple.com/kb/TA20831
    Solving Trash Problems...
    http://thexlab.com/faqs/trash.html
    Open Console in Utilities & see if there are any clues or repeating messages when trying to open Safari or iTunes.

  • Can i get the history tab in query designer in bw 3.5 version

    can i get the history tab in query designer in bw 3.5 version plz help me.

    Hi,
    yes..
    do this..
    Go to SPRO->IMG->SAP NEtweaver->SAP BIW->Reprting-relevant Settings->General Reporting Settings in BEx->Activate personalization in Bex.
    Regards,
    San!

  • HT1635 where can I get the power adapter for       MC207xx/A . It's a 60W "T" connector

    where can I get the power adapter for 
    MC207xx/A . It's a 60W "T" connector

    You can get a new third party 60W power adapter on eBay for under $20.
    http://www.ebay.com/sch/i.html?_nkw=macbook+power+adapter&_sacat=0&_sop=12&_dmpt =Apple_Laptops&_odkw=macbook+power+adapter&_osacat=111422&_trksid=p3286.c0.m270. l1313
    Or for $80 from Apple http://store.apple.com/us/product/MC461LL/A

  • When starting Firefox 4 I get an error message. After clicking OK it nevertheless runs. How can I get rid off the error message.

    When starting up Firefox 4 I get an error message. After clicking OK it nevertheless runs. How can I get rid off the error message?
    The error message is: what happened: Type Error: Components. classes ['@mozilla.org/extensions/manager;1'] is undefined.
    It appears all the time already from the beginning after installing Firefox 4.

    Thanks a lot. The Ask toolbar created this problem. Another problem is: When searching on the web via Google, normally it is possible to type a few letters and then look what appears and then click on the wanted word(s). A number of word(s) ineed do appear, however it is not possible to select any of them as ws possible as mentioned in olders versions.

  • Where can you get the power cord for a 2012 airport express?

    Where can you get a power cord for a 2012 airport express or the equivalent? I couldn't find one in the online store.

    I'm sure the OP found his solution, but I wanted to share mine in case it helps some future seeker.
    There are a lot of brand new cords on eBay for less than $10 including shipping, which is way cheaper than the $39 stereo connector kit or an AC adapter from a retailer.  I just bought a used-like-new one for $5.50.
    The cord is made by Volex, part number APC7Q.  The Apple part number is M9573LL/A.  If the seller got it from the stereo adapter kit, they'll probably list it under MD836LL/A, which is the kit's part number.  I got the best search results on eBay using just the Volex part number.
    Best of luck!

  • I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I've just seen this message for the first time and it's showing on 10 devices.
    What I really love about Apple Configurator is the copious amount of context driven help offered to you.
    "Unable to send ClearPasscode command to device.
    The device was disconnected.
    Check the USB connection to the device."

  • Apache permissions - can't get webserver up (permissions error)

    I can't get the webserver on my iMac to work. I'm pretty familiar with apache and configuring it, but I'm just missing something here.. I would really appreciate some help diagnosing this.
    The error I'm getting is "Forbidden / you don't have permission to access [whatever file] on this server."
    The webserver is working fine on my MBP, and so I tried copying the httpd.conf file from it over to the iMac, but no worky. I diff'd the two files and the only difference is the AllowOverride (to take .htacess directives).
    File permissions seem time fine too - /Library/WebServer/Documents directory belongs to root:wheel with 775. Actual files inside the DocumentRoot directory belong to my local user account. Same as the MBP, which, once again, is working fine.
    So as it stands, the only difference between the current httpd.conf file and the default one is that I've turned on php support. By the way, the default httpd.conf file also causes the same problem.
    Where do I look next? Thanks in advance -
    Steven

    Thanks, yeah I figured the favicon's not a big deal. This issue has been resolved - it was actually a simple exercise in permissions. I hadn't granted read access to "all", which is the realm where the user "www" sat. Silly oversight.
    I did learn one new thing, however - the "x" bit needs to be set on permissions on all directories. Apache uses this as the search bit to look up resources in subdirectories (images, includes, etc.). To do this quickly I did:
    find . -type d -exec chmod a+x {} \;
    Thanks again for your response.

  • Where can I get details on JDBCPool error (WARN) messages?

    Where can I get details on JDBCPool error (WARN) messages?
    2007-05-02 10:13:07,431 1986526969 WARN com.sct.workflow.util.jdbcpool.JDBCPool verifyConnection.295 - JDBC Connection has failed
    verification.
    2007-05-02 10:13:07,432 1986526970 WARN com.sct.workflow.util.jdbcpool.JDBCPool$1 run.258 - JDBC connection has failed. Removing
    from available pool.
    Thanks,
    Glen

    I received no replies to this question. That may indicate that it is an application message.

  • Can you get a power point program for the mac, my daughter has a power point assignment and i am not sure how to do it on the mac

    Can you get a power point program for the mac, my daughter has a power point assignment and i am not sure how to do it on the mac

    You can use a free alternative like openoffice for this:
    http://www.openoffice.org/porting/mac/
    or libre office which is a fork of open office:
    http://www.libreoffice.org/

  • I just got my cable company to switch my wireless router to a wired one considering now I have the wireless airport device (the newest one) but now I can't get a wireless signal. The router works when directlyplugged in,the aiport wireless device is green

    I just got my cable company to switch my wireless router to a wired one considering now I have the wireless airport device (the newest one) but now I can't get a wireless signal. The router works when directlyplugged in,the aiport wireless device is green. I've tried going through my new MacBook Pro settings and it the diagnostics check, it says network changes detected, I tell it that it "yes" does connect to a cable modem, it tells me to restart it, after I do it asks if there are any other devices hooked up ( firewall) and when I say no it tells me that it can't fix the problem.
    Now I know that I probably have a new IP address because of the cable company switching the boxes but it was working fine with the other box, now there isn't a signal to be had on it!
    Please anybody out there that can help!!!??

    Any time you change networking hardware it is always a good idea to perform a complete power recycle with the new equipment. Check out the following AirPort User Tip. Please post back your results.

Maybe you are looking for

  • ATI radeon 9800 pro (256MB)-- Apple 23" HD

    ive had this graphics card for a good couple of months, about 6 or so to be exact, a card given to me by a friend who just didnt need it anymore, upgraded to something or other. now, the issue is that two days ago, it just stopped working. i tried to

  • Price difference between Purchase Order and GR

    Hi We have a scenario where we have PO based IR and for the particular Purcahse order we have 4 GRN (out of which 3 goes by Standard Purchase Order Price) whereas one GR have with an Higher value than PO.But all the IR's have been posted with Purchas

  • Missing attachment (Object link) in Purchase Order (PO) seen via ME23N

    There is an issue in which I am not able to see the attachment in few purchase orders. The complete process is as follows:- Shopping cart is created in the SRM system and some reference document like a .doc, .xls or .pdf documents are attached with t

  • Submit button not working with gumby

    I am using Gumby (http://gumbyframework.com/) on our home page. The page is very simple with no fancy js. In Gumby there is a submit button (http://gumbyframework.com/docs/ui-kit/#!/buttons) which lets you ..... well, submit forms. Not in FF!! When I

  • Error on export from a 1.5 version and import to a 1.6 version

    I am exporting a 1.5 version of an application to the 1.6 version on the Oracle Workspace and I get the following error: ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-00001: unique constraint (FLOWS_010601.WW