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.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Fastest Expected Update Time - NI 9265 Current Output

Solved!
Go to solution

I'm using a 9265 Current Output module with a 9174 chassis.  Basically I want to read in a text file, parse a value at a certain dt (right now, I'm trying 20 Hz), and write a value to the card, which will control a valve.  To break it down:  1) Read a file 4-20ma set points 2) Output the i'th value at a certain dt for every iteration in the while loop.  Can I expect with this system to be close to 20Hz?  I need my timing to be very close, but I understand that using a Windows system (Windows 7) will cause jitter in the system and prevent near-perfect timing.  Thanks.

--------------------------------------------------

Nathan - Certified LabVIEW Developer
0 Kudos
Message 1 of 4
(3,574 Views)
Solution
Accepted by topic author Nathan_S

Hello Mr._Bass,

 

The NI-9265 will update its output values every 9.5 us, which computes to just over 100,000 samples per second.  As such, the hardware itself has the capability to maintain this speed.  In terms of your system and the expected amount of jitter, this number will vary quite a bit depending on your machine.  If you have typical tasks such as antivirus, firewalls, or anything else that Windows runs in the background, jitter will be increased.  On average, the amount of jitter in a windows system is on the order of hundreds nanoseconds, but can vary widely.  Outputs at 20 Hz will update with a period of 50,000 us (0.05 s), so even if your system jitter is high and around 50 us, this would only affect your timing by 0.1%.  Please keep in mind that these amounts of jitter are estimates, and may not be accurate for your system.  

 

If your application must be extremely tightly controlled, and you are seeing higher levels of jitter than your system can tolerate, there are steps you can take to reduce jitter.  The best way is to use LabVIEW Real-Time, but this option would most likely involve quite a bit of overhaul to implement.  I would recommend simply using a hardware timed output operation in LabVIEW for Windows.  Because jitter occurs in the OS, you can write your data to the hardware buffer of your NI-9265, where the sample clock will not have any interference from Windows.  To see the difference in a hardware and a software timed operation, launch the NI Example Finder by navigating in LabVIEW to Help»Find Examples.  Next, select Hardware Input and Output»DAQmx»Analog Generation»Current.  You will see two examples, Gen Mult Current Updates-Int Clock VI   and  Gen Mult Current Updates-SW Timed VI.  The main difference between these two VIs is the use of the DAQmx Timing VI for setting timing to be hardware controlled.  More information on setting up hardware timed operations is available here: http://www.ni.com/white-paper/2835/en#toc5

 

I hope you find this information useful.  If you are concerned with jitter in your system and need an easy way to measure and control it, you could also look into using the NI LabVIEW Jitter Analysis Toolkit.  Good luck working with your application.

 

Regards

Patrick
CLA
Message 2 of 4
(3,558 Views)

I don't know that I could have received a better reply.  Thanks a million.

--------------------------------------------------

Nathan - Certified LabVIEW Developer
0 Kudos
Message 3 of 4
(3,554 Views)

In labVIEW there is a pre-installed "current-continous output " example which i want to run via cdaq 9265 to get continous current output on different frequencies. max value-0.02 amps and min value -0.004 amps is already been setup but i am getting this error "Error -200561 occurred at DAQmx Write (Analog 1D Wfm NChan NSamp).vi:6390001 . 

just please help me in the run of that program

0 Kudos
Message 4 of 4
(2,552 Views)