Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

synchronous AO

From what I understand CWAO.Start is asynchronous (in that I mean it returns immediately, not waiting for the waveform generation to stop)
 
Is there any way to do synchronous AO, or at least get a notification when AO is done ?
 
0 Kudos
Message 1 of 8
(7,311 Views)

Hi,

The CWAO.start is a Traditional NI-DAQ (Legacy) function.  I suggest upgrading to the NI-DAQmx driver.  With NI-DAQmx, you can use the DAQmxWaitUntilTaskDone function.  More information about this can be found in the NI-DAQmx C Reference Help.  Also, here is a link to a tutorial about the Advantages of NI-DAQmx.

Regards,
Hal L.
0 Kudos
Message 2 of 8
(7,293 Views)

Thanks for the reply,

Sadly I use Visual Basic from visual studio 6, and I understand that NIDAQmx is not supported on this platform.

 

Is my understanding correct?

If so, how do I solve my problem?

 

0 Kudos
Message 3 of 8
(7,290 Views)

Hi,

NI-DAQmx 7.5 supports Visual Basic 6.0 with Visual Studio 6.0.  More information on supported platforms for this driver is available in the readme

Regards,
Hal L.

0 Kudos
Message 4 of 8
(7,258 Views)
Oh, I forgot to mention I'm using Win98 ...

from the readme, NIDAQ 7.5 is for Win2000/XP only

I have NIDAQ 7.0 installed.

So... any hope for me?

Thanks again,
Shai

@HAL L wrote:

Hi,

NI-DAQmx 7.5 supports Visual Basic 6.0 with Visual Studio 6.0.  More information on supported platforms for this driver is available in the readme

Regards,
Hal L.





0 Kudos
Message 5 of 8
(7,247 Views)

Hi,

Please take a look at the Config_DAQ_Event_Message function.  More information can be found in the Traditional NI-DAQ Function Reference Help.  This function Notifies Traditional NI-DAQ applications when the status of an asynchronous DAQ operation (initiated by a call to DAQ_Start, DIG_Block_Out, WFM_Group_Control, and so on) meets certain criteria you specify.  I think this is what you are looking for.

Regards,

Hal L.

0 Kudos
Message 6 of 8
(7,227 Views)
Hal, thanks again for your time.

the Config_DAQ_Event_Message does indeed seem to have what I'm looking for. However
I have two more question:

1) Will it works with CWAO.Start initiated output?
2) I am not sure how to use it in VB -- the examples in the manual are in C, and I do not know how to read windo messages and/or pass a reference to a callback function in VB (is that at all possible?)

Shai

@HAL L wrote:

Hi,

Please take a look at the Config_DAQ_Event_Message function.  More information can be found in the Traditional NI-DAQ Function Reference Help.  This function Notifies Traditional NI-DAQ applications when the status of an asynchronous DAQ operation (initiated by a call to DAQ_Start, DIG_Block_Out, WFM_Group_Control, and so on) meets certain criteria you specify.  I think this is what you are looking for.

Regards,

Hal L.




0 Kudos
Message 7 of 8
(7,227 Views)
Hi,
The Config_DAQ_Event_Message function should be exactly what you are looking for. There is another function that you should take a look at as well: the progress event function. More information on this function is located in CWDAQ.chm the help file .  As for your second question: there is another discussion forum that has some more information about using callback functions in VB.
 
Regards,
Hal L.
0 Kudos
Message 8 of 8
(7,203 Views)