11-04-2013 05:51 PM - edited 11-04-2013 05:52 PM
I'm trying to use DAQmx to set up an output that is "continuous". By that I mean that it would keep going without stop but, I want to be able to control the magnitude of the signal. I don't know why but when I try to change the output I get a lot of lag. Does anyone know how to control lag levels on continuous Outputs?
11-04-2013 07:12 PM
I tryed to diable Regeneration, but then I got Error "Error -200621 occurred at DataLoop Rev1.5.vi"
11-05-2013 01:12 PM
Hi Over_Nyquest,
I tried running your code on my system and did not get the same underflow error that you are seeing. What device are you using? Have you tried reducing your sampling rate as suggested in the error message?
Also, below are some articles that discuss how to use the properties available in LabVIEW to tune latency:
http://www.ni.com/white-paper/3874/en
http://digital.ni.com/public.nsf/websearch/45A7AC6B59E026B386256F90006DAA49?OpenDocument
11-05-2013 05:29 PM
I'm using the NI OEM USB 6221.
Some times it take several minuts for the error to pop up, before then it works just fine.
11-06-2013 06:17 PM
Have you tried reducing the sampling rate as suggested in the error message? I'm curious as how low the sampling rate must be to prevent the underflow error.
Also, LabVIEW has a shipping example that should allow you to change parameters while running. Can you try running this example to see if it throws the same error? The example can be located by going to Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Output >> Voltage (non-regeneration) - Continuous Output.vi
11-06-2013 06:50 PM - edited 11-06-2013 06:53 PM
I'm trying to avoid changing my rate, because I dont want to change the frequancy at witch my distorted sine wave is playing. Also I'm only writing 1000 samples ever second, and that's way lower then what the limit on USB should be.
I opened this example and ran it on my hardware.
Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Output >> Voltage (non-regeneration) - Continuous Output.vi
I got the same lag here that I did on my own VI. The software writes new data to the NI-USB-6221 with in .1 secondes, but it takes about 10 seconds for be to see the change on my voltage meter.
11-07-2013 07:38 AM
There is lag but no underflow error with the example VI, is that correct?
When trying to tune latency, the first parameter you have to change is the regeneration mode (from regeneration to non-regeneration, as you have done). The second parameter you can change is the data transfer request condition:
http://digital.ni.com/public.nsf/websearch/45A7AC6B59E026B386256F90006DAA49?OpenDocument
What happens if you add this property to the shipping example?
05-19-2017 04:51 AM
try with non regeneration property node i hope it will help you