OpenCV wrapper for LabVIEW
Anyone looked at this yet and have any impressions?
OpenCV wrapper for LabVIEW
Don
This discussion is a bit old but at the time some people tried it out. And this.
Hope this helps
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
Similar Messages
-
Hello!
My name is Daniel. I'm from Argentina and I work in Tracnova S.A.
Tracnova is the Distributors of NI in Argentina.
I am having an issue with ActiveX development for wrapper an dll driver.
I have to read strain gage aquisition data from an USB device of MANTRACOURT (http://www.mantracourt.co.uk/products/wireless-telemetry).
The manufacturer provide an dll driver. It's shipped with example for VB6 that I have been testing and it works fine.
BUT I HAVE TO USE IT IN LABVIEW.
My first problem is that I have to provide an CALLBACK function pointer as parameter to "INITIALISE" function of the dll. Here is an excerpt from the
example that is shipped (Excerpt from a form module):
Private Sub Form_Load()
'we will only handle base station addresses of 1
iBaseAddress = 1
Caption = Caption & " [DLL v" & VERSION & "]"
CLOSEPORT
'set the callback so we can receive data provider packets
Init AddressOf CallBack ''''''----------------->>>>>>>>>>>>>>>> CALLBACK function pointer as parameter to "INITIALISE" (It defined as Init)
'Open USB interface
ok = OPENUSB
If ok <> 0 Then
ShowMessage "Cannot open USB interface!" & vbNewLine
End If
End Sub
"CallBack" function is contained within .bas. Because You can only retrieve the address to a function or sub (public or private) contained within a
Standard VB Module. There's no way around this.
Here is an excerpt from the example that is shipped (excerpt from a Standard Module):
Sub CallBack(ByRef StringPtr As Long, Length As Long)
Dim PBMsg As String, rc As Long, pEnd As Long
Dim p(128) As Byte
Dim cH As Byte
Dim tID As Long
Dim C As Integer
On Error Resume Next
CopyMemory p(0), ByVal StringPtr, Length
PBMsg = Left$(StrConv(p(), vbUnicode), Length)
'strip off the base station wrapper
PBMsg = Mid$(PBMsg, 4, Len(PBMsg) - 5)
If PBMsg <> "" Then
Debug.Print CVStr2HEX(PBMsg)
Select Case Asc(Mid$(PBMsg, 1, 1)) And &H1F
Case PT_DATA_PROVIDER
'pass data to the main form if we are not closing
If Not Closing Then MainFrm.ShowMessage "DATA_PROVIDER Data Tag=" & Replace$(CVStr2HEX(Mid$(PBMsg, 2, 2)), " ", "") & " Data=" & Decode
(Mid$(PBMsg, 5, Len(PBMsg) - 6)) & vbNewLine
End Select
End If
End Sub
Then, when an data packet arrived, the driver call to "CallBack" function instead, so I can process it and do what I need.
But I can't pass pointer to function IN LABVIEW WITH "LOAD LIBRARY FUNCTION". So I did an ActiveX in VB6 for wrapping the dll of the driver. I attached the
files tha I did. The ActiveX sends an event to labVIEW everytime that a data packet arrived. I trigger an event inside the CallBack function that it's
not working, but if outside (look inside Iniciar() function where I wrote "This is the first event", the event trigger works.)
Why is not THE CALLBACK FUNCTION TRIGGERING THE EVENT INSIDE THE LABVIEW??
I also tried to make a Win32 DLL with C + + using PostLVUserEvent, but neither worked for me. I can send the code in C + + if you want to review.
Thank you for your consideration. I look forward to hearing from you.
Best Regards
Daniel Lopez
Design Engineer
TRACNOVA SA
www.tracnova.com
Attachments:
ActiveXPropia.zip 459 KBThanks a lot nyc for your kind reply.
Yes, you are right. They have COM driver, but the event does not fire in labview. Also, this driver does not implement a COM circular buffer which means that if you delay reading and processing the data, these are lost because they are rewritten. I have been asking for support to MANTRACOURT, but after several attempts, they told me they do not provide support for labview only for VB, VBA excel, and some other more, not even C + +
National I miss to much. Nice technical support !
Please help, I need to fix this issue
Thanks a lot!
Daniel -
Hi
Lots of examples of using labview but working code examples seem to be sparce on the ground -
Even though DLL wrapping seems to be the correct means of bridging to opencv most of the code when ran with VS2010 are in need of missing dependcies
the LabView CVI approach seems to be deprecated as the examples are based on 2008 versions of Labview none of these work as dependiecies of files are missing
all Im looking for is a consistance example of using opencv - can someone point me to a link or a code snippet
tks
MHello,
I am a bit familiar with OpenCV, so I know Mat is not a datatype, but a class.
I suspect that you did not properly look at the examples at the link I provided. But anyway, here is an example of Canny edge detection .dll (or rather the source code that is used to build the .dll). Plese see the attachment.
And here is the result:
P.S.: I always convert image to array in Labview, since I never noticed any performance degradation. You can alternatively use "map pixel pointer" function (this has been discussed on the forum before).
Best regards,
K
https://decibel.ni.com/content/blogs/kl3m3n
"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
Attachments:
test.cpp 1 KB -
hi,
I am using usb can module systec for sending/receiving can messages to device using third party dll.
without using dll can i read/write can messages using labview?
thanksHello,
It sounds like you are using a third party
USB-CAN device. In order to use this device in LabVIEW, you must make
those dll calls unless there are LabVIEW drivers or libraries available.
Even the NI-CAN drivers used for National Instrument CAN devices are just wrappers around dll calls.
Hope this helps.
Peter Flores
Applications Engineer -
UCalc Fast Math Parser for LabVIEW?
Several customers have been using the uCalc math parser product with LabVIEW. Recently one LabVIEW / uCalc user has attracted my attention to the fact that the new version of uCalc FMP is now harder to use with LabVIEW. Direct support for LabVIEW was never figured into the design of uCalc. It just so happened that the older uCalc version worked with it. Now, I’d like to figure out if there are enough potential uCalc FMP users to make it worth adding direct support for LabVIEW.
uCalc FMP lets you evaluate math expressions that are defined at runtime. You can define functions, operators, and variables, and use them in your formulas. The older version that is easier to use with LabVIEW can be found at www.ucalc.com/mathparser/ucfmp20.zip (you won’t find the old version in the current download page for now).
I myself have no experience with LabVIEW. However, with some 3rd party help, the user who contacted me recently was able to interface the new uCalc version with LabVIEW. Perhaps LabVIEW developers may want to weigh in. Might you be able to create an “official” uCalc FMP wrapper for the current version of uCalc, or give some tips on what it would take for me to do it?
Daniel Corbier
www.ucalc.comIn the previous DLL, I exported a series of functions such as an eval routine that returns the result of evaluating an expression, as in
ucEval("5+4")
which would return 9; a routine to define functions as in
ucDefineFunction("Area(length, width) = length * width")
or variables as in
ucDefineVariable("MyVar = 123")
plus a list of other routines.
The new version was completely redesigned. You can do a lot more. However, one exported function named uCalc() encapsulates most of the component's functionality. Instead of exporting many routines from the DLL, wrappers for routines like ucEval, ucDefineFunction, ucParse, etc., are defined in include files for the supported compilers. On the surface, things run roughly the same for the supported compilers, despite the changes under the hood. But apparently not so for LabVIEW.
ucDefineVariable for instance, which previously was directly exported from the uCalc DLL is now defined as follows in the include file for Visual Basic (classic):
Public Function ucDefineVariable(Definition As String, Optional ItemAddress As Long = 0, Optional ByVal t As Long = 0) As Long
Dim ItemDef$
ItemDef$ = "Var: " + Definition
If ItemAddress Then ItemDef$ = ItemDef$ + " At " + Str$(ItemAddress)
ucDefineVariable = uCalc(uc_Define, ItemDef$, 0, 0, 0, t)
End Function
By the way, what is the link to download the evaluation version of LabVIEW? I found links for the tutorial. And there's a "Test-Drive LabView" link that brings me to an online evaluation version.
Daniel Corbier
www.ucalc.com -
Recruitment Process for LABVIEW: Tele Interview in case of outstation candidates. Bangalore candidates will have to first come for a Written Test (Technical + Analytical), 1-2 rounds of direct technical interview.
Degree/Branches: B.E / B.Tech in Electronics / EEE / E&C / E& Instrumentation .
ROLES AND RESPONSIBILTIES OF ASSOCIATE ENGINEER-SEG:
Development
1. Responsible for developing software for the project/module allotted to you with smooth coordination and smooth handing over of the work executed by one to another member in case of change of projects.
2. Expected to work on multiple projects, project dead line, adhere to coding guidelines and update your progress on the project on a weekly basis to your immediate supervisor.
3. Developing the software strictly as per the requirement specification, design and Bug free.
4. Responsible for building a trouble-free system to the satisfaction of the customer.
Installation
1. Responsible for installation of hardware and software at customer site for coordinating with the vendor and Manager – Sourcing to see that works done by the vendor is as per requirement specification
Customer Support
1. Responsible for providing support to the customer on the system supplied by the Captronic Systems in the past as well as present.
2. Attends to the support case within 48hrs(local) / 96hrs(outstation ) / 96hrs(out of warranty) of reporting and collecting the Support Closure Report from the customer and submit it to the SBU-HEAD
3. Informs Support executive with Support Status, Action Taken and Support Closed On
Training
1. Responsible for providing training to customer on the systems supplied by Captronic Systems.
2. Responsible for in-house training to newly recruited engineers.
Testing
1. Responsible for testing code developed by you, by another developer and testing entire system at the customer site.
2. Responsible for testing hardware supplied by Captronic System and log the test report on the hardware test register.
Sales Support
1. Expected to travel with sales team to provide support to sales-team in proposal making at short notice and perform flawless pre-sales system and requirement study.
General
1. Expected to take part in technical sessions and keep yourself abreast with the recent product released and technical advancement made
2. Expected to become domain expert is at least one field and to constantly improve coding style and knowledge.
Quality
Responsible for implementing the project methodology and quality policy of the company for all activities under your purview
Interested candidates may forward your resumes witheir current CTC and notice period to [email protected] . Salary is never the Constraint.SANDU SUNITHA
D/o.S. Venkateshwarlu,
H.No:11/57, Kothapeta,
Maruthi Nagar,Dhone,
Kurnool (Dt.),
Andhra Pradesh.
E-Mail:[email protected]
Mobile : 91-9963586292/08884822259
Date: 09/ 05/ 2013
Respected Sir/Madam,
I have done my masters in Control Systems Engineering in Electrical
branch from Malla Reddy College of Engineering. I am a well organized
person, with good knowledge about the subject, able to do
multitasking, able to work within a team and have excellent
communication skills. As a good Engineer and excellent team player I
can handle the responsibilities and challenges of the post of an good
engineer to its fullest.
I have worked for 6 Months as Project Trainee in CSR INDIA PVT LTD. My
responsibilities in that institute include Testing, Reporting and
Debugging, Updating the bugs as a trainee fresher. I was a part of the
team that designed MERCURY TESTING TOOL, world's Best Automation tool
today. I tested the model and executed the changes.And i had worked as
Project Engineer in FUSION ELECTRONICS on Wonder ware SCADA. Presently
working as Project Scientist in NAL (National Aerospace Laborateries)
under Research and Development of IVHM(INTEGRATED VEHICLE HEALTH
MANAGEMENT) Project on MATLAB/SIMULINK ,Labview ,Wireless Sensor
Networks,WatchDog and Testing.
Here is the list of the documents enclosed with this cover letter.
1. Resume
I hope that you find these of worth. I assure you that if selected; I
will not let you down and would prove to be an asset for your reputed
industry.
Sincerely yours,
SANDU SUNITHA
Attachments:
SANDU_SUNITHA(29_Apr_2013).doc 176 KB -
Report Generation toolkit for labview 2010
H All.
I'm looking to download the report generation toolkit for labview 2010. When I proceed to download the toolkit from the national instrumnets website, it says that i need to labview 2011 or later in order to install it.
Is there a version of this report generation toollkit for labview 2010 and can someone provide a link maybe??.
Thanks for reading.
Solved!
Go to Solution.Try this: [Link removed, NI software downloads can be found on ni.com/downloads, the LabVIEW 2010 Report Generation Toolkit is available to customers with Standard Service Program here: http://joule.ni.com/nidu/cds/view/p/id/3247/lang/en, other customers may contact NI directly]
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community. -
I need the drivers of EDR Enhanced for LabVIEW 8.6 or more, please.
Hello, I want to acquire a signal with the microDAQ-Lite of EAGLE Technology and I need the EDR Enhanced LabView Driver. The one I have is for labview 6.x or 7. Currently I am working in Labview 2010 so I am needing the drivers for this version. I have found in a webpage (http://edr-enhanced-for-labview.software.informer.com/8.5/ ) that a version developed by National Instruments for version 8.5 exists, it says it is free, but i cant find it. Does anyone knows if a newer version exist? or where can I find the latest one?? Please help.
Thanks in advance.
Alejandra NI does not develop drivers for third-party DAQ devices. Contact the vendor or use the driver you have. You can load version 6 and 7 into LabVIEW 2010.
-
Third-Party Licensing and Activation Toolkit for Labview 8.5
There is any Third-Party Licensing and Activation Toolkit for Labview 8.5 as LV2010. PLS help..
Solved!
Go to Solution.I know what you are asking and in the other thread, you were told it was for 2010 only. There is some support for 2009 but not for your old version. Go with the dongle suggested or upgrade your version of LabVIEW.
-
What is the part number for labview fds cd media only
what is the part number for labview fds cd media only - i'll purchase on line but can't find the part.
Randy's definately right - you should talk to your local rep. before makig any purchases, but here's some numbers to start you off:
LabVIEW FDS for Windows2000/NT/Me/9x
776670-03 English
776670N-0313 German
776670N-0314 French
LabVIEW FDS for Power Mac OS
776690-03 English
LabVIEW FDS for Sun Solaris
776680-031 English
LabVIEW FDS for HP-UX
777010-031 English
LabVIEW FDS for Linux
777756-03 English
Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License. -
Is there a way to get video acquisition for LabVIEW through the USB port?
Using either the LabVIEW version 7 or lower versions.
jeff au;
You may want to check IVision for LabVIEW:
http://www.geocities.com/irene_he/IVision.html
Regards;
Enrique
www.vartortech.com -
Where can I find GPIB drive for Stanford SR830 lockin amplifier for labview 6?
Hi I am trying to work with the lockin amplifier (Model: Stanford Research SR830). Unfortunately, my computer only has labview 6 installed. Could you please let me know where I can download a SR830 driver of GPIB version for labview 6? I have checked the NI website. Only drivers for LabVIEW 8.0 and up are available here. http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=240C113D3165071BE0440003BA7CCD...
Please let me know. If any one could upload one, that would be so great. Thank you.Hi Wayne,
I am assuming you obtained the drivers from ni.com/drivers webpage? You can ask someone to convert it for you on the version conversion board and you should be good to go. If you create a new thread there please post the link to it over here so we can continue assisting you. Thank you and good luck!
Regards,
Basil
Applications Engineering
National Instruments -
I've searched the boards, and I have not found a solution for creating
a LLB with all subVIs for LabVIEW 8.0.1. I've seen the answer to
use Save With Options. I haven't been able to locate this.
I'm not too familiar with all of LabVIEWs options, so I greatly
appreciate any help that can be offered on this.You can do Save As... and then go to Duplicate Hierarchy to new location and then under Packiging options, select custom and then check the box that says save as llb.
Yo u can also specifiy the loaction of the files in this screen.
Kenny
Kenny -
OPC Server for Labview/PXI-RT
Hi all,
can i access Labview on a PC/WinXP or a PXI/RT System with a
OPC-Client (eg.:WinCC/Siemens) like a Compact Fieldpoint over the NI
OPC Server (NationalInstruments.OPCFieldPoint). Exist a OPC-Server for
Labview/PC/PXI?
Thanks
AchimHere you can find information concerning this issus:
http://digital.ni.com/public.nsf/websearch/CC9CDD577F041786862572120061EB5A?OpenDocument
Hope this helps! -
Does anyone have SNMP toolkit for labview software by viodia?
I want the software called SNMP toolkit for Labview. I tried contacting the people of www.viodia.com, but none of them have replied so far. If anyone has then please send me at [email protected] or [email protected] .
Thanx
Santosh Chavan
IIT MADRAS.Hello,
A great place to start is with this KB: http://digital.ni.com/public.nsf/websearch/4CD3625A939A77DE852564050047D3BD?OpenDocument.
You also might want to continue to
search the NI site for examples with the TCP/IP protocol, and see if anyone
else has worked with SNMP.
For example:
http://forums.ni.com/ni/board/message?board.id=170&message.id=162952&requireLogin=False
http://forums.ni.com/ni/board/message?board.id=170&message.id=159350&requireLogin=False
http://forums.ni.com/ni/board/message?board.id=170&message.id=162952&requireLogin=False
http://forums.ni.com/ni/board/message?board.id=170&message.id=164931&requireLogin=False
Thanks for posting! Good
luck, and let us know if you have any other questions!
Travis M
LabVIEW R&D
National Instruments
Maybe you are looking for
-
Finder is very slow, particularly when using network drive
I have a mid-2011 Macbook Air, OSX 10.9.4, and Finder is extremely slow, particularly when I am navigating my Time Capsule. First, a little history. I have tried the fixes listed in these three threads: (1) https://discussions.apple.com/thread/33582
-
Hi folks, Can anyone knows how to get description about any structure dynamicaly? I mean to say in parameter we can pass any structure name and after execution it gives all information about that structure. like component name, search help attached w
-
2 days old ipad2 keeps on rebooting
i bought an ipad2 two days ago at first it was working accurately and after i drained the factory charge i plugged it in and start charging.... after 4 hours it was almost half full (44%)... and after another hour it was still 44%... so what i did is
-
Having difficulty finding my photos to upload from iPhoto to blogger
Hello- I recently got a Mac and I am having a hard time uploading photos from iphoto to blogger. When I select "upload photos" on blogger then select iphoto library, there is no subfolder with all of my photos. The only thing there is the iphoto i
-
Where did the WELCOME TO ICHAT PAGE GO WHEN I CLICK ON THE ICON ON THE DOCK
ALONG WITH MY CONCERN AS TO WHY I AM NOT ABLE TO OPEN THE WELCOME TO ICHAT PAGE, I NEVER SET UP AN ACCOUNT AND SO THEREFORE, IT WILL NO PAGE OPENS ON THE COMPUTER SCREEN BUT THE ICHAT LOGO AND THE FILE, EDIT VIEW (ETC) SHOW AT THE TOP THAT LETS ME KN