Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

CWAIPoint usage???

Does this definition of CWAIPoint usage these  look familiar to anyone?  Supposedly, setup to read analog inputs from a AT-MIO-16E-10 DAQ board.
 
      Begin CWDAQControlsLib.CWAIPoint CWAIArray
         Left            =   2100
         Top             =   1500
         _Version        =   131072
         _ExtentX        =   847
         _ExtentY        =   847
         _StockProps     =   0
         Reset_0         =   0   'False
         CompatibleVers_0=   131072
         AIPoint_0       =   1
         ClassName_1     =   "CCWAIPoint"
         opts_1          =   18
         Device_1        =   1
         TotalScansToAcquire_1=   100
         ScanClock_1     =   0
         ChannelClock_1  =   2
         ClassName_2     =   "CCWAIClock"
         ClockType_2     =   2
         Frequency_2     =   100
         Period_2        =   0.01
         InternalClockMode_2=   1
         Buffer_1        =   0
         Channels_1      =   3
         ClassName_3     =   "CCWAIChannelArray"
         Array_3         =   1
         Editor_3        =   4
         ClassName_4     =   "CCWAIChannelsArrayEditor"
         Owner_4         =   1
         Array[0]_3      =   5
         ClassName_5     =   "CCWAIChannel"
         Channels_5      =   "8:0"
         UpperLimit_5    =   10
         Coupling_5      =   1
         InputMode_5     =   3
         StartCond_1     =   0
         PauseCond_1     =   0
         StopCond_1      =   0
         HoldoffClock_1  =   0
End
0 Kudos
Message 1 of 4
(6,367 Views)

Hi ronyd-

Are you having a problem with your CWAI controls?  I'm not sure I understand your question.  If you can provide more information about the situation I will be glad to help.

Thanks-

Tom W
National Instruments
0 Kudos
Message 2 of 4
(6,353 Views)

Tom,

Newbie on your controls.  Wasn;t sure about how and where these properties came from.  Figured out get written out  by configuring via the Properties page (right click on control). 

My real problem is I have existing software (VB6) that I need to analyze that uses the control block.  But, I can't seem to find anything in the code that actually starts this control block.  Shouldn;t there be a start method of some sort?  All I see is a CWAIArray.SingleRead in the code.  Maybe an after-thought approach, and  not being utilized.

I guess my questions are:

1.  Once the control block is configured, how are they started/stopped?

2. Are the control blocks the interface to the NIDAQ functions, or can you just use the NIDAQ functions to access the data without control blocks?  My thinking is you don't, otherwise you couldn't access data with NIDAQ uner Linux platform.

0 Kudos
Message 3 of 4
(6,352 Views)

Hi ronyd-

1.  Because you are performing a single point read there is no need to start and stop the controls.  You would need to start and stop if you were using a multi-point buffered operation.

2.  You can certainly interface directly to the NI-DAQ driver without using the CWDAQ controls.  Those controls are an ActiveX interface to the driver itself, but you have the option of using the Traditional NI-DAQ driver directly.  More discussion about the text-based programming options for NI-DAQ boards is available in this KB

Hopefully this helps-

Message Edited by Tom W. on 11-21-2005 11:32 AM

Tom W
National Instruments
0 Kudos
Message 4 of 4
(6,348 Views)