bvrm Posted February 18, 2016 Report Share Posted February 18, 2016 Goodmorning, Currently I'm using a cDAQ 9135 shipped with WES7 as OS for a acquisition application. My code is based on the continous acquistion template (event loop, message loop, acquition loop, logging loop and visualization loop) based on data sharing with queues. Now I wanted to extend this code with daqmx writing blocks as I need to add a closed loop control. However I noticed that my acquisition loop is running too slow for a 'realtime' closed loop control. +/- 20 ms/iteration is the best i can get with a timed loop IF disable the visualization loop. Otherwise it goes to 200 ms/iteration. To have a closed loop control I read it would be better to have a real time target. Therefore I would need to change the OS of my cDAQ from WES7 to Linux Labview RT. As I understood, then the acquiring/control and logging would run on the RT target and the visualization on a host computer connected by ethernet or usb to the cDAQ. Now the questions: - Will I get better performance by going to the Labview RT solution? - Is it uberhaupt possible to change from OS on my cdaq? and if yes, how to do this? Thank you in advance. Kind regards, bvrm Quote Link to comment
bjones Posted February 19, 2016 Report Share Posted February 19, 2016 (edited) You will definitely have a more deterministic loop rate with a real-time solution, so long as your deterministic loop is coded to avoid jitter. The cDAQ 9135 does support NI Linux Real-Time, however I've never switched the OS from Windows to Linux personally. However, the source for NI Linux RT is open and available for download, so I would imagine that you could build or get an image of that distribution and install it as you would install Linux on any other machine. Link to the NI Linux source: https://github.com/ni/nilrt Some good info in this FAQ: https://decibel.ni.com/content/docs/DOC-35053 Edited February 19, 2016 by bjones Quote Link to comment
ShaunR Posted February 19, 2016 Report Share Posted February 19, 2016 You will definitely have a more deterministic loop rate with a real-time solution, so long as your deterministic loop is coded to avoid jitter. The cDAQ 9135 does support NI Linux Real-Time, however I've never switched the OS from Windows to Linux personally. However, the source for NI Linux RT is open and available for download, so I would imagine that you could build or get an image of that distribution and install it as you would install Linux on any other machine. Link to the NI Linux source: https://github.com/ni/nilrt Some good info in this FAQ: https://decibel.ni.com/content/docs/DOC-35053 Has no-one created a vmware image yet? Building Linux distros is like unraveling a jumper with chopsticks to make a tank-top. Quote Link to comment
CopperD Posted February 19, 2016 Report Share Posted February 19, 2016 (edited) Has no-one created a vmware image yet? Building Linux distros is like unraveling a jumper with chopsticks to make a tank-top. If you have one with NI Linux RT just pull the drive and image it. I suspect it would just boot as it looks like a standard x86 machine. Edited February 19, 2016 by CopperD Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.