Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't call labview vi step in VBAI 3.0

I stil miss some pieces (Row Col to Range Format.vi). Please do the following:

Open ModelD(SubVI).vi. Select File Save As, then Duplicate Hierarchy to new location. LabVIEW asks you to create a project. Uncheck all Exclude checkboxes. In the Distribution destination directory, enter the path to a new llb, then build and send me this llb.

Thanks,

Christophe

0 Kudos
Message 11 of 22
(1,813 Views)

Hi Christophe,

Thanks again for being patient and for your attention to my issue.

here's the SubVi i did as you mentioned up.

regards

Tchaou

0 Kudos
Message 12 of 22
(1,805 Views)
Hi,
 
> the VI is not broken but on the user interface VI when the program is executed i can read on the running button:"wait for the SubVi to run".
 
I tried your code and everything works normally. The User Programming VI is automatically called by Vision Builder AI when you click the Run Once button.
That's when your VI is going to be run. You can debug it by setting a breakpoint in it and launching Vision Builder AI from LabVIEW through the menu Tools>>Vision Builder AI 3.0>>Test your custom step in Vision Builder AI. I noticed that you're not setting the "new file path 2" control to anything. You might have to do that in order for your VI to work properly.
 
Christophe
0 Kudos
Message 13 of 22
(1,800 Views)
hi,
you're right the VI is working. the problem is that in VBAI the only mesurement i got access is "std Dev. =%1f". i tried to connect the output of subvi to the input of fail string to get this result from VBAI, but it doesn't work. and the custom step still get the image from the precedent step in VBAI not the result that i named Signature.Is there please a good way of getting what i want to do?
in resum i want that the custom step gets the value from the precedent step and to output it for the foward step in VBAI.
 
Best regards,
 
Tchaou
0 Kudos
Message 14 of 22
(1,796 Views)
Hi,
 
> the problem is that in VBAI the only mesurement i got access is "std Dev. =%1f". i tried to connect the output of subvi to the input of fail string to get this result from VBAI, but it doesn't work.
 
To make a custom step result available in the next Vision Builder AI steps, you need to flatten it to string, then add that string to the Measurements array.
I modified your code to add the Model result available to the following VBAI steps. I hope this will help you understand how the results work in the SDK.
 
Feel free to ask if you have any more questions.
 
-Christophe
 
Message 15 of 22
(1,773 Views)

Hi Christophe,

thank you for answer it was very helpful. i found too that  with what i was willing to do, using the logging measurement from custom step was not really efficient. I should use data Report step for me to get data from previous step. i used the technic that you showed me to make data availble for next step in VBAI. Still that one thing remain. i'm struggling to transform spreadsheet string to string. Could please give some pass to do this? I attached the code that i made to make my statements clear.

Best Regards,

Tchaou  

0 Kudos
Message 16 of 22
(1,752 Views)
Hi Christophe,
It's me again. First i'd like to thank you for your attention and your help for my case. let me let you know that you instructed me nicely to solve much problems.  For what i writed precedently it's ok i mean that i discover how to do that and it's work. The problem i got now is that i do not understand why my custom step output is not updated at each iteration when i call it to VBAI? if you could help me with this issue.
 
Regards,
 
Tchaou
0 Kudos
Message 17 of 22
(1,743 Views)
Hi,
 
The VI called "User Programming" is called each time the step is run (each time you click on run once), or at each iteration when the inspection is run in a loop. If the results are not updated, this means that the input to your algorithm must be the same.
To understand how it works, I encourage you debug your step. Set a breakpoint inside the user programming VI, save the VI, then select from the menu: Tools>>Vision Builder AI 3.0>>Test your custom step in Vision Builder AI.
Once you click on your custom step, LabVIEW should stop the execution at your breakpoint. Continue the execution. Click OK in the UI of your step to insert it in the script. LabVIEW should stop again at the breakpoint. Continue the execution.
Each time you click on the Vision Builder AI Run Once button, LabVIEW should stop at your breakpoint. Use probes to check what the inputs are and see why your results are not updating.
If you still have issues, please send me your custom step LLB (with all the hierarchy as you did before).
 
Christophe
0 Kudos
Message 18 of 22
(1,743 Views)
Hi Christophe,
I did what you told  me, but the result is the same. the problem is that when i get data without processing it and passing it through the measurement output i can see those data to the VBAI using overlay. Now when i get the same data and process it through "compare and Mode_detect (subVi)" it seem's that data don't get through. I don't know what cause VBAI to act like this but what i want as i told you first  is to get the last previous measurement to process it and pass it to the next step. I attached the test program so you can see. tank you in advance.
 
Regards
 
Tchaou
0 Kudos
Message 19 of 22
(1,729 Views)
Hello,
I am taking over this issue from Christophe. The attachment in your previous post does not include the Siloe - User Programming.vi. Without looking at it I can't say whether you are programming it correctly or not. The one thing that is important to check is if you have added your measurement (Model) to the Measurements indicator correctly or not. Take the Model output of your ModeD2 (SubVI) and wire it to a Flatten to String function. Then Add that string to a measurements cluster. Your code should look like the attached screenshot (Model.jpg)
 
Please send in your entire heirarchy (including Siloe-User Programming.vi) if you have any additional questions.
 
Regards,
Jack

Message Edited by Jack J. on 03-06-2007 10:39 AM

0 Kudos
Message 20 of 22
(1,699 Views)