Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing in VBAI 3.6.1 Variable Manger causes calculator steps to fail

When I edit variable names in Variable Manager using VBAI 3.6.1, the update will not take in any step using a calculator if any of the inspection steps used by the calcultor failed on the last pass.  However, nothing appears amiss until I restart VBAI then I get an error message for each calculator step that initiazation failed.  When I inspect these steps in turn, the calculator window will not come up, I just get an error message that a measurement is unavailable, and when checking the inputs and outputs, the only inspection variable checked is the step status, i.e., I can't tell which variable is missing, and I can't fix the step because the calculator window won't show.

 

Conversly, if I go back to a running version, and make sure that a given calculater step passes before I edit any associated varibles in the Variable Manager, then everything works OK. 

 

My problem:  I've got hundreds of these calculator errors, and no images that will ensure that every step passes.

 

Is there a bug-fix or work-around for this issue?

 

Thanks,

Eric

0 Kudos
Message 1 of 14
(4,299 Views)

Maybe you can provide a more specific step by step process to reproduce this and I can see if it's a problem in the last Vision Builder AI 2009. Here's what I tried to reproduce it:

- Started with the attached inspection.  (Calculator step using two variables a result that may not be available, which causes the step to fail).

- I run the inspection until the result isn't available and the Calculator fails.

- Then I edit the names of the Variables from the Variable Manager.

- I saved the inspection and close Vision Builder AI.

- Reopened Vision Builder AI, opened my inspection, and ran it without problems. I edited the Calculator step and noticed the labels for the variables had the original name, but when I edit Input/outputs, it has the updated name and if I OK, the labels get updated.

 

I wasn't able to see the issue where the step failed to initialize when opening the inspection, or the variables weren't checked when editing the step. Please provide detailed instructions to reproduce this.

Thanks,

Brad

0 Kudos
Message 2 of 14
(4,290 Views)

Brad,

You're right. I can't reproduce the problem in a simple example.  However, I notice two symptoms with the affected inspections:

 

1) When loading I get messages like:  "State: Timestamp - Step 1: "Calculator 1" could not be initialized."

2) And when I look at this state fromt the Configuration Interface I notice the following message in the bottom of the step: "Invoke Node in IVB GCal" I found a related thread to this message:

 

http://forums.ni.com/ni/board/message?board.id=200&message.id=12638&query.id=519119#M12638

 

This message appears to indicate that my ini file is corrupting - but I'm not clear on how to fix this.

 Eric

0 Kudos
Message 3 of 14
(4,271 Views)

Can you send the inspection you're having trouble with so I can see if I have the same problem (i.e. the VIs those Calculator steps call are corrupted). If this isn't the case, the INI may have gotten screwed up, in which case you can rename it (might be good to keep the original one around so you can restore things if needed), and then repair your installation which should install a clean INI. I'd be interested in getting your original INI file if it turns out it is corrupted so we can see what the difference is compared with a good INI.

 

Thanks,

Brad

0 Kudos
Message 4 of 14
(4,268 Views)

Brad,

That would be helpful, but I'm not at liberty to post the inspection on on a public forum; but I can send it to NI.

Eric

0 Kudos
Message 5 of 14
(4,263 Views)

Sorry for the delay. I created an email account you can send the inspection to:

vbai.support@gmail.com

 

Let me know if you have any problems.

Thanks,

Brad

0 Kudos
Message 6 of 14
(4,237 Views)

I'm having the exact same problem..  All of my calculation steps suddenly became corrupt. Vision Builder crashed citing something to the effect of a 'Pure Virtual Call fail'. Next time I attempted to open project, my Match Pattern template was gone and all of my Calculation steps are corrupt. No .ini file exists in C:\Documents and Settings\<Your Username>\Local Settings\Temp\VBAI.

 

Please advise.

 

Thank you.

0 Kudos
Message 7 of 14
(3,730 Views)

Vision Builder.ini is in C:\Program Files\National Instruments\Vision Builder AI 2010 - or whatever version of VBAI you are using.  I've had the .ini file get corrupted on a couple of occasions, you might want to save a copy of a working .ini file if you do any customization.

0 Kudos
Message 8 of 14
(3,722 Views)

I re-created all of my calculation steps, saved my project, closed Vision Builder (Version 3.0 Build 20060912141620), and created a backup of my Vision Builder.ini.  When I went to open my project again, my new calculations are corrupt!!

 

I'm trying to understand the correlation between this Vision Builder.ini file and the calculations in my project. In reviewing the .ini file, I'm not seeing one. Is there something I'm not understanding?

 

Thanks to all in advance for any light you can shine on this subject.

 

Rob

0 Kudos
Message 9 of 14
(3,715 Views)

My Calibrate Image and Match Pattern images has also disappeared!

 

Rob

0 Kudos
Message 10 of 14
(3,713 Views)