01-11-2010 08:33 AM
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.
Solved! Go to Solution.
01-11-2010 10:16 AM
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
01-11-2010 11:33 AM
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.
01-11-2010 12:35 PM - edited 01-11-2010 12:36 PM
01-11-2010 01:39 PM
Thanks Brad! for me call by reference works well when compared to calling the VI in run labview VI step.