Count number pixcel labview vision 2013
hi gays
i need your help i want to count number of pixel with template in labview vison 2013
thanks
Solved!
Go to Solution.
Try the VI IMAQ Count Objects 2 in the Vision And Motion>Machine Vision>Count and Measure Objects palette.
If that does not do exactly what you want, you can still choose to migrate the VBAI inspection to LabVIEW (Tools>>Migrate Inspection to LabVIEW from VBAI) and look at the code generated. It will produce exactly the same results as in VBAI. The only thing is that the code generated is complex.
Hope this helps.
Christophe
Similar Messages
-
Count pixels labview vision 2013
hi
i want to determined percentage of pixels in a region, like function count pixcels in NI Vision Builder AI but in labview vision 2013Brad, thanks for the response. I don't have access to the code anymore, I was more just curious about it. One of my old coworkers has actualy been in contact with me recently because he's the one who inherited my code. I had to walk him through how I implemented the VBAI code in to the main application because he couldn't just change a few setting inputs. It was more of just a inconvenience.
I guess my suggestion for the future would be for an option to output the VBAI code as LabVIEW code without all of the subVI hierarchy for those who are used to just using the IMAQ VIs. Just a linear set of code that goes from the start to fnish of the VBAI diagram that I could manipulate the way I want would be nice. -
URGENT HELP NEEDED: counting number of particles from image
this image on the left is showing particles
hello i want to create a small VI that can count number of particles from a image that i load up. please see the attached image of particles and the VI printshot.
I have used the tutorial "counting number of particles" but still the above VI does not work. it shows the number of particles = 1.. I do not know why it is doing so??
I am not an expert in Labview so please can someone tell me where the problem is. sorry i could not attach the VI file itself but i have given an image of it..
after anyone has solved this problem, i have to create a live system that will get live images from the camera - four frames every sec and the above VI has to count the
number of particles for each frame and output to the user?? is this possible can anyone do it for me???
p.s. in the above VI i read the image from file and count the number of particles. i do not do it to the binary image becuase the binary image is only a black screen
when i run it
thankyouHi Farhan,
Vision Assistant would be the best option to create some steps which you can then export to LabVIEW. You should try using the IMAQ Find Circles.vi. The attached image helps you find the number of circles of an image acquired from a camera. I have used the IMAQdx VIs in this example.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Attachments:
vision.vi 59 KB -
How to count number of edges using PXIe-6363 Counters
Hello,
I am trying to count number of edges in a test signal in a 50 ms duration. I am using PXIe-6363 card and connecting the test signal to CTR 0 SRC (PFI 8). Is it a correct connection? What else do I need hardware-wise to make a correct set up for this application?
Thanks
Jeet
Solved!
Go to Solution.Hi Jeet,
When you say interrupt signal, do you mean a pulse that will pause your counter task? If that is the case, and you want to pause your task with a digital pulse, you need to use the DAQmx Trigger Property Node and set that to Pause, Trigger Type. As you said, you can connect that signal coming from the chip to any PFI line and then set that line as the source of the property node.
There is an example that you can use that does exactly what I just described. This example is called Count Digital Events-Pause Trig.vi, and you can find it by going to Help>Find Examples..., then on the NI Example Finder window go to the Browse tab and navigate in the folders to Hardware Input and Outpout\DAQmx\Counter Measurements\Count Digital Events.
Regards.
Jorge
Applications Engineer
National Instruments
Certified LabVIEW Associate Developer (CLAD) -
VBAI vs LabView/Vision?
I am designing a machine vision system that will use 16 GigE cameras, run on a dedicated PC, and will use standard edge and blob tools to perform a fairly routine set of inspection tasks. I will not need to code any new special-purpose image algorithms.
Because of the large number of cameras, I am interested in using parallel processes/threads as much as possible.
Also, I need to trigger inspections via Ethernet/IP from a Allen Bradley/Rockwell PLC.
Would there be any obvious advantages to using the Labview Vision Development Module rather than VBAI?Here are some things to consider (in addition to what Christophe said).
1. You had asked about 32 vs. 64 bit OS..even if you're running a 32-bit application, I would always recommend a 64-bit OS. This allows multiple 32-bit applications to each have up to ~4GB of memory, and if you're talking about 16 instances of VBAI running, they can each get up to this limit instead of on a 32-bit OS being limited to the total memory available being 4GB shared between all applications.
2. Because VBAI only allows 1 instance to run the Ethernet/IP Server, you could use LabVIEW to do the communication over Ethernet/IP and manage triggering/acquiring images in parallel and then use the VBAI API to send the images to the VBAI engines with a set image variable call so the VBAI only has to process the image and send the results back to your LV program. I really liked Christophe's idea of using a network trigger that the PLC controls, but I don't know if your cameras support network triggers or if your PLC would support sending a action command to trigger them...maybe the PLC can just trigger them directly with I/O lines...I assume this isn't an option since you're wanting to use Ethernet/IP to tell another application when to trigger them.
3. If all your inspections are exactly the same (except for which camera they use), VBAI unfortunately has a restriction that only one engine can open an inspection at a time, so you'd have to make 16 copies of the same inspection and have each VBAI instance load a unique copy of the same inspection.
4. If this is the case (all your processing is the same), and the inspection is straight forward, I think using LabVIEW to run everything in parallel with a rentrant VI that does the acquisition and vision algorithm might be the simpliest and fastest approach, but it might take longer to develop the code.
Hope this helps give you some more ideas, and let us know if you have more follow-up questions.
Brad -
Counting number of people by image capturing
Hi!
i am an university student, recently i have received a image processing research project. my tutor ask me to count number of people by capturing the image. It is a huge task for me. Because human contour variation is huge, and difficult to have standard shape. i still have no idea in this field. Does anybody has ideas or resources for this??
Pls help!!!
Thanx alotHi iamcoconut,
You can use the pattern matching functions in IMAQ Vision to search for complex images, such as a set of eyes, etc. However, if you are going to have images of people from different angles, the best method to find the people is to use a Static Background type analysis. This analysis takes an image of the background without people in it and then acquires an image of the same background with people in it. Performing a simple subtract and then separating the images, removing particles, etc. isolates your people so that they may be "counted."
Matthew Smith
Applications Engineering
National Instruments -
How do you count number of changes?
I know lots of threads out there address counters. I am trying to count number of changes for example.
T,T,T,F,F,T,T,T,F,F,F.
This would give give me count of 3. I have done several renditions, but it would give me number of T or number F. I am not sure what would be the best option.
HenryHere's a faster routine:
Ton
Message Edited by TonP on 09-25-2008 07:03 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Attachments:
ArrayCount.PNG 5 KB -
How to count number of sales orders generated in a month in SAP SD
Hi SD Gurus,
I have a very strange query from client. I have to count the number of sales order created in a month for a z report. For example 30 in Jan, 25 in Feb etc. Could anyone suggest me How to count number of sales orders generated in a month in SAP SD.
Regards
Vinod KumarHi,
Goto the T.Code "SE16" or "SE16n" or "SE11".
Enter the table name as VBAK
Enter the created on date as the starting date of the period and to date as the end date.
Enter.
Click on "Number of Entries".It will tell you the number of entries created in a particular period.
If you want a report,goto the T.Code "VA05n".
Regards,
Krishna. -
How to Count Number of completed line items in past 6 months / 12 months ?
How to Count Number of completed line items in past 6 months / 12 months ?
Hi,
I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
Purchase Order document = ZEBELN
Line Item = ZEBELP.
I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
I have "Delivery Completed" field, ELIKZ.
So, based on this would I be able to calculate it in Query Designer?
If so, Please let me know howHello Deva
If youe want to calculate the completed line item for last 6 or 12 month then i think u will be displaying the query data for these montrhs...create a customer exit to give you date range and restric it in filter area....
Now Choose any of the below option
1. I would suggest to implement an additional key figure "counter" in cube and fill values with one for which delivery is completed.
Now use calculated key figure in Query Designer based on logic
IF counter = 1 THEN counter ELSE 0
OR
2. create a formula variable based on ELIKZ and use replacement path variable, it will display you no. of docs for which delivery is completed....
Award points if it solves your problem
Revert back in case of further assistance...
Thanks
Tripple k -
How to Count number of words in a file....
Hi Experts,
I have uploaded the text file, from the application server, like this:
call function 'GUI_UPLOAD'
exporting
filename = LV_ip_FILENAME
tables
data_tab = LT_FILETABLE.
The text file contains some number character words.... like "sap labs india..... "
Now, I wanted to count number of words in an internal table LT_FILETABLE.... can anybody help me?Hi,
Special Characters in Regular Expressions
The following tables summarize the special characters in regular expressions:
Escape character
Special character Meaning
Escape character for special characters
Special character for single character strings
Special character Meaning
. Placeholder for any single character
C Placeholder for any single character
d Placeholder for any single digit
D Placeholder for any character other than a digit
l Placeholder for any lower-case letter
L Placeholder for any character other than a lower-case letter
s Placeholder for a blank character
S Placeholder for any character other than a blank character
u Placeholder for any upper-case letter
U Placeholder for any character other than an upper-case letter
w Placeholder for any alphanumeric character including _
W Placeholder for any non-alphanumeric character except for _
[ ] Definition of a value set for single characters
[^ ] Negation of a value set for single characters
[ - ] Definition of a range in a value set for single characters
[ [:alnum:] ] Description of all alphanumeric characters in a value set
[ [:alpha:] ] Description of all letters in a value set
[ [:blank:] ] Description for blank characters and horizontal tabulators in a value set
[ [:cntrl:] ] Description of all control characters in a value set
[ [:digit:] ] Description of all digits in a value set
[ [:graph:] ] Description of all graphic special characters in a value set
[ [:lower:] ] Description of all lower-case letters in a value set
[ [:print:] ] Description of all displayable characters in a value set
[ [:punct:] ] Description of all punctuation characters in a value set
[ [:space:] ] Description of all blank characters, tabulators, and carriage feeds in a value set
[ [:unicode:] ] Description of all Unicode characters in a value set with a code larger than 255
[ [:upper:] ] Description of all upper-case letters in a value set
[ [:word:] ] Description of all alphanumeric characters in a value set, including _
[ [:xdigit:] ] Description of all hexadecimal digits in a value set
a f
v Diverse platform-specific control characters
[..] Reserved for later enhancements
[==] Reserved for later enhancements
u2192 More
Special characters for character string patterns
Special character Meaning
Concatenation of n single characters
{n,m} Concatenation of at least n and a maximum of m single characters
{n,m}? Reserved for later enhancements
? One or no single characters
Concatenation of any number of single characters including 'no characters'
*? Reserved for later enhancements
+ Concatenation of any number of single characters excluding 'no characters'
+? Reserved for later enhancements
| Linking of two alternative expressions
( ) Definition of subgroups with registration
(?: ) Definition of subgroups without registration
1, 2, 3 ... Placeholder for the register of subgroups
Q ... E Definition of a string of literal characters
(? ... ) Reserved for later enhancements
for more details please refer the following,
[http://help.sap.com/abapdocu_70/en/ABENREGEX_SYNTAX_SIGNS.htm]
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/902ce392-dfce-2d10-4ba9-b4f777843182?QuickLink=index&overridelayout=true]
Thanks,
Renuka S. -
How to count number of raw & put result top of page?
I try to count number of table raw it work fine but when I wont to put result top of page it dose not work
only count one table raw
REPORT ZTEST.
DATA: it_sflight TYPE TABLE OF Sflight WITH HEADER LINE .
DATA counter TYPE i VALUE 0.
start-of-SELECTION.
SELECT-OPTIONS: carID for it_sflight-carrid.
SELECT-OPTIONS: connID for it_sflight-connid.
SELECT * FROM Sflight INTO CORRESPONDING FIELDS OF TABLE it_sflight
WHERE carrid IN carID and connID IN connid.
loop at it_sflight .
counter = counter + 1 .
write: /5 it_sflight-carrid,sy-vline,
30 it_sflight-connid,sy-vline,
45 it_sflight-fldate,sy-vline,
60 it_sflight-currency,sy-vline.
ULINE.
endloop.
end-of-SELECTION.
TOP-OF-PAGE .
*START-OF-SELECTION.
WRITE: 'Total Rows : ', counter.
ULINE.
WRITE: /5 'Carrid',sy-vline,
30 'Connid',sy-vline,
45 'Fldate',sy-vline,
60 'Currency',sy-vline.
ULINE.
how can I solve this problem ?Hi
Instead of using counter in a loop use describe statement.
Describe it_sflight.
the no of rows will get populated in the system variable sy-tfill.
DATA: it_sflight TYPE TABLE OF Sflight WITH HEADER LINE .
DATA counter TYPE i VALUE 0.
start-of-SELECTION.
SELECT-OPTIONS: carID for it_sflight-carrid.
SELECT-OPTIONS: connID for it_sflight-connid.
SELECT * FROM Sflight INTO CORRESPONDING FIELDS OF TABLE it_sflight
WHERE carrid IN carID and connID IN connid.
DESCRIBE TABLE it_sflight.
loop at it_sflight .
counter = counter + 1 .
write: /5 it_sflight-carrid,sy-vline,
30 it_sflight-connid,sy-vline,
45 it_sflight-fldate,sy-vline,
60 it_sflight-currency,sy-vline.
ULINE.
endloop.
end-of-SELECTION.
TOP-OF-PAGE .
*START-OF-SELECTION.
WRITE: 'Total Rows : ', sy-tfill.
ULINE.
WRITE: /5 'Carrid',sy-vline,
30 'Connid',sy-vline,
45 'Fldate',sy-vline,
60 'Currency',sy-vline.
ULINE.
Thanks
Rahul jain
Edited by: Rahuljn on Feb 2, 2011 10:58 AM -
How to count number of ones in table
Hello,
i created one table 16x32 each cell is updating 1 byte of data,how to count number of one in all cell,and is it right way to calculate check sum??
thank youThe simplest way is to call GetTableCellRangeValues with VAL_ENTIRE_TABLE as the range, next summing array elements.
But I don't understand your comment on checksum, so this may not be the more correct method for your actual needs: can you explain what do you mean?
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
What is a best practice for counting number of payments in Payroll Run?
I'm trying to get a feel for what people are using as a means for counting number of payments being created during a payroll run. I would like to get a total number of checks, direct deposits, wires and zero net checks. My initial thought is to use the Pre-DME number "Selected and Evaluated Persons". This number seems to always match the number of persons "Selected" and "Evaluated" in posting to FI/CO.
Since many companies are restricting use of SE16 and access to many of the BT tables is locked down, I would like to use something that the end user has access to and can easily use. I don't believe the spools from RFFOUS_C and T are appropriate since it would have overflow pages (2 page REM Statements) in that number and thus would not be an accurate reflection of total number of payments.
I would appreciate your insight and thoughts on this topic.
Thanks!Hello Jennie,
This is what we do every payroll:
1. After running live payroll and before exiting our users run wage type reporter /559 to get the payroll net pay. They also run Postings to FICO simulation run to check payroll net pay GL account. This match all the time. So this is the first pass.
2. They finish all subsequent activities in PRD run upto RFFOUS_T.
3. We have developed a custom report which almost looks like REGUH which gives the net pay details by every payment method and amount to be deposited or paid. We match this report from the output we received from step 1.
4. Run postings to FICO live and check the payroll net pay GL account for final validation.
The steps might sound tedious but of a great use.
Arti -
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. -
I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in to work with Visio 2013?
For MS Visio (any version) only the appropriate version of Acrobat *PRO* provides PDFMaker for Visio.
For Visio 2013 specifically you must have Acrobat XI Pro (updated to at least 11.0.1).
See:
http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
Be well...
Maybe you are looking for
-
Can't retrieve data dictionary items in 8.0.5 DB from Powerbuilder
Hello all, I'm using Powerbuilder 7.0 in an actual project. The database is Oracle 8.0.5.1.0 for Linux (Distribution is SuSE 6.0) There's some strange behaviour which prevents developing with the database: - Connected as user system in Powerbuilder.
-
SO_NEW_DOCUMENT_ATT_SEND_API1- problem in mail text
Hi All, I am using FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send emails. I have taken the reference program from the documentation of this function module given by SAP. I want to send two attachments in text format using this FM and I am able to send the
-
Calendar keeps erasing my alerts
Recently, whenever I add an alert to a calendar event, be it 1 day or 30 days out, the calendar promptly erase that reminder. I open up the even a minute later and the alert is gone. Sometimes I get a flash of it before it vanishes. For events that a
-
Hi Friends, Kindly help me any one know about how to work outbound interface using Idoc type HRMD_07 message type HRMD_A in PA& any one have details design process document please help me. Thanks and Regards, Sai .
-
Help, Discoverer Viewr Error 404
Hello, I have a problem. When I starting Discoverer Viewer\Plus (http://host.domain:port/discoverer/viewer) with httpServer,Agent etc. started appears error: HTTP 404 Page not Found. but the page http://host.domain:port appear correctly! Why ? Excuse