From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-08-2005 07:27 PM
12-09-2005 04:48 PM
12-10-2005 05:24 PM
12-12-2005 10:04 PM
Greg,
Thanks for explaining the issue more thoroughly. I am still a bit confused regarding why you are unable to do what you want.
Originally I thought you wanted to pass the value inside the same inspection. Is the problem that you are unable to pass this minimum value from one inspection to another?
If you are dealing with multiple inspections and want to pass the minimum value from inspection to inspection, then you are in luck. You can use Datasocket to store your minimum value, Datasocket can act as a global variable storage mechanism.
I am convinced that you can do what you want fairly easily in Vision Builder, but I think I need more information about your application. Below is how I understand your application, please tell me if I misunderstood anything.
You have a long steel cable that you are stretching until it snaps. Along the length of the cable you have many white cable ties initially spaced 600mm apart. As the cable stretches you are measuring the distance between the cable ties so that you can see how the cable is stretching.
Questions:
How exactly are you using Vision Builder to measure the distance between the cable ties?
a. Do you run 1 inspection for each pair of cable ties (50 cable ties would be 49 inspections)?
b. Or, do you just run one inspection which measures the distance between all of the cable ties?
Do I understand your system correctly or am I completely off base?
Like I said, I am 99% sure that you can do what you want in Vision Builder.
Lorne Hengst
Application Engineer
National Instruments
12-12-2005 11:33 PM
12-13-2005 09:03 AM
12-18-2005 07:27 PM
Lorne,
Thanks so much for the advice. That method works fine. It would have taken me a fair while to realise to even investigate the communications tools as a means of achieving what I was after. Thanks again!!
And guess what ..... if you're interested I have another question which is a bit more nitty gritty! I now have the application up and running, but the resolution I'm achieving isn't quite what I was hoping .... although not really too far off.
If you remember, the application uses 2 fixed cameras to inspect 2 gauge marks on a piece of material which is being stretched. Each camera has a field of view of approximately 150mm, which roughly equates to pixel equivalence of 0.25mm. Overall extension of the material being measured is approximately 10mm over the duration of the test.
Problem is that, in essence, 0.25mm is the kind of variation or noise I'm seeing in the overall measurement. I was hoping to see considerably less. Reading various documentation has suggested that 0.25 pixel resolution should be achievable with a good image. I think my images are good .... although they could be better! I expect that given a 2 camera system, achievable resolution should be expected to be of the order of half of this i.e. 0.5 pixel resolution .... but I don't seem to be getting there!!!
Main reason I wasn't anticipating noise is due to the output achieved from the prior system which showed virtually no noise in its generated output. However I know nothing of how the output was achieved technically.
Anyway, the really puzzling thing I've found when looking at the raw pixel measurements being generated is that they seem to 'toggle' or oscillate rather than gradually change in value. For instance, if measuring a sample not under load i.e. essentially a fixed length, the individual X pixel values seem to vary between 2 extreme alternatives rather than just vary slightly around an average. I know this all is essentially to do with the resolution of the system, but as mentioned, I thought I could achieve better.
I may also be missing something to do with synchronisation between the two images involved. To try and ensure synchronisation, acquiring the 2 images are the first blocks in the code, so as far as I can tell they should be obtained at essentially identical times. However, when the raw pixel separation of the gauge marks in the 2 images is monitored (just via screen display) it is clear that the figure essentially 'toggles' between 2 values which are approximately 1 pixel apart. Clearly, this is associated with the addition of the 2 individual image values combining. And this is what I see in the final system output.
Hopefully what I've outlined above is clear, although I know it may not be! Just wondering if you might have any clear advice on filtering the sort of variation I'm seeing from my measurements. Although I'm confident that this variation won't badly affect the material characteristics determined from the measurements .... it doesn't look very good ... and convincing others may be a problem! I will try to obtain a graphical image today to give you some idea of the system output.
I'm about to do some more experimenting with edge 'smoothing' and 'steepness' although, even having read the 'IMAQ Vision Concepts Manual', I'm not clear on their correct usage. Trials so far haven't looked encouraging!
Hope you have some advice! If not, do you know anyone who might?
Any suggestions would be appreciated. Thanks again!!
Greg
12-19-2005 01:12 PM
Greg,
I am not sure I understand the issue perfectly. and... I think understanding your issue in detail is essential to solving the problem. Can you asnwer a few quetions for me?
1. What is the resolution of your camera?
2. What is the color depth of your camera?
3. What is the field of view of your camera? (I think you said approx 150mm)
4. Can you send the images of your cable (both ends)?
5. Your measurement is fluctuating by 0.25mm (jumping back and forth, not evenly), is this correct?
Thanks,
Lorne Hengst
Application Engineer
National Instruments
12-19-2005 04:07 PM
Lorne,
You are right. Amasing how difficult it is to explain some situations in words! However, your interpretation sounds pretty close to the mark. I realised overnight that I could have obtained images of each end to show you fairly easily, and will do that today. What has proved ridiculously difficult is grabbing a screen image of the system output as displayed on our interfaced testing system ..... but that is another story! However, to answer your questions:
1. Camera resolution is 640x480 - Basler A601f - selected on price and as original analogue cameras were same resolution.
2. Monochrome - I'll include more on the camera settings later if required.
3. Field of view approx 150mm along the 640 pixel orientation. This is the axis of extension interest.
4. Will reply with images later today.
12-21-2005 03:29 PM
Greg,
Like you said, this sounds like a noise issue.
Some things to check.
1. Make sure your camera is not autozooming, autogaining, autooffsetting, autofocusing, etc.
2. Make sure you have good lighting.
3. Make sure your camera is firmly mounted.
Can you post the pictures of your acquisition, showing subsequent picutures (with an overlay showing the measurements made).
Thanks,
Lorne Hengst
Application Engineer
National Instruments