Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

I/O in VBAI

Solved!
Go to solution

Hello,

 

        I'm doing pulse count on a USB-6009(ctr0) Daq. I'm wanting to use the attached code as a part of an user interface in VBAI, as to count the pulses from the motor to determine the camera line rate continously. However with the dependencies issues, I'm not sure as to how to implement it . Also I looked into using read/write I/O  (daqmx) in VBAI and being a beginner I'm looking for some insights on implementing I/O's.

 

 

thanks.

0 Kudos
Message 1 of 5
(3,971 Views)

You should call the modified VI attached in a Run LV VI step. It will allow you to read the current line rate/diff time when ever you call the Run LV step with this VI. Make sure to call this VI in the cleanup of your inspection with the close flag set to True so the DAQ session can be closed.

 

The DAQ step in VBAI is meant for SW timed single piont read/write to digital or analog channels. It doesn't support counter type applications.

 

Hope this helps,

Brad

Message 2 of 5
(3,964 Views)

Brad-

 

 thanks for the input. Can i use the same code to used as a part of a UI instead of a run labview VI step? also I'm trying to use my code as call by reference method as to work around the dependencies. Will that work? 

 

thanks.

0 Kudos
Message 3 of 5
(3,959 Views)
Solution
Accepted by topic author gsajja
Here's a slightly modified VI and a sample Custom UI that dynamically calls it.
Message Edited by Brad on 01-11-2010 12:36 PM
Download All
Message 4 of 5
(3,955 Views)

Thanks Brad! for me call by reference works well when compared to calling the VI in run labview VI step.

0 Kudos
Message 5 of 5
(3,947 Views)