Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use DAQmxRegisterEveryNSamplesEvent for continuous Analog output?

Hi, there,
I'm using VB6.0. Can I use DAQmxRegisterEveryNSamplesEvent() for continuous Analog output? if so, can you tell me where to find an example? QmxRegisterEveryNSamplesEvent() for  continuous Analog input. Thanks in advance.
 
Regards,
 
Yingmai
0 Kudos
Message 1 of 3
(7,120 Views)
Hi Yingmai,

You could certainly use that function call to do something during a continous analog output.  If you want a description of the call please look at the NI-DAQmx C reference help, that should have installed with your drivers.  You can get to it from the programs menu under National Instruments>>NI DAQ.  This is not all you need to do an analog output though.  The best examples of how to do an analog output are located in the following directory.

C:\Program Files\National Instruments\NI-DAQ\Examples

There are numerous analog output examples there in different programming languages.  In your message you mentioned this QmxRegisterEveryNSamplesEvent() for  continuous Analog input.  Is that an example you already have, or do you need an example of this function in both an input and an output situation.  I was a little unclear what that part of your message was trying to say.

Please let me know if I can help any further on this issue.

Michael D
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(7,114 Views)
Thanks, Michael. I'm new of National stuff. I do need an example of using DAQmxRegisterEveryNSamplesEvent for continuous Analog output. Do you have any example of "Synchronized Analog Input/Output" in VB or C++? Thanks in advance.
 
 
Yingmai
0 Kudos
Message 3 of 3
(7,105 Views)