Error 1097, but unfamiliar with code and programming

USB device (Hantek DSO-2090 USB Oscilloscope) came with .dll and sample Labview file.  It wasn't working until I applied a path constant to each Call Library Function Node, yet the largest one always seems to yield Error 1097.  Not sure why, but I'll include everything.  Please help!
Attachments:
DSO2090.zip ‏85 KB

Actually wrong calling conventions quite often crash instead of causing error 1097. Error 1097 can have lots of causes but one of the most common is that the programmer has not preallocated array or string buffers used as output data before calling the C function. Most LabVIEW programmers are so used to LabVIEW handling array and string resizing automatically, that they don't even think about that this could be different when dealing with the Call Library Node. But here the external C code has normally no way of resizing such arrays to whatever size it needs and LabVIEW has no way of knowing what size the C function requires for the buffer. So there needs to be the programmer who deduces that information from function documentation, intuition, experience and sometimes simple trial, error and crash exercises to make this explicitedly.
I took a quick look at the VI in the OP and I was truely appaled by it's lack of structure and architecture. This is not a LabVIEW example to show off for sure. Nevertheless, based on the claim of the OP that the LARGEST node causes the error, (talk about clearness in communication caused by such a spaghetti diagram) I assumed he meant the  dsoGetChannelData() CLN and that indeed has two array inputs that are meant to be filled by the function. They are connected to two hidden array controls containing 30000 elements of default data each, so as long as the function does not try to return more than 30000 samples for each of the two channels, this should not be the problem. But I'm not sure if this oscilloscope will ALWAYS return exactly 30000 values for each channel, or if this number can be adjusted somehow. It's however the only thing I can say based on the claim that the largest node causes the error. And digging into this deeper requires the DLL documentation and lots of time, which I don't plan to invest in such a poor piece of software.
The reason that he needed to define the path to each node is that the DLL clearly is not located in a standard nor fixed location. Windows will never search any directory in the Program Files directory for DLLs, unless that directory happens to be listed in the PATH environment variable. And the Program Files directory path can change based on Windows bitness, system administrator configurations and more. In order for LabVIEW to find the DLL on any system, the DLL has either to be:
1) in the same directory as the VI or project file
2) in the executable directory (where labview.exe is or yourapp.exe for a built application)
3) in the $(System) directory
4) in the $(Windows) directory
5) in a directory that is listed in the PATH environment variable
But moving around DLLs without knowing what you are doing can make the DLL unloadable as it may be missing dependencies that way.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • I keep getting an error message that I have an invalid security code when trying to make purchased in itunes.  But my security code and billing info are valid.  How do I rectify this problem?

    I keep getting an error message that I have an invalid security code when trying to make purchased in itunes.  But my security code and billing info are valid.  How do I rectify this problem?

    Did you ever get an answer to this? Im having same issue now! So frustrating!

  • I have searched for solutions to the error 13019, but everyone with the problem doe'st manually manage their music like I do. I really don't want to have to sync and gothrough that mess. Help? solution for manually managing videos and music!!

    I have searched for solutions to the error 13019, but everyone with the problem doesn't manually manage their music like I do. I really don't want to have to sync and go through that mess. Please Help! solution for manually managing videos and music!!

    - Make an appointment at the Genius Bar of an Apple store and hear what they hae to say. It is free.
    Apple Retail Store - Genius Bar                          
    you can turn on Assistive Touch it adds the Power and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch

  • STAD - get the 'transaction code' and 'program name'

    Hi, I was wondering if someone knows about a bapi with which I can get only the "transaction code" and "program name".
    I need to get those for a specified user, but I don't want to set on a trace, that's why I'd like to use the transaction STAD.
    If anyone can help, thanks in advance
    Grtz,
    Dragovian

    ok, so I go like this
    TYPE-POOLS sapwl .
    DATA:  all_stats        TYPE sapwl_allstats.
      CALL FUNCTION 'SAPWL_READ_STATISTIC_FILES'
       EXPORTING
         read_client                 = '*'
         read_time                   = '200000'
         read_start_date             = sy-datum
         read_start_time             = '000000'
         read_username               = sy-uname
         read_workprocess            = 'FFFF'
         wait_factor                 = 150
        CHANGING
          all_stats                   = all_stats
    how'd I get "start-time" "report-name" "date" "username"?

  • When I try to restore my ipad mini it says error 4005 but ive done everything and i cant take it into a store. Any help?

    When I try to restore my ipad mini on itunes it says error 4005, but ive done everything and i cant take it into a store. Does anybody know anything to help?

    This is Linda again.  The new iPad actually as not restored on my employees computer. I thought it was working.  Message said the device is in recovery mode and can not be restored.  I have been at the Apple store for a total of 6 hours and on the phone with support for at least 4 hours.  And now the replacement has crashed???  Has this happened to any one else?

  • Printing from web pages is excruciatingly slow with most recent upgrades of Firefox .Use an iMac and an HP officejet printer. Printer works fine with Safari and woodprocessed files, but not with Firefox and web pages.

    Printing from web pages is excruciatingly slow since downloading most recent upgrades of Firefox Mozilla. I have a desktop iMac, OS 10.6.8, and an HP officejet printer 4500 G510n. The printer works fine with the Safari Browser and with woodprocessed files, but not with Firefox and web pages. Help please! It used to print fast with earlier versions of Firefox.

    Hello and welcome to the Apple Discussions Forum.
    I have hardly any experience with HP printers but since your posting has not been replied to yet I thought I'd offer some assistance.
    With the printer status and ink levels working, it shows that you have a connection to the printer. So I would look at the issue being with the protocol being used for the print queue on the Mac.
    Since you have XP and Vista working, I would check the printer queue configuration on either box. In XP, go to the Properties and select Ports. Click the Configure Port tab to view the connection. If you are using RAW, then this is known as HP Jetdirect-Socket on OS X. So if you are not sure what protocol was used before I would create another printer queue, this time selecting IP > HP Jetdirect-Socket. Then enter your IP address and select the K5400dn from the Print Using menu.
    If this still fails to print then please reply. There may be limitations with adding the HP driver this way that I am not aware of. There may also be other driver options you can look at, such as HPIJS. If Greg Sahli reads this posting he has expert knowledge on this matter and will be able to offer some guidance.
    PaHu

  • LabView Programming :: Portland OR, Seeking a local programmer to assist with code and application develop

    I am looking for someone to professionally develop some code I've cobbled together. The
    'program' I have developed has received some acceptance within my
    larger team, and I am hoping to bring in an external expert to assist
    us with streamlining the code and creating a stand-alone executable.
    There is no real DAQ, just data manipulation.
    We are looking for LOCAL PROGRAMMERS only please. I would like to meet with any applicants in person.
    Please PM me on this forum with your resume/expertise...
    Kind regards,
    Geoff

    Geoff,
    Thanks for the post.  Could we have an email contact for you?  Or perhaps you could send me an email at jimlaudie-at-gmail-dot-com and I could reply?
    Best of luck,
    Jim

  • How to display error messages in BAPI_PO_CHANGE  with PO and item ?

    Hello Friends,
    I am calling BAPI_PO_CHANGE to update delivery flag for 50 POs.
    Each PO has 4 line items. For ex.
    10001     10     5.00     material1      X
    10001     20     45.00     material2      X
    10001     30     22.00     material15      X     u201Cerror
    10001     40     45.00     material41      X
    10002     10     46.00     material17      X
    10002     20     25.00     material3      X     u201Cerror
    10002     30     75.00     material5      X     u201Cerror
    10002     40     44.00     material8      X
    u2026u2026u2026u2026u2026..
    u2026u2026u2026u2026u2026
    Now, suppose some line items have error.
    I am able to get it from BAPIu2019s    RETURN table.
    But how can I display that error message with PO and line item?
    NOTE : I am calling BAPI_PO_CHANGE for each PO with ITEM internal table.
    Please guide me.
    Regards
    RH

    The it_change_return fields parameter and row identify the PO_ITEM.
    Try this...
    *&      Form  READ_MESSAGES_OP_CHANGE
          BAPI_PO_CHANGE Return messages
    FORM read_messages_op_change .
      DELETE it_change_return WHERE type = 'W'.
      DELETE it_change_return WHERE type = 'I'.
      LOOP AT it_change_return ASSIGNING <is_change_return>.
        IF <is_change_return>-type = 'E'.
          z_error_flg = 'X'.
        ENDIF.
        v_item = v_item + 1.
        it_log_mess-packagenr = v_packagenr.
        it_log_mess-object = v_object.
        it_log_mess-docnum = v_docnum.
        it_log_mess-itemnr = v_item.
        it_log_mess-type = <is_change_return>-type.
        it_log_mess-id = <is_change_return>-id.
        it_log_mess-mnumber = <is_change_return>-number.
        IF <is_change_return>-parameter <> 'POITEM'.
          it_log_mess-message = text-po1.
          REPLACE '&' WITH z_po_number INTO it_log_mess-message.
          CONCATENATE it_log_mess-message <is_change_return>-message
            INTO it_log_mess-message SEPARATED BY space.
        ELSE.
          READ TABLE it_change_poitem ASSIGNING <is_change_poitem>
            INDEX <is_change_return>-row.
          it_log_mess-message = text-pr2.
          REPLACE '&' WITH z_po_number INTO it_log_mess-message.
          REPLACE '@' WITH <is_change_poitem>-po_item
            INTO it_log_mess-message.
          CONCATENATE it_log_mess-message <is_change_return>-message
                INTO it_log_mess-message SEPARATED BY space.
        ENDIF.
        it_log_mess-message_v1 = <is_change_return>-message_v1.
        it_log_mess-message_v2 = <is_change_return>-message_v2.
        it_log_mess-message_v3 = <is_change_return>-message_v3.
        it_log_mess-message_v4 = <is_change_return>-message_v4.
        APPEND it_log_mess.
      ENDLOOP.
    ENDFORM.                    " READ_MESSAGES_OP_CHANGE

  • Why doesnt scrolling feature on mouse work in firefox but works with chrome and IE?

    I installed firefox on my laptop and when i try to scroll with the keypad it wont let me. The keypad works fine with all other programs except firefox. Ive uninstalled and reinstalled firefox already and no luck.

    If it's an Acer laptop, there appears to be a bug with the ALPS drivers. See: https://bugzilla.mozilla.org/show_bug.cgi?id=605357

  • CoComong A-Z Full versions error paid but can't play and songs

    CoComong A-Z Full versions by JNF Media error, we had buy the apps but can't play and songs at all after update last week.
    I try to send emal to seek help but no such email bounce back by mail demon. I write down my contact at deckorea which link from the support but say it korean words must join members. I do not know where else to fins help. I felt being cheated to paid the apps twice and still can't play any songs and my kids love the apps so much before the update.
    PLEASE HELP!!! I DO NOT KNOW WHAT TO DO NEXT? where should I report the issues?

    Brooklyn Buckeye,
    Can you confirm that Copy files to iTunes Music folder when adding to Library is checked in the iTunes Edit menu > Preferences > Advanced tab > General sub-tab.
    If not, check it and go through the "Add file to library" procedure one more time.

  • ISight not working with Apple apps but only with Skype and flash....

    Hi guys, don't know why but suddenly my isight stopped working with every apple application, like ichat, imovie and photoboot, but it still works with skype and safari (flash).
    The camera simply doesn't work, the green led stays off.... I tried resetting PRAM, SMC, deleted .plist files, tried new account and everything...
    Maybe the problem is facetime, I uninstalled it by simply dragging it to the trashcan, so I followed a thread here and manually deleted its last files but no luck....
    Please guys help me, I really hope I don't have to FORMAT my mac... sounds so windows to me XD...

    V4N0 wrote:
    ...Well the camera is seen in system profiler and it works perfectly with skype, I'll try a couple of things then... well reset is inevitable....
    Thanks for the "helpful" star, V4N0!
    (1) Your initial post shows you using Mac OS X (10.6.6),
       but your latest post shows Mac OS X (10.6.5).
    Have you "downdated" to 10.6.5?
    (2) iSight works with iMovie, Photo Booth, QuickTime, and other apps like Address Book,
       etc. You need not try every possible app, but please tell us which you have tested,
       and which, if any, work with your iSight.
    (3) Have you tested iSight operation in more than one user account?
       Are the symptoms EXACTLY the same in any user account you test?
    (4) If your only problem is with ALL apps in ALL user accounts, try applying the
       Combo Update using the method suggested in this recent post:
      http://discussions.apple.com/thread.jspa?messageID=12859723&#12859723
    If you want the latest Mac OS instead of 10.6.5, download the 10.6.6 Combo Update:
      http://support.apple.com/kb/DL1349
    instead of the 10.6.5 Combo (http://support.apple.com/kb/DL1324) link in the post.
    Message was edited by: EZ Jim
    Mac Pro Quad Core (Early 2009) 2.93Ghz Mac OS X (10.6.6)
    MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.6)
    LED Cinema Display; G4 PowerBook 1.67GHz (10.4.11)
    iBookSE 366MHz (10.3.9); External iSight; iPod4touch4.2.1

  • Problem with code and design view

    When I try to have both the code and design view
    side by side in Dreamweaver CS4 on a PC -- I get the html code in both sections.
    How  do I see the layout while looking at the code?
    Thanks for help.
    Library Friend

    You've probably got View > Split Code checked.
    Click View > Code and Design

  • Code generated with adobe edge for my website does not work with fireox, but does with IE9 and chrome. Why?

    The first time I opened Firefox with the code in my website it worked. Since then it has not worked. I have tried it on another computer and it worked perfectly. That computer runs under Widows XP.

    Reload web page(s) and bypass the cache.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Cmd + Shift + R" (MAC)
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Using "Forget About This Site" will remove everything from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious if you need to keep passwords or other data from that site.<br />
    You can't recover from that "forget" unless you have a backup of the affected files.
    It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.

  • I have an old powerbook. i tried to erase the hard drive and it went wonky and now i cannot even start up from a leopard cd. i get a screen filled with code and the top error message reads: panic (cpu 0 caller: 0x002E1EC4): (message continued)

    error message reads:
    panic (cpu ) caller 0x00231EC4): Unable to find driver for this platform: "PowerBook 5,6".
    Lastest stack backtrace for cpu 0
    trying to load in leopard OS cd

    no it wont
    it's the same screen
    after the data above about the platform it reads:
    No debugger configure-dumping debug information
    MSR-00001030
    Latest stack bactrace for cup0:
    Backtrace:
    0x000954F8 0x00095BF8 0x 00026898 0x002E1EC4 0x002c12A0 0x002c1068 0x002cAD0 0x002C20DC 0x000A9714
    Exception stat (sv-0x0052d500)
    PC-0x00000000; MSR-0x0000D030; DAR-0x00000000; SISR-0x00000000; LR-0x00000000; R1-00000000; XCP=00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.11.0; Wed Oct 10 18:26:00 PDT 20007; root: xnu-792.24.17-1/RELEASE_PPC panic: We hanging here....

  • Error 4801, but not using Vista and have mic plugged into jack.

    Hi, i'm working on a project that involves inputing from a microphone, running it through a filter and then an FFT, and then doing some analysis on the data. For the input from the microphone, i'm having some issues. I basically drew all of the input functionality from the "Continuous Sound input.vi" example vi, which works on my computer, with a microphone and does display the signal. However, when i copied that over and modify it a little, the Sound read has either one of two errors. When i place the "Sound Clear" sub vi outside of the inner while loop, the Sound Read sub vi appears to have some sort of error relating to overflowing the buffer (i think 4822, but not 100%), no matter how low i put the samples/second and elapsed time function to exit the loop. If i put the Sound Clear sub vi INside the loop (not how it is in the continuous sound input vi, then i get error 4801, described here: 
    [\Quote]
    Error 4801 occurred at an unidentified location
    Possible reason(s):
    LabVIEW:  (Hex 0x12C1) Invalid sound task refnum.
    What steps can I take to resolve this issue?
    Solution: 
    Error 4801 is given because the sound driver in Windows Vista disables the microphone and line-input jacks when it does not detect a source plugged into the jack.  The hardware is disabled by the Windows Operating System, not National Instruments software or drivers.  This behavior is not seen on XP computers, only on Vista.  
    The resolution is to plug in a microphone or audio source to the computer.  Windows Vista will detect the microphone or audio source, and error 4801 will be resolved. 
    [/endquote]
    This seems very strange that i should recieve this error, as i am running win7, not vista, and have a microphone plugged in. The microphone jack is working - i've tested that with other programs and the continuous sound input.vi, so it works just fine. I just have no idea what to do at this point to fix the problem. My code is attached, Thanks for any assistance in advance!
    Attachments:
    project ver 2.0.vi ‏84 KB

    Hi ir0nsoul,
    Thank you for the detailed explanation of your issue. To begin, the reason you are getting the overflow error is because the number of samples needs to be 1/10th of the sample rate. Next, you need to have the Sound Input Clear.vi outside of your while loop because you are clearing the task immediately after you read, so the next time it goes to read, it won't find the stream anymore. Finally, to see if Windows recognizes your microphone, use the Acquire Sound Express VI and check the drop down menu to see if your microphone is listed (use the device ID to set the control back in the Continuous Sound Input.vi). I suggest getting your microphone to work with the Continuous Sound Input.vi first and then add you modifications later. Hope this helps!
    Aldo A
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Itunes 12.0 won't open on Yosemite 10.10

    Hi, only recently switched to mac. Booted up today and itunes won't open, the icon just bounces. Tried rebooting etc. If I look into more info in finder it says the itunes was opened the last time I tried, it wasn't. Do I have to go through the hassl

  • Can't connect via Airport Utility

    Just noticed that my shared USB drive wasn't connecting so I opened Airport Utility and got this message when trying to manually access my Airport Extreme: Make sure your AirPort wireless device is plugged in and in range of your computer or connecte

  • Difference of Dates to calculate No. of Days

    Hi, I'm trying to do a date subtraction between a "Date-1"  and a Date-2 . I did this a couple of times in the past in bw-3.5 but now when i try to do that in BI 7.0 it doesnot work. I tried creating a formula variable using replacement path for the

  • Installing Oracle 10g release 10.1.0.3

    Why not I can install Oracle Server in a Linux x86 64 Bits with Red Hat Enterprise v.4 ??? one requisite it's a Linux kernel 2.4 minimun... I copy this from installation archive log: root > cat installActions2005-10-28_01-33-11PM.log Using paramFile:

  • Best networked printer for a MAC based network?

    I may regret asking this :"), but what is the best network printer to use on a MAC based network? I have been the victim on the bloatware HP drivers for years, and am really sick of them. But what do I purge this nightmare for? Canon (like the MX860)