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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delayed response

Here is a video of a project based on USB 6218 and an accelerometer mx2125. I use the accelerometer as a remote for positioning 2 servo motors( one for rotating, one for the claw) howevere as you can see from the video the servos response is very delayed.

https://www.dropbox.com/s/a4y74ogtzsi0dle/VID_20130720_184937.mp4

 

How can I fix this? 

0 Kudos
Message 1 of 3
(2,146 Views)

milupas,

 

If you are having execution speed issues you might rethink using Express VIs, especially since you are using four, just because the Express VIs are bulky and can take a while to run.  Express VIs are really good when you want to construct a program really quickly but they themselves are their own huge VIs.  These VIs give you a lot of options but can operate slower because they are massive. 

 

 

If you go to Help>>Find Examples...  This will bring up the NI Example Finder.  On the Browse tab you will see bunch of folders and you will find example code to replace your DAQ Assistant Express VIs is in the following directory:  Hardware Input and Output>>DAQmx.  

 

Functions to simulate signals can be found in the Functions Palette here:  
Signal Processing>>Signal Generation

 

Post again if you still get the delay after you replace the Express VIs.

Peter T
Applications Engineer
National Instruments
Message 2 of 3
(2,094 Views)

Another suggestion in replacing the Express VIs is to make your own SubVIs that do what the Express VIs are doing and then place them in your current code in the place of the Express VIs.  This will keep your code clean.

Peter T
Applications Engineer
National Instruments
Message 3 of 3
(2,093 Views)