Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate waveform using DAQ assistant?

Hello! I'm working on a project that requires to generate waveform. I found an example under "Hardware Input and Output - Analog Generation - Voltage - Cont Gen Voltage Wfm-Int Clk.vi" but DAQmx was used in this example. Is there way to convert this, it's just because most of my I/O are configured with DAQ Asisstant and I've never use DAQmx since I start doing LabVIEW.

Any help would be appreciated.

Thank you very much.

 

BTW I'm using

LabVIEW 2009

PCI-6259

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 1 of 7
(4,458 Views)

You've been using DAQmx all along. The DAQ Assistant uses DAQmx.

 

What exactly is the difficulty with either the example you posted or the DAQ Assistant? Did you even try to use the DAQ Assistant? Wire up a signal source to the data input of the DAQ Assistant and run it.

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

Yes, you are right. What I'm trying to say is I always use DAQ Assistant to configure I/Os and did not really get around to DAQmx way of doing. I'm sure you know exactly what I mean.

In the example, I've got confused with the "task/channel in" part and when I see it from the sub vi I immediately thougth that I cannot make it to work with DAQ Assistant but hey it did, I just needed to create a constant for the task/channel in (with all the process of creating new task) and wired the source to DAQ Assistant and violllla!!! I've used the scope to verify the frequency I want and it works!!!

I think there's is a easier and better way of doing what I want but for now I cannot complain.

All I want is to generate a frequency of 5.5Khz (2sec) and 12Khz (3sec) and it's done....

 

In addition, I tried using "simulate signal" but did not work for me...

 

Thanks for the quick reply Dennis!!!!Smiley Happy

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 3 of 7
(4,449 Views)
I don't understand your comments. The example does not require anything wired to anything else and it certainly does not get wired to any DAQ Assistant. You should really post your code.
0 Kudos
Message 4 of 7
(4,436 Views)

Ben,

I apologized about the comments that you do not understand.

I've attached the VI that I'm working on. This is based on the sub VI that is used in the example I've posted earlier. Prior posting this VI, I tested the output with scope and seems like the desired frequencies are correct.

 

Since I'm still noob to this and willing to learn, all criticsm are welcome...Smiley Wink

 

Thank you very much for your help.

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 5 of 7
(4,426 Views)

Hi KowdTek,

 

The DAQ Assistant is a great tool for getting started with DAQ but for more control over your task you should consider using the lower level DAQmx API.  In any regard, I thought I would post an example to help you get started on our Community site--be sure to let me know if you have any questions:

 

Communities: Multi-Channel Finite Generation with Different Durations Across Channels

 

 

*Note, if the code says QUEUED that means it is still in the upload process--check back in a few minutes if this is the case.

 

 

Best Regards,

John

John Passiak
0 Kudos
Message 6 of 7
(4,405 Views)

Hello John P,

Thanks for the example.

 

Happy Thanksgiving!!!!

 

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 7 of 7
(4,378 Views)