03-13-2008 07:34 AM
03-27-2008 10:08 AM
Hi
I have had a look at the program that you posted and the reason that it doesn't work when you put the two programs into one loop is because of the following; you are doing the Acquisition from the accelerometer using the high level DAQ assistant and the signal generation from the 9263 using the low level DAQ functions. I would suggest performing both operations using the low level DAQ functions and therefore changing the code that you are using for the acquisition.
I would also suggest looking at some examples in the NI example finder that show how to implement a control loop using the DAQ vi's. This will give you a good starting point. You can find these examples by browsing to Hardware Input and Output>>DAQmx>>Control>>General in the NI Example Finder.
I hope this helps.
Regards
03-27-2008 10:34 AM