01-16-2013 01:13 PM
Using the signal generator function, how do I increase the duration so that I can use the entire waveform with a frequency under 1 Hz?
Right now, at 1 Hz or greater, the entire waveform shows up. However, at 0.5 Hz, only the top half of the waveform is shown. Any idea how to get around this? Thanks, Jonathan
01-16-2013 04:23 PM
Which signal generator function are you using? Maybe you could attach your code.
This is what I get...
01-17-2013 05:45 PM
Hi Troy,
Thank you so much for your help. I was able to create a vi similar to the one you have, and I was able to generate a waveform with 0.5 Hz as you have shown. However, when I send that waveform to my speaker, (I am powering a speaker with the AO mult pt function), it still runs at 1 Hz. Any way around this? I have included a picture of my code.
Also, I am seeing a buffering error message Error - 10843 occured at AO wait: AO buffer write.
NI-DAQ LV system bus-bandwidth limitations, the driver could not write fast enough to keep up with the throuput. The onboard device reported an underflow error. Also, any way around this?
Thank you again,
Jonathan
01-17-2013 06:05 PM
What version of LabVIEW are you using? I haven't seen those VIs on your block diagram for many years.
What version of DAQ are you using? Is that the old traditional (Legacy) NI-DAQ or DAQmx.
What hardware are you using? How do you configure it to output the data at the correct rate?
I'm not sure I will be able to help you with the old school NI-DAQ, it's been too long since I've used it.
You may need to see if there are any examples included in your installation or search around ni.com for traditional or legacy NI-DAQ tutorials.
01-17-2013 07:05 PM
Hi Troy,
I am using Labview version 8.2 copyright 2006. The image I showed you was from a previous version that I recreated on my office computer, however I am using the 8.2 in the lab (and the icons look similar to the ones you are using.)
I am using the Traditional Legacy DAQ NI DAQ card-6036E.
I am using MAX explorer to configure the hardware. I was able using that explorer to output 0.5 Hz, which is very promising. Which tells me that may be something to do with my vi programming. It seems like its taking the waveform segment and outputing it in a 1 second time loop, no matter what duration is prescribed. Could there be something to do with the while loop or where/how its going into the AO subvi?
Let me know if you can still help. Thank you!
-Jonathan
01-17-2013 07:05 PM
Hi Troy,
I am using Labview version 8.2 copyright 2006. The image I showed you was from a previous version that I recreated on my office computer, however I am using the 8.2 in the lab (and the icons look similar to the ones you are using.)
I am using the Traditional Legacy DAQ NI DAQ card-6036E.
I am using MAX explorer to configure the hardware. I was able using that explorer to output 0.5 Hz, which is very promising. Which tells me that may be something to do with my vi programming. It seems like its taking the waveform segment and outputing it in a 1 second time loop, no matter what duration is prescribed. Could there be something to do with the while loop or where/how its going into the AO subvi?
Let me know if you can still help. Thank you!
-Jonathan
01-17-2013 07:30 PM
01-17-2013 08:55 PM
Sir Dennis is right of course. Moving to DAQmx is the best way to proceed. You will be able to do more and get more help with it and it will be easier.
If you are left with no choice though, this ran with no errors on my pc. (I don't have a scope handy to check the output.)
01-18-2013 01:33 PM
Hi all,
Dennis - turns out that I did have DAQmx installed. I used MAX to configure the task, however, I am not sure how to run that task in labview. I tried to drag the task into the vi window and connect it to the AO mult pt vi, however the wires show an error of different types. The max I/O is a user def ref tag and the AO mult pt is a traditional DAQ channel. Am I trying to access the task in the proper way? How do you simply run the task in LavVIEW?
Troy - I will try to proceed with DAQmx, however, I would still like to know how to create your vi just in case that doesn't work out. I have several questions/troubleshooting errors.
Thanks for you input guys,
Jonathan
01-18-2013 01:40 PM
You CANNOT use a DAQmx task with the old AO multi point. You have to use DAQmx functions. I would suggest you go to the DAQmx Getting Started page. At the very simplest, you place a DAQmx Read on the block diagram, right click on the task input, select create constant, click on the constant and select your task.