loading
 
VBScript Blob Count and Display Text
Anonymous
13 year
Hi,

I have a VBScript Problem.

I'm developing a counting program, where it will display "PASS" if the number of blobs is equal to 8

How do I display a text if my variable results is equal to 8?

I've written the VBScript codes.. There seems to be a problem because it always displays "FAILED"


blobs = GetVariable("TAB1_THICKEST")


      if blobs = 8 then
        

  SetVariable "RESULT", "PASS"
else
  SetVariable "RESULT", "FAILED"
end if


Thanks in advance !
Anonymous 13 year
Hi,

It will depend on what previous filters you have. It seems like you may be using the Blob Filter module before this script? Perhaps if you include a sample image and your robofile we can better help.

You can also add the Watch module to see what variables exist at that point in the pipeline. Not sure where the TAB1_THICKEST variable is being created.

STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index