03-25-2007 07:39 AM
03-25-2007 09:38 AM
03-26-2007 06:27 AM
Hi,
Thank you for your useful suggestions. I have cleared up the block diagram as you had suggested. I don't get any error messages but the problem is that the output from the system is not correct. What I'm doing is that I am generating a traingular voltage signal from Labview, which is the input to my system. I've set the system up so that the output should be the same triangular voltage. The digital signal generator controls a multiplexer, which changes the feedback resistance, which in turn modifies the amplitude of the output signal from my amplifier. At the moment, I am not gettnig the same signal that I put into the system. I am just getting a very noisy signal that varies between 5.72 and 5.75V. I've attached a neater version of my program.
thanks alot for the help
03-26-2007 08:33 AM
You went a little too far. the while loop I was talking about was the one around the digital write. You've now taken the digital write completely out of the loop and closing it. You can't do anything with the digital when the analog in is running. You've also closed the analog write while the analog in is running. The attached is more like what I was talking about.
Even with the diagram cleaned up, it sounds like you still have a problem. I don't know the details of your hardware setup but I would start by looking at the analog signal you are generating and verifying that it is correct to your hardware. It would help if you had a scope to troubleshoot. If the signal is correct to the hardware, then trace it through to the connection to the DAQ's analog input. If it's correct there and you still don't see the signal, then you may have wired up the DAQ incorrectly. You haven't specified the connection type (differential, RSE, etc) and I believe it will default to differential.
03-26-2007 04:25 PM
Hello,
I'd just like to let you know that I tried the interface that you modified for me and it worked! ![]()
Thanks alot for all your help. I really appreciate it. Its really helped me to design my system