10-01-2005 09:58 PM
10-03-2005 03:15 PM
Hi Ethan,
It sounds like you are almost finished with your application. I think that you are on the right track by looking into the sequencing of your program.
I'm curious to know which version of LabVIEW Real-Time are you currently using for your application and which DAQ boards do you have? It would also help if you could tell me which example programs you are using and provide a description of how your program is currently sequenced.
Regards,
Hal L.
10-04-2005 11:55 AM
Hal,
I do not think I have Labview Realtime (unless it comes standard with the full version of Labview ). Do I need to have that? I have a 6251 DAQ board.
I've enclosed my program- it has the name of the original included program in its file name so you can see that I didn't do much to change it. I made some changes today (to make it non regeneration) but now can't get the AI to read at all. And I have no idea how to modulate the sine amplitude using the AI.
The sine wave works fine and triggers as needed. The one problem is that the sine wave doesn't end at the same point (phase) each trigger period so during the times between triggers the DC level on the AO is variable (which I do not want). Is there a way to end the sine wave at the same phase (at the zero crossing) while still triggering it with a digital input.
Thanks,
Ethan
10-05-2005 07:22 PM
Hi Ethan,
I took a look at your code and there were a couple of things that stood out. With both your analog input and analog output operations, you are reading and writing before you start your tasks. It would be best if you took the DAQmx start task vi's and moved them in front of the while loop. It also looks like you are outputting a completely different set of data than what you are acquiring. I recommend performing modifications of the data you acquire and then wiring that directly into the DAQmx write vi.
I found a simultaneous analog input and analog output example that could help you develop your application. You will have to modify it, but the vi's are already in the proper order for both the analog input and analog output operations. Go to Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Synchronization >> Multi-Function-Synch AI-AO.vi.
Regards,
Hal L.
10-06-2005 10:27 AM
Hal,
I moved the start VIs in front of the loop. And it didn't change much, yet.
I know that the AI isn't wired to the AO- that's my biggest problem. I want to be able to use the AI amplitudes and run them into the basic function generator.vi to adjust its amplitude, but I can't figure that out. It also appears that I cannot read in the AI now.
Essentially, I want to create a mixer, that uses the AI to control the amplitude of the sine wave that is sent to the AO. When the DI triggers, it looks at the AI and then outputs the modulated signal at the same time.
Thanks,
Ethan
10-07-2005 05:32 PM
10-08-2005 01:39 PM
10-10-2005 06:53 PM
Hi Ethan,
Unfortunately, this is not possible with the PCI-6251. The properties that are necessary to perform this operation with the PCI-6251are not supported.
Regards,
Hal L.