Create image buffer with dll function

Hi,
I have a usb barcode scanner which I control with a bunch of functions in a dll file. I used the wizard which was pretty straightforward. Now I can send most of the commands I want but have a slight problem when initializing image mode. There is a createimagebuffer function but it wants a string input, "a pointer to the destination buffer for image data returned from the scanner". What am I suppose to point at and how do I do it? Im new to this (first time experimenting with dll files) so I may have missed something important.
Regards
Andreas

It should point to a string. The string should be large enough, e.g. it
should have a lot of characters in it. If the function also has a length
input, you can configure the dll so that the string length is automatically
linked to that input.
Regards,
Wiebe.

Similar Messages

  • Unable to create image buffer after RAM preview

    Running into an odd and frustrating error. Built a comp using the new Ray-traced 3D renderer and now I'm regretting being an early adopter big time with all the problems I've been encountering with it. The latest comes whenever I do a longer RAM preview in an attempt to watch the whole duration of my comp. It will get to about 170 frames or so, at which point I've interrupted by pressing spacebar because I don't need to see all the way to the end of my work area (around 220 frames). It'll play the RAM preview back fine, and even loop it, but as soon as I stop playback, I get this error message: "After Effects warning: Unable to create image buffer." There's only one button: "okay" and as soon as I click it the same error pops up again and it will never go away, forcing me to close AE from the task manager. I've taken to saving before every RAM preview like I used to do with Flash before previewing my buggy swfs for fear I'll lose all my work after previewing. Any ideas about what might be causing this?
    Some more details about my comp:
    1920x1080 @ 29.97
    Ray-traced 3D
    About 70 3D layers (I'm guessing this is my downfall - new renderer not designed for this many layers?)
    Running Windows 7 Professional
    i7 2600K
    32GB RAM
    2x GTX 570 video cards running latest driver (301.42, CUDA 4.2.1)
    508GB free on my 2TB internal drive where the project and cache lives
    From my GPU info window in case it's useful:
    Fast Draft:
    Available
    Texture Memory:
    600.00 MB
    Ray-tracing:
    GPU
    OpenGL
    Vendor:
    NVIDIA Corporation
    Device:
    GeForce GTX 570/PCIe/SSE2
    Version:
    3.0.0
    Total Memory:
    1.20 GB
    Shader Model:
    4.0 or later
    CUDA
    Driver Version:
    4.2
    Devices:
    2 (GeForce GTX 570, GeForce GTX 570)
    Current Usable Memory:
    1.04 GB (at application launch)
    Maximum Usable Memory:
    1.25 GB

    Yeah, some buffer is very likely not flushing when you interrupt the preview and then there is no more memory on the graphics hardware. Consider setting the work area and your preview options to use only the work area. if it finishes the preview "correctly", it may not suffer the issue. Beyond that - raytracing doesn't/ shouldn't care about the number of items. The math is such, that it makes no difference whether you render a million polygons or just one. Of course there are still limitations due to the GPU dependency, but I doubt you ever truly exhaust the cards' geometry buffers. Compared to pixel data that is a small amount...
    Mylenium

  • Create data buffer with arrays

    Hello.. I'm trying to create a data buffer but I can't...(I don't understand very well how to use the shift registers, feedback, auto-index, etc.) I receive real-data from 16 sources and I want the buffer to allocate 20 samples or so... (20 x 16 matrix or array). I'm trying to simulate the sources and using replace array subset, but I can't do what I want.. (that a single data fill the space in index 0, and when a value reaches index 19, the next number replace the one in index 0 and so on....)
    I want to create a buffer for when some disturbance ocurrs, I want to save the data from 1 or 2 seconds before the event. I think that I can use too a history data property node, but I'm not using a waveform chart anymore, because I want also the time stamp of the data in the xscale.. and with the chart I didn't manage to do it... (I tried with an offset property node.. but eventually the time in the xscale lagged the real time, I think that happens because the rate sample is not constant... but that's another problem.. =S)
    Thanks in advance for all your help...   Mitzi
    PS. I attach my attempt...
    Attachments:
    buffer_qst.vi ‏20 KB

    If you want a build a 20x16 array with only the 20 most recent values, what you can do is use the build array function to concatenate on the end of the data (you will need a shift register for this). 
    Next take the output of the build array and get the last 20 columns using the array subset function.
    (There's a real clever way to do this involving reversing the arrays, but I'm not going to confuse you with that).
    If you're still not getting it when I get home, I'll write up a VI and post it.  What version are you using?
    -Matt Bradley
    ************ kudos always appreciated, but only when deserved **************************

  • Could Not Create image buffer & placing new RAM

    Hello,
    I 'm all the way from Holand ;) and I hope someone can help with the following:
    I'm running AE 7 and with the original configuration it ran well while rendering. But after putting 4 GB extra (total 6 GB) -I did it in the right way; 2x1 GB RAM in the upper tray and 2x2 GB in the lower tray- I constantly get the error 'Could Not Create 1920x1080 image buffer'. My computer (system profiler) detects the full 6 GB RAM though. Do I have to change any settings in AE 7? AE detects only 3.0 GB...
    I have no idea if it's a software or hardware problem. Maybe it's because I have the brand new Macpro 2.8 Ghz with 8800 GT card?
    Hope to hear from you guys!

    >I have no idea if it's a software or hardware problem. Maybe it's >because I have the brand new Macpro 2.8 Ghz with 8800 GT card?
    Both. When you change the RAM amount but do not re-initilaize the system, some kernel extensions and caches will not be cleared, resulting in wrong memory mapping for compatibility apps under Rosetta. You should be able to do that using OnyX or TinkerToy or by repairing your system with the install disks. Other than that it's somewhat pointless to run a non-intel-native version of AE on such a powerful system. You are wasting a lot of performance here. Only CS3 will improve matters, but to use the full potential of multiprocessing with HD comps you will need a lot more RAM than the 6GB you have.
    Mylenium

  • Create a View with Aggregation Function (COUNT)

    I've been looking up and down for a way to create a view with a few basic fields and some other fields containing aggregation function.
    For instance:
    To display a view that contain all the Contract Agreement and the corresponding count of the PO releases.
    Agreement Nbr, Total PO releases
    I need this view so that I can create a search help with this view.
    I found something about the "CREATE VIEW" statement, but I don't have any idea how to use it.
    Any helps toward this matter is very much appreciated, thanks.

    Hello Aldern
    I guess you have read about the SQL statement "CREATE VIEW". When we create a view in the dictionary this SQL statement is finally called to create the view on the DB. Thus, since we do not have any aggregation options in views you cannot achieve what you want using views.
    The solution for your problem is to create a <b>search help</b> having a <b>search help exit</b>. Within the exit you can do your aggregation functions and add these values to the displayed search help data.
    Regards
      Uwe

  • Creating Image Buffer for long painting tasks

    in the post -
    http://forum.java.sun.com/thread.jspa?threadID=641283&messageID=3785845
    tjacobs01 says...
    "First of all in this case you would definitely want to create your image before sending it to the screen. ... What you should do is create an ImageBuffer, clear the background, and then paint your graph on top of it."
    In my program I have a JPanel's paint method pass its Graphics2d object to a class that does A LOT of painting and processing.
    The performance is decent now but when i read that statement i realized i should probably be doing it that way.
    How would i implement an image buffer?

    i didnt realize there was a java2d section - i reposted this there.
    http://forum.java.sun.com/thread.jspa?messageID=3800261

  • Disk Utility: Create image fails with input/output error

    Starting to create an image and saving it into an external hard drive (MacOS extended Journaled).
    It starts after less than 60 secs it comes out with an error : Failed to create the image (input/output error)

    If you don't mind I'd like to discourage you from backing up a drive onto a disc image file no matter where you plan to save it. Disc image files can be very problematical when it comes to trying to restore the backup. Furthermore, you cannot boot from a disc image. If the disc image file becomes corrupted then you have no backup.
    I would like to propose that you think about a better way to backup your drive. You can clone the drive to your backup drive. It's easy to do using Disk Utility's Restore feature. A clone backup is not only bootable but you have direct access to all the files on the backup.
    In order to make a bootable clone open Disk Utility. Select Disk Utility Help from the Help menu. Search for +duplicating a disk+. Click on "Duplicating a disk" at the top of the list of articles. Follow the directions.

  • Problem saving Reader extended PDF created in Livecycle with Javascript functions built in

    Afternoon
    I have created an interactive PDF in Livecycle with built in Javascript functionality.  I need users to be able to complete and save the PDF so have saved it as a Reader extended PDF.  The problem I'm having is that when a user completes the form,saves it, and then opens it again the Javascript functionality is not showing despite showing the original selection that the user has made.  The Javascript is simply a dropdown menu that will show a different table based on the selection so isn't anything major.
    I've trawled forums and this is driving me mad so I'd appreciate some help.
    I am using Adobe Pro XI.
    Thanks in advance
    Ben

    At the moment I can't sorry.  I've run the Javascript debugger in Adobe Pro and it seems there are some errors
    Acrobat EScript Built-in Functions Version 11.0
    Acrobat SOAP 11.0
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#subform[3]:#area[1]:Button1[0]:initialize
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#area[2]:Button1[1]:initialize
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#area[3]:Button1[2]:initialize
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#area[4]:Button1[3]:initialize
    Basically the form has been built in Livecycle Designer and have drop down menus that show or hide tables depending on the selection but when I Reader Enable the form and users make a selection and then save the form it is not showing the table when it is opened again.
    I appreciate your help

  • Multithrea​ding with DLL function seems to run serial in stead of parallel

    The following problem was posted earlier in the Knowledgebase. I have the same problem only in LabVIEW 6.1, which is according to the solution fixed.
    Am I doing something else wrong?
    Problem: When I run DLLs (built in LabVIEW 6.0.x) in a multi-threading environment, it seems like my calls are being run in series
    rather than in parallel. Why is this happening, and how can I fix it?
    Solution: LabVIEW 6.0.x only creates 2 data spaces for re-entrant VIs that are LabVIEW DLL entry points. Therefore, only 2
    calls can happen concurrently (run the same LV DLL entry point in parallel.) This means that if you launch 6
    threads to run the
    same LabVIEW DLL entry point, your 6 threads will run serially in pairs of two. With the release of LabVIEW 6.1, this has been
    fixed to allow for a more true multi-thread capability.
    Attachments:
    dlltest.llb ‏199 KB

    One problem is that if both threads are trying to access the same hardware resource (PCI-bus card) those accesses could be serializing the calls.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Create a melody with Labview/ Function Generator

    Hi (first sorry for poor english, not my native language)
    I have a project at school which is creating a melody using Labview and a function generator. I've worked on it for hours now and i still can't get through it.
    I joined the vi file with my post so you can get a look at what i've done so far.
    First, i do'nt know which loop i have to use (u'll understand soon enough if u just take a look at the vi file), the problem is that i want to create 4 arrays using 2 text files.
    The first one is used as a reference : exemple the frequency to play an A is 440Hz, so my first text file looks like that :
    A 440
    B 493
    the second one is my melody, which includes the notes and the tempo (in ms)
     , so it's like :
    B 1000
    C 1500
    I used the first two loops to seperate each string lines of my files so I have at the end 4 different arrays. One containing the note's references, one containing the frequency, one containing my melody's notes and one containing the duration of each notes.
    The problem is that when I use a while loop, it seems that my arrays are not containing every elements it should, it only has the last one. Just try to run the vi file.
    Could anyone give me some help ? Don't hesitate to ask more questions if u didn't fully understand my problem !
    Thx
    Attachments:
    PR.vi ‏19 KB

    Hi claudeuntel,
    Your array contains just the last note because at each for loop iteration a new table is created.
    You have to send the table you created at one iteration to the next one.
    To do this you can use shift register.
    I didn't have tested the VI below but it should looks like that.
    Valentin
    Valentin
    Certified TestStand Architect
    Certified LabVIEW Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • Create a package with one function - Error Ora-00907

    Hello,
    I want to create a package which should store one function.
    The code looks like this:
    Package Header:
    CREATE OR REPLACE
    PACKAGE "PCK_REPORT" AS
      TYPE t_varchar2 IS TABLE OF VARCHAR2(4000);
      FUNCTION f_tabtostring(i_varchar2 IN t_varchar2) RETURN VARCHAR2;
    END;Package Body:
    CREATE OR REPLACE PACKAGE BODY "PCK_REPORT" AS
      FUNCTION f_tabtostring (i_varchar2 IN t_varchar2) RETURN VARCHAR2 IS
                                o_string VARCHAR2(32767);
      BEGIN
        FOR i IN 1 .. i_varchar2.COUNT LOOP
          IF i != i_varchar2.FIRST THEN
            o_string := o_string || ', ';
          END IF;
          o_string := o_string || i_varchar2(i);
        END LOOP;
        RETURN o_string;
      END f_tabtostring;
    END;Comilation works fine, but when I try to use the function with the following example:
    SELECT pck_report.f_tabtostring(CAST(COLLECT(mytable.col1) as t_varchar2)) as column1
    FROM mytable;it only returns an error ORA-00902: Unknown datatype.
    When I add the package name to the datatype at the cast in the sql statement, it returns an error ORA-00903.
    What is my misstake?
    Thanks,
    Thomas

    create a global type, and not in the package :
    1* create or replace type t_varchar2 is table of varchar2(100)
    SQL> /
    Type created.
    1 CREATE OR REPLACE PACKAGE "PCK_REPORT" AS
    2 FUNCTION f_tabtostring(i_varchar2 IN t_varchar2) RETURN VARCHAR2;
    3* END;
    SQL> /
    Package created.
    1 CREATE OR REPLACE PACKAGE BODY "PCK_REPORT" AS
    2 FUNCTION f_tabtostring (i_varchar2 IN t_varchar2) RETURN VARCHAR2 IS
    3 o_string VARCHAR2(32767);
    4 BEGIN
    5 FOR i IN 1 .. i_varchar2.COUNT LOOP
    6 IF i != i_varchar2.FIRST THEN
    7 o_string := o_string || ', ';
    8 END IF;
    9 o_string := o_string || i_varchar2(i);
    10 END LOOP;
    11 RETURN o_string;
    12 END f_tabtostring;
    13* END;
    SQL> /
    Package body created.
    SQL> select col1 from mytable;
    COL1
    test1
    test2
    test3
    test4
    test5
    test6
    test7
    test8
    test9
    test10
    10 rows selected.
    SQL> select pck_report.f_tabtostring(cast(collect(mytable.col1) as t_varchar2)) as col1 from mytable
    COL1
    test1, test2, test3, test4, test5, test6, test7, test8, test9, test10

  • SUS: Vendor not created in SRM with partner function 19

    Hi,
    I am using SRM 5.0 MM-SUS scenario. The issue is related to vendor migration from ERP and updation in SRM.
    When i migrate a vendor with account group VEND from ERP then in SRM the vendor is properly created and a corresponding entry is updated in table CRMD_PARTNER. The vendor is alotted partner function 19.
    However when i migrate a vendor with acount group VEIN from ERP the in SRM vendor is getting created and is updated in vendor organisation but its entry in table CRMD_PARTNER is missing.
    Does this mean that only account group VEND is considered as vendor in SRM and thus assigned partner function 19 and gets a entry in mentioned table.
    Request your inputs.
    Regards,
    Ashish

    Vendor data is maintained in table CRMD_PARTNER only when transactional documents exist for the vendor.

  • Creating a  query with group function and non group function

    Could anyone help me with creating a query that contain single row function and multiple row function in Report6i.
    what i want to do basically is to create a query that will display sum of certain columns according to a column in that table

    You can either calculate a sum yourself, or let Reports do it for you.
    1. select sum(column) from table where ....
    This will just display the sum, not the records.
    2. Make a query: select column from table where ...
    Create a summary field. You can do it manually or with the report wizard.
    That will create a report like this:
       Column
           10
           20
           15
       ======
    Sum    45                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to create an app with this function?

    Hi, people. Total beginner here.
    How can I create an application that auto-generates instantly downloadable PDF files with contents based on whatever the user chooses to click on or type on the front-end interface. I saw such Flash app before on a Facebook Page so I kinda believe it's possible.
    Any help would be appreciated. Thanks!

    you can try using an actionscript class like purePDF (http://www.sephiroth.it/weblog/archives/2010/02/purepdf_a_complete_actionscript_pdf_l.php) or use server-side code like fpdf (www.fpdf.org).

  • SRM creates purchase requisition with wrong functional area

    Hi,
    We face the situation that we have postings to wrong functional Areas. These postings belong to a PO related GR. The PO originates  to a purchase Requisition. The functional area is can see there iw wrong, too. This seems the initial problem. If I create a PR using the same cost center and account it derives the correct funtional area. The PR is created out of SRM.
    We upgraded this year to EhP6 and it seems the issues started shortly after.
    Any idea how to correct?
    Thanks
    Exberliner

    Hi,
    Hope your BAdI is working now.
    MD51 is used for project. It creates replenishment orders against a WBS element. After this, you can run MD01 which will create replenishment order by material/plant level.
    If you have a question related to PS, maybe you can post your thread in this space:
    SAP Project Systems (SAP PS)
    Kind Regards,
    Mariano

Maybe you are looking for