Sapera LT used with CVI

Is that what someone has successfully used vision of DALSA, Sapera LT, with CVI library?

Sapera LT supposedly has a C language interface.

I have this poster in the forum of machine vision, but he seems to be more a SW problem (if, indeed, there are problems) a matter of HW.

In principle, any standard interface of C (C89) should work with CVI I think... If it's for a framegrabber DALSA, or anything else.

I was just curious if anyone had tried this specific thing, and if so, how it worked.

Thank you

Menchar-

It turns out that you can use Sapera LT with CVI 2009.  You use the api 'base' which is an interface in ANSI C with the export header file and import for the DLL library is involved.  During compilation, I found 6 #defines which were redefined to somehow - the limits they were constant max on the different types of integers.    It seemed the stuff of limits.h, but it wasn't - I never figure out how or where he defined twice, so I just #undef had these just before the place where was held the redefinition and the problem disappeared.

I was unable to use the framegrabber as a "camera" (peripheral), I used as a 'framegrabber"and loaded separately from the configuration files CCA and .cvi instead of a camera (.ccf) configuration file.  I have hooked up to a simulator CameraLink and grabbed a focus, then he wrote on the disk.  A close inspection of the data showed that it was seizing everything is OK.

I used the 1.5 LT Sapera 7.0.0 and X 64 driver version.

So I feel pretty good about this so far.

Menchar

Tags: NI Software

Similar Questions

  • Sapera LT with CVI

    Now this is heresy...

    Anyone could use a framegrabber DALSA and the Sapera LT C programming API to capture video from a CVI application?

    DALSA announces a C API language, it is not certain that it is possible to work with something else using PVC as a C compiler (which it can do - PCV is also a compiler C89 but not a C99 compiler).

    Thank you.

    You can do with the api of 'base' which is a Sapera ANSI C interface.  I had to UNDEF as some multiply integer type limits, then he compiled, linked and ran everything is OK.  I used the interface "framegrabber' rather than the 'camera' interface or"peripheral"to catch a ground test on a simulator.  I used the CCA and .cvi files that I created using CamExpert.

    I did it with CVI 9.1, WinXP SP3, will undermine LT 7.0.0, X 64 driver 1.5.  Works with single and double head X 64 acquisition cards.

    So using a framegrabber NOR is nice, it is also possible to use a framegrabber DALSA of CVI.

    Menchar

  • The interface of the AVI with the PC using LabWindows/CVI

    Hi friends,

    I have a vector Network Analyzer Keysight Technologies / Agilent Technologies N5230A. I want to run with the LabWindows/CVI to measure channel 40 GHz. I want to interface the AVI with the PC using LabWindows/CVI. It is really essential for the measures, and I have no experience in doing these things. Would you please direct me to the best, easy as possible of this work? I'm really conscious of the fact that and thank you for your time and concern.

    Mohamed

    I have a vector Network Analyzer Keysight Technologies / Agilent Technologies N5230A. I want to run it with the LabWindows/CVI and measure channel 40 GHz. I want to interface the AVI with the PC using LabWindows/CVI. It is really essential to me, and I have no experience in doing these things. Would you please direct me to the track better, easy and correct these work? I'm really conscious of the fact that and thank you for your time and concern.

    Mohamed

  • Using measure computing library UL (device USB-1208FS) with CVI

    Hello

    I'm trying to implement the system of company Measurement Computing USB-1208FS (www.mccdaq.com) in our test software tool which has been programmed in Ansi C using the CVI compiler.
    To make the first steps, I am building an executable based on the Ansi C «DaqInScan01.c» example code
    While I have no problem with the compilation of the code, the linker complains with errors shown below. Although the cbw32.lib is registered with my project, ICB seems not to be able to reference the functions of the library.
    What I am doing wrong?
    Is there the CVI samples available to guide me in the first steps regarding this device?
    I use WinXP SP3, CVI is version 9.01

    Thank you for your support

    Hello IEE_newsoft,

    Looking at the screenshot you posted, a recommendation is to make sure that the header file and library with the same name, also have you been able to call the dll or lib successfully in another environment, IE such as visual studio to check there is nothing wrong with the files. Also look at this Developers Zone,http://zone.ni.com/devzone/cda/tut/p/id/3453 it shows you how use a third party dll of CVI and http://zone.ni.com/devzone/cda/tut/p/id/8503 shows you how you can use either dynamic or static linking to call your dll.

    Hope this helps

  • Warning of 'Empty Declaration' ShObjIdl.h with CVI 9.0

    Just installed CVI 9.0 and now my project generates a warning of 'Empty Declaration' in ShObjIdl.h on line 1330

    I am including shlobj.h to support the use of SHGetFolderPath() and shlobj.h consists in turn ShObjIdl.h

    I think I have the same options as before compiler with 8.5.1.  I note that there is a new version of the SDK with CVI 9 probable factors in the explanation.

    Is this a cause for concern?

    -Ian

    Oops. It seems that I did a copy/paste error in this post, and Ian never called me on this subject. As I said, he must add a #define, not a typedef:

    #define tagSHCONTF shcontf_dummy {shcontf_dummy} shcontf_dummy_typedef; tagSHCONTF Enumeration
    #include

    Sorry about that.

    A. Mert

    National Instruments

  • Web server with CVI

    Hello

    I want to know if it is possible to create a webserver with CVI so that I can connect my application and see the data with internet Explorer?

    Backround: we run a CVI-application on a computer within a network. On this computer, collect US data from different systems and publish these data in a sign of the CVI. Users who want to see the data, connect to the computer with a remote control software.

    Now, we wondered if it is possible to create a web server with CVI. And if the user cannot see the data on his computer using internet Explorer.

    In the forum, we found a few messages very old. Are there new items on this subject?

    Thank you

    Oliver

    As far as I know that it is not supported at the moment.

    And there is the suggestion of product requiring a few laurels ;-)

  • Using the CVI TS_StationOptionsGetExecutionMask

    Hello

    I'm trying to use the CVI TS_StationOptionsGetExecutionMask to change the properties of execution mask programmatically. When I try to run the user interface, I get an error "no such interface took in charge."

    Object handle shouold be used with this function?

    What context is it in?

    I tried the motor handle, the handle of the application manager, etc.. Still the same error.

    There is a serious lack of information about a part of NOR. There is a lot of help on the classes and properties, but the help and information on the methods and more specifically library features TestStand for Labwindows/CVI is no-do. A lot of Labview help out there on the use of classes and the manipulation of properties and such, but zilch of the NOR forgotten the LabWindows step child!

    If anyone looks like this, I solved my problem with the TS_EngineGetStationOptions function to get the handle of the StationOptions object.

  • How to test the stability of the communication and to calculate ber using the CVI?

    Our Chief Engineer gave me a task yesterday. He asked me to make testing of software and to calculate the error rate binary we would like to know our stability of communication.

    However, I never touched this aspect of knowledge. I know a bit about the CVI and I want to write code with CVI bit error rate. So I could test the stability of the communication.

    But I don't know how to analyze and judge the receivers codes, whether they are good or bad.

    We use the Modbus communication protocol and receive data via a port series, so I want to back up all the data and record the total number of datas, marking as M.

    then, save the eligible data and save the number marking as N. Thus, the error rate is binary/m (M - N).

    If it's doable? Or you have a good idea. Thank you very much.

    unsigned char in_data[100]; 
    
     inqlen = GetInQLen (comport);
     for(i=0;i
    

    Above is my code that receives all the data I want to save the data [] array in_data and save the number.

    switch(inqlen)
    {
     case 19:
     {
       crc=usMBCRC16(in_data,inqlen );
       if((in_data[1] == 0x03)&&(crc==0)&&(in_data[0]==device_addr))
        {
    
        }
     }
    

    Above is the judgment of condition who receive eligible data which mark as N number.

    I know there is a prerequisite that I filter all the bad data. However, I don't know any good idea. I'd appreciate if someone could help me.

    Thank you very much.

    Best regards.

    xiepei


  • Alignment of memory with CVI 2013 problem

    Hello

    I just installed 2013 CVI from CVI 2010 and opening my old projects, I'm in trouble with the alignment of the memory.

    Not in all the projects that I opened, I get the problem, and I'm quite confused about this.

    I used to keep in line with the limits of 1 byte of memory and I have thousands and thousands of saved file with this method.

    I have prepared a very simple project (attached to this post) to illustrate the problem, consider that the result would have been with CVI 2010 'occupation of 5 bytes.

    Pragma pack() change his behavior?

    Y at - it a flag set in the Options menu or elsewhere?

    If anyone has a suggestion please help me.

    Thank you

    Sergio

    Hello

    I found the problem, there's a semicolon that follows the directive of preprocessor #pragma pack (1), and it causes the pragma is ignored.

    Remove the semicolon, everything works fine.

    Sorry!

    Sergio

  • Agilent 16702 reader has with CVI?

    My logic analyzer of Agilent 16702 has no capability GPIB.

    The example Agilent online date of windows 3.1.

    He was provided with what we call the RPI (remote programming interface) but that doesn't quite work for me, too many missing instructions.

    I have it on the network with a domain name and an address.

    I can FTP to it, but can't get out surfing with Netscape 8 years installed.

    Someone at - it a recommendation and an example of a base?

    Given a program that just load a config file, I could understand the rest.

    LabWindows please, not of LabView.

    Thank you.

    Keywords for future research: RPI, 16700, 16702, Logic Analyzer, no. GPIB

    If someone has ever control a HP6700, I recommend without taking into account the documentation of the RPI and active-X controls

    You can send all orders using telnet CVI functions as described in the CVI help sections. t turns out to be a simple operation. Only thing is to get laps of memory right buffer, a minor effort compared with problems to make the recommended approach to work.

  • asynchronuous functions do not work in a c# used by CVI application dll

    Hello

    I have an application written with CVI 9.0.1, who must interact with a dll c# 2010 (which has no window) through a CVI<->wrapper .net (created with the controller of the CVI useful .net).

    This c# dll uses the functions asynchronuous, as NetworkStream.BeginRead () and EndRead() of an object of System.Net.Sockets.TcpClient for example.

    These asynchronuous functions work very well when the c# dll is used by a c# application (with a main window) or the c# dll is converted into a stand-alone c# program (having a window with buttons, call its methods, just to try), but asynchronuous functions do not work when my c# dll is called by my CVI application (which is my goal) : execution remains inside the NetworkStream.BeginRead () for example (for the concerned thread).

    NetworkStream.BeginRead () can be bypassed successfully by using the function alternator NetworkStream.Read () instead, but the c# dll uses any other asynchronuous functions which have no associated alternator function.

    Here's some c# code (I don't have the source code of the Snmp object; got_trap() method is never called when asynchonuous calls do not work):

    public void run() / / wire

    {

    SNMP snmp = null;

    Try

    {

    SNMP = new Snmp (true);

    SNMP. NotifyListenPort = 162;

    SNMP. NotifyRegister (null, null, new NotifyCallback (got_trap), CB_DATA_);

    isActive = true;

    Timeout.Infinite;

    }

    ...

    }

    Thinking it might be a problem with the window messages that could not be processed (in the c# dll), I tried to replace the Timeout.Infinite statement in the code where the management of asynchronuous are held, by a creation of window over my loop of messages in Win32 window, but asynchronuous functions do not work better (while my loop seems to process messages successfully) :

    Form myForm = new Form(); an empty window

    myForm.Show ();

    int bRet;

    MSG msg = new MSG();

    While ((bRet = GetMessage (out msg, IntPtr.Zero, 0, 0))! = 0)

    {

    If (bRet == - 1).

    {

    handle the error and possibly out

    }

    on the other

    {

    Switch (msg.message)

    {

    default: / / everything else

    TranslateMessage (Ref msg);

    DispatchMessage (Ref msg);

    break;

    }

    }

    }

    Any idea?

    Thank you

    rvfr.

    Solved: in fact, the Assembly of snmp I used just need to be registered dotNet.

    rvfr.

  • How to convert times from second to hh with CVI

    How to convert times from second to hh with CVI?

    Can anyone advice?

    It's here. As I told you, it's very simple:

    //----------------------------------------------------------------------
    // Function secToHMSstring ()
    //----------------------------------------------------------------------
    /// HIFN secToHMSstring ()
    /// HIFN The function takes an amount of seconds and returns a string with
    /// HIFN the corresponding value in H:M:S format
    /// HIPAR sec/Value in seconds to convert
    /// HIPAR verbose/If True use "hms" separators; if not, use ":" separator
    /// HIPAR string/The output string. It is responsibility of the programmer
    /// HIPAR string/that the string is large enough to keep the resulting text
    /// OUT string
    void secToHMSstring (int sec, int verbose, char *string)
    
    {
        int     hh = 0, mm = 0, ss = 0;
    
        if (sec >= 3600) {
            hh = sec / 3600;
            sec -= hh * 3600;
        }
        if (sec >= 60)
            mm = sec / 60;
        ss = sec - mm * 60;
    
        strcpy (string, "");
        if (verbose) {
            if (hh > 0) sprintf (string, "%s%dh", string, hh);
            if (mm > 0) { if (strlen (string)) strcat (string, " "); sprintf (string, "%s%dm", string, mm); }
            if (ss > 0) { if (strlen (string)) strcat (string, " "); sprintf (string, "%s%ds", string, ss); }
        }
        else {
            if (hh > 0) sprintf (string, "%s%d:", string, hh);
            if (mm > 0) {
                if (strlen (string)) sprintf (string, "%s%02d:", string, mm); else sprintf (string, "%d:", mm);
            }
            else if (strlen (string))
                strcat (string, "00:");
            if (strlen (string)) sprintf (string, "%s%02d",  string, ss); else sprintf (string, "%d", ss);
        }
    
        return;
    }
    
  • Executable built with CVI 8.1 error-5093, the analysis library is not found

    Upgraded to 8.1 Labwindows/CVI of Labwindows/CVI 7.0 development machines. An earlier application was built using the ICB 7.0 and installed on a test computer. The same code built with CVI 8.1 is any error during execution of the function stdev, 5093 error code has been generated. (From analysis.h: LibraryNotFoundAnlysErr =-5093, / / the analysis library was not found.) Tried to build a facility with 8.1 and installation on the test computer and application errors still executing the stdev function. Back to the same application, but built with CVI 7.0, it works fine. Am I missing something with the build in 8.1 options? Or is it something in the workspace or project? Please notify. Thanks in advance

    Hi Tommy,.

    In CVI 8.0, the implementation of the analysis library has changed a static library that is linked to your .exe in a DLL that must be loaded when running. If you rebuild your source code and you want to deploy to another machine where the CVI environment is not installed, then you must re-create an installer in CVI 8.1 distribution, so that he can pack the analysis as well as your program library.

    You can confirm whether the analysis library is installed by searching for C:\Program NIUninstaller Instruments\Shared\Analysis\nianlys.dll in your target machine (although it is not enough to simply copy this file manually).

    When you create an installer in the CVI, be sure that, in the tab drivers & components in the dialog box change Installer , support of analysis element under the Group of LabWindows/CVI Run-Time Engine is checked.

    Luis

  • With CVI SQL Toolkit, how to add the new variable param column in a table.

    Dear all:

    I used the CVI Sql toolkit to create a database, but now I don't know how to add a new column to a table in variable param.

    I know, to add a column with the name of constant column could be down by below:

    DBImmediateSQL ((hdbc, "alter table table1 add column1 char [100]");

    But if Column1 is a param variablae how can I write the code? Please advise?  It will be appreciated if you could give me an example.

    Best regards!

    HI -.

    If you look at the parameters that you pass to the SQL function, you can see that the second parameter is a string constant. In your code, you can create an array of characters (string). You can then use sprintf to programmatically determine what will be the contents of this variable. In the function call, you can put the variable instead of the literal string, and you will have a customizable SQL statement.

    Hope this helps-

    John M

  • SAP check printing with OCRA Questions

    We are researching the possibility to print cheques from SAP ERP (ECC 6.0) which have a requirement of the Bank for the use of fonts OCRA for analysis.   Everything I found, it does not appear that all HP laserjet printers have the integrated police.   Is this correct?   We have a range of HP printers that would probably be used (Laserjet 2420, P3005, P3015, etc..)

    Old posts, I see that there could be 3 options to print fonts OCRA, but the only documentation we saw which refers to setting sapscript seems look option (a) below.

    "Assuming that the printer has NOT OCRA as an integrated policy, you must do one of the following values:

    b get a font cartridge or DIMM (assuming that the printer supports this). you would then have to say your print/request driver (somehow) that the police was available.

    b get a soft-font loaded on a hard drive in the printer (but I do not think that LJ4000tn will have a hard drive?) and similarly arrange for your print/apply driver to use it.

    (c) to obtain a downloadable app-police (encapsulated PCL format) that you download to the printer when required; again, you will need to organize (somehow) to your print/apply driver to use. »

    I guess my main questions are: HP makes all the necessary documentation for impression ocra in conjunction with SAP?   Font cartridges the best option and is there documentation to use?

    Thank you for your time,

    Shawn.

    Shawn

    Glad to be of assistance.

    Note that you may need several different Cartridge/SIMM/DIMM hardware Add-ons to support different target device models (and some are not supported at all?).

    The 'downloadable soft police' option should work with most modern LaserJet printers (i.e. those that support PCL5) except for the cheaper "host-based" ones.

    But I have no idea (if possible) how you would say SAP to use such a font.

    Chris

Maybe you are looking for

  • eliminate the trapezoid distortion

    Will there be an extension to the Photos that will remove the distortion of trapezium?

  • Impossible to check the Plugins since the update to 35.0

    When I go to "Tools" then click on "Add-ons" and then click "Plug-Ins" and then click "Check if Plug-Ins are up-to-date", it goes to Mozilla, check your plug in Page it only sit and rotate the "checking with Mozilla on the status of your plugins." I

  • Black bar takes up half the page

    Whenever I go to the Web site of the forum. When I click on a post of 3/4 of the screen becomes black.Direct link to a picture of the error, http://i19.photobucket.com/albums/b187/sex-man23/Firefoxerrors.jpgIt's not a virus or anything like that URL

  • Satellite A110-160: graphics card shows a maximum 64 MB instead of 128 MB

    I have a Satellite - A110-160 and recently I update my bios to 1.60v... my graphics card now shows a maximum of 64 MB instead of 128 MB... anyone having the same problem? his bad toshiba doenst previous bios support for download, I assume that evil m

  • Cannot restore Y500 - missing partition Recovery.

    I had two of the same OS Windows 8.1 on my Y500 (cloned from the original SSD). Then, last night I tried to 'refresh without affecting your files' option for my OS on the HARD drive so I have a new OS to go back to incase anything happened. then on t