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
Tags: NI Hardware
Similar Questions
-
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
-
Performance of CVI 2013 SP2 with CVI 2015 - Windows XP problem
I see that XP isn't an operating system in 2015 of the CVI.
Most of our PC are Win7 now, but we have some legacy units which require XP due to a limitation of external controller processor.
Is is possible to generate executables in 2015 CVI which will work correctly with the runtime of 2013?
Alternatively, CVI SP2 from 2013 and 2015 CVI co-exist on the same PC development?
I would not get stuck with CVI 2013 SP2 for the future just to maintain a few predictable XP-based PC.
Hi Shr,
I recommend reading through this community's message: https://decibel.ni.com/content/docs/DOC-23955
Essentially, you can develop a code in CVI 2015 but set the executable to run on previous versions of the Run-Time Engine. Note that the older version of the RTE of Side-by-Side CVI is 2012. You can indeed install previous versions of the CVI on the same computer. The shared runtime will be set to the latest version. Other versions will be side-by-side. The code is not guaranteed to work with previous versions of the RTE so be sure to test the code locally before moving on to another computer.
-
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
#includeSorry about that.
A. Mert
National Instruments
-
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 ;-)
-
Hello
Comment do pay to run a shortcut from the desktop with CVI?
The application launched by the shortcut must take into account the field "start."
For example: An Excel shortcut, if the field "start in" = "c:\". ».
the box open or save in Excel by default will be the path "c:\". »
("in so of course Excel - Options - general - folder by default =" ")Thanks for the help
Hello
I managed to do what I wanted with the ShellExecute command
(HINSTANCE) ShellExecute
HWND hwnd,
LPCTSTR lpOperation, //Executable
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory, //Repertoire of work
INT nShowCmd
example:
hResult = ShellExecute (handle,
"open."
"" C:\\Program c:\Program Files\Microsoft Office\\Office\\EXCEL. "» EXE",.
NULL,
"C:\\My documents,
SW_SHOWNORMAL);Thank you still pay your help.
-
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
-
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 to transfer files to cRIO 9066
Hello
I'm trying to copy files to a directory on a cRIO 9066.
The method I use is to map a drive in Windows 7 and I want to copy the files with the CopyFile function in CVI.
The reader is defined as \\ni-crio-9066-030c6bf1.local\files (I also tried http://ni-crio-9066-030c6bf1.local \files).
With this method I can transfer files on this disc with the CopyFile function, but the transfer rate is extremely slow.
For a 300 KB file, it will take about 25-30 years.
During this time, my request is breaking, there is no more values in the controls or the UIRs until the copy is complete.
I tried to disable 'Automatically detect settings' in Internet Explorer in tools > Internet options > LAN settings > connections as I've seen in a knowledge base (http://digital.ni.com/public.nsf/allkb/4EBE45E8A816B19386257B6C0071D025).
The copy is much more rapid 1-1, 5 sec but I have a few failures of transfer. Windows told me that the transfer failed in a popup, the file in the cRIO is a file of 0ko (and CopyFile returns an error).
In the knowledge base, they warn about the failures of transfer but I was hoping to get an error code in the CopyFile function.
I also tried to run cmd.exe copy 'name of the source file' 'target file name' with LaunchExecutableEx but I got the same results.
I'm in a dead end for now.
Do you have any idea how I can transfer files between CVI and the cRIO?
PS: I tried the WebDAV protocol in Labview and it seems fine with that (good transfer rate and no failure of transfer). But I did find this library in CVI.
Thank you for your help.
I'm sorry for my late reply.
I managed to send files in the cRIO 9066 via FTP.
I installed 'Legacy FTP Server' on the cRIO and I used the FTP API in CVI (proposed on the french forum and by the regulation).
This solution works very well.
I didn't want to use an external if possible API so I chose the FTP solution.
-
Hello
I've created a dll com in VC ++ using performance counters/timers to less than a millisecond.
This is useful when you send a message to very high speed. (say 10 or more)
This is done by the dll.
When I use CVI to create a user interface, this dll runs at a fixed rate of 1ms.
This slows down the application.
I tried to use the same dll with VC ++ host and it works well.
I need to check the registry setting to see if the useDefaultTimer is set to false or TRUE.
(I'm not near the development PC) However, by default, it should be FALSE and I have no fidle with it.
Veuileez post any suggestions you might have.
Thank you!
This problem is now solved for me.
Just the highest thread priority in the dll.
Thank you if you had the answer.
-
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.01Thank 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
-
Distribution with CVI 8.0.1 construction kit fails after installation of CVI 2010
Update out of the newspaper:
Adding files to install
**************
Internal error: A tool or the library returned an error. (Error code - 21)
**************
Error details:
Error to the MDF API function: _MDFBuildDevPartMerger_Load
returned nmdkLoadMergeModule code error 26152
Final report of the error
**************This happened earlier. CVI 7.1.1 and earlier versions than 8.0.1 (i.e. + 8.1.1) work.
Any help would be appreciated.
It turns out there are two different problems that arise in the CVI 8.0 distribution builds when you CVI 2009 or newer installed:
- Support for ActiveX container will not be included if you install the runtime in the application directory, or if you're not going under the grouping of LabWindows/CVI Run-Time Engine. In these cases, the ActiveX container merge module should be used and ICB 8.0 won't be able to find it.
- The merge module Instrument Driver Run-Time (instrsup.msm) and the Mesa merge module (NIMesaDLL.msm) cannot be moved to the application directory (which is the option on the Advanced tab that I mentioned in the previous post). This will result in the construction of distribution fails with the error you reported.
To solve the first problem, I recommend the copy of C:\Program Files\Common Files\Merge Modules\ActiveX_Container.msm and rename the copy with a space instead of a line of underscore ("ActiveX Container.msm").
The second question has no easy workaround. If acceptable for your use case, I would say either making the performance overall installation (by unchecking the option in the Advanced tab) or removing the CVI build runtime of your distribution. In the latter case, your application would be based on an already mounted overall CVI runtime engine.
If any of those who will work for you, I can get you copies of pre-2009 instrsup.msm and NIMesaDLL.msm that you would have to manually exchange and out with versions in your common Files\Merge Modules directory whenever you have need to build this distribution in CVI 8.0.
I am sorry for these questions. Let me know if you need these older modules.
A. Mert
National Instruments
-
PowerPoint model with CVI theme...
Okay, I think it's a stupid question, but it could save me time.
I'll give a long presentation of LabWindows/CVI and I wonder if there are some model (or white or simple) powerpoint file with LabWindows/CVI/theme colors I could borrow. I don't like to waste my time doing this kind of design tweaking, call me lazy
I'm not aware of a model, but an example of a slide OR official can be seen in this video of NOR
-
Conversion/appeal of an application created with CVI in Labview
Hello
I have a third-party application code created with labwindows CVI (attachment: scissor lift CVI code.rar) which is used for our control of movement of CT scans. I want to serve the Labview 8.6 my main software for data acquisition and software interface for my development. My idea is to create a dll from this CVI code and called the dll with Labview library import function is shared.
My problem is that I am no expert in CVI programming if anyone can help me how to create a dll from this code? or any other suggestions to implement this conversion?
Code CVI attached for reference.
Thank you
Lojius
A starting point can be found here
Maybe you are looking for
-
Encoder interfaced with NOR-9401
I bought a coder who has open collector and resistance to pull-up 3.3 kohm (TTL) logic output. The encoder comes with four sons: power + 5V, GND, channel A and channel B. channel A and B are logic output. Channel A and B are connected to the OID of N
-
[MM] possible display of bike Bug, flashes quickly
After you apply the update of the marshmallow on my Moto X Pure, I noticed a strange bug with display of the bike. If I have more than one open app who likes to display something on the screen of the bike, the screen with the options to open the appl
-
Hello I know that it is possible to synchronize a cRIO with SNTP server controller (condition: operating system on cRIO is VxWorks): http://digital.NI.com/public.nsf/allkb/F2B057C72B537EA2862572D100646D43?OpenDocument Is it possible to do the same th
-
Hallo,BEI meinem CS 5 green, dass bei meinem CS5 das update 4.0.5 Updater das runterlasen ist bereit zum Update.Wenn ich die betatige kommt immer die runterlasen und aktualisieren war leider nicht possible message?Wie komme ich zu meinen updated?Viel
-
HelloI bought Photoshop elements 14 a few days ago, my first photoshopping and wanted to add text. But the police followed looks like 100% larger than normal? I searched the Internet for fixing that, but everywhere it has been said, that there is no