Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate finite cycles of sine wave using daq mx in vc++

Hi,
How to generate finite cycles of sine wave or for finite duration in vc++ using hardware timer without any sleepfunction in the code.
Thanks & Regards,
satya
0 Kudos
Message 1 of 4
(7,219 Views)
Hello Satya,
 
You have not mentioned what software or hardware you are using.  The following information would be helpful for someone to answer your question:
  • What DAQ device are you using?
  • What DAQ driver are you using and what version is it?
  • What version of Measurement Studio are you using?
  • What operating system are you using (so that we can tell you which directory you can find examples in)?

There may be an example program you can use.  I can let you know as soon as you answer the above questions.

0 Kudos
Message 2 of 4
(7,203 Views)

Hello Elizabeth,

Thanks for the response.

1) I am using NI 6040E PXI.

2) I am using NI-DAQMx 8.3

3) Measurement Studio is 6.0.0.105

4) Operating system is Windows XP.

 

I want to generate sine wave for finite duration previously in traditional daq there was function called wave_op.In which we can mention number of cycles of sine wave we wanted to generate. That function is not available in DAQMx so we have to use sleep function to generate finite period. Any hardware control function to control generation of finite cycles please let me know.

Thanks & Regards,

satya

 

0 Kudos
Message 3 of 4
(7,180 Views)

Hello Satya,

Based on your description of your application I still am not quite clear on exactly what you are looking for.  However, I would suggest that you take a look at the analog voltage generation examples found at C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog Out\Generate Voltage.  There are examples in here of how to do a hardware timed finite generation.  If none of these examples are helpful to you then please clarify what exactly you are looking for.  Thanks and sorry for the confusion!

0 Kudos
Message 4 of 4
(7,160 Views)