From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-23-2012 01:26 PM
Actually that is what I am trying to do it is similar to the one which I am trying to do but in that example I am trying to vary the frequency of second sub vi, can you help me with that. Is that the correct proceedure?
01-23-2012 01:51 PM
I encountered an error like this
Error -200524 occurred at 2277.vi
channels in the data does not match the number of channels in the task.
When writing, supply data for all channels in the task. Alternatively, modify the task to contain the same number of channels as the data written.
Number of Channels in Task: 2
Number of Channels in Data: 4
Task Name: _unnamedTask<33>
01-23-2012 01:52 PM
I don't think you understand what I'm trying to tell you, because you keep making the same mistake. Did you try just running the example that you directed me to, without modifying it? It will generate sine waves on both ao0 and ao1.
I understand that you are trying to do something different. You are trying to run different waveforms on each channel. You have all of the pieces of the puzzle...you're just having trouble putting them together.
If you're unable to open the code I'm posting, because you're using an older version of LabVIEW, please say so. It's pretty clear that you're not running the code I've posted for you, and I assume that's because you're unable to do so. It would have helped if you'd told me that.
Here is a picture which shows exactly what you need to do. This will generate sine waves of different frequencies on each channel.
This tells you everything you need to know. It's essentially a combination of everything I've posted for you. Do it exactly like this. The functions I'm using to generate your sine waves can be found here:
01-23-2012 02:26 PM
Thank you very much I am done with the code.
01-23-2012 05:01 PM
I really thank you very very much and sorry for troubling you if any.
01-23-2012 05:07 PM
You are very welcome! We might not have understood each other the whole time, but we solved the problem and that's what matters, right?
It is working correctly for you now, I hope? If it's not, let's keep working at it until it is. I'm not going to abandon you.
01-26-2012 01:37 PM
Thanks for it actually it is working correctly, but the thing is can we use internal trigger such that both waves start at same point when it is triggered.
01-27-2012 08:23 PM
Hi chinna06,
You can use a start trigger so that you can control when the analog generation starts. A good example of an Analog Output Voltage Generation can be found by going to Help and selecting Find Examples in LabVIEW.
From there navigate to Hardware Input and Output » DAQmx » Analog Generation » Voltage » Cont Gen Voltage Wfm-Int Clk-Dig Start.vi
This example shows how a start trigger can be added that waits for a digital edge to start collecting data.
01-27-2012 08:41 PM
01-28-2012 01:14 AM
what I am trying to say for suppose when we run the code initially there should not be any wave form output and when we give trigger then both the waves should start simultaneously and should be synchronous to each other.