11-23-2009 08:34 AM
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
11-23-2009 09:22 AM
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.
11-23-2009 10:50 AM
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!!!!
11-23-2009 12:45 PM
11-23-2009 02:18 PM
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...
Thank you very much for your help.
11-24-2009 09:30 AM
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
11-25-2009 09:02 AM
Hello John P,
Thanks for the example.
Happy Thanksgiving!!!!