From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand handling Vision VI differently

Hi, I am trying to acquire a single image and analyze it on Teststand. I created a VI to get an image from a USB camera. The VI runs fine and the image is good for every run. However, when I run it through TS, the image acquired gets progressively darker and darker until I can barely see the image. 

 

Uploading the VI. Any idea why TS is not handling the VI similar to standalone VI execution ?

0 Kudos
Message 1 of 3
(839 Views)

Hi,

 

When you call a VI from TestStand it should work same as in LabVIEW.

 

You can try the following to understand why it is happening :

 

Make your LabVIEW adapter setting to development.

Step into your LV code from TestStand.

Do the same from within LV environment also.

Check what is differently happening wrt running from LabVIEW only against stepping into LabVIEW from TestStand.

 

Hope this helps.

Ravi

 

Ravi

0 Kudos
Message 2 of 3
(812 Views)

Figured out the problem. The cheap camera shutter and internal image buffer was not working in sync thereby retaining a few image frames of varying brightness. Had to replace the camera with a better one and now it's working as expected. 

 

However, I also observed a slight difference in the way LV runs vision VI independent vs on a TS seq. 

If you generate a vision VI using the vision assistant, the template loading while loop has a first call icon connected to an OR gate. 

Everytime you run the VI independently, the first call boolean o/p stays TRUE.

On a TS seq after the first complete seq run, if you continue with the second run, this boolean outputs FALSE (which may make sense) but it throws the whole template image loading for a pattern match out of whack.  

 

Anyways, problem solved! 

0 Kudos
Message 3 of 3
(780 Views)