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.
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.
03-26-2014 02:58 PM
I am a LabVIEW Neophyte. I have inherited a LabVIEW project from a previous employee long gone from the company I work for. The project was written using Traditional NI-DAQ and I need to update it to NI-DAQmx so that it will be 64-Bit compatible. I of course ran into trouble with the very first VI that I am trying to upgrade.
This VI was built with LabVIEW 2011 SP1 and I need to replace the AI Config, AI Start, AI Read, Channel to Index, AI Control, and AI Clear VIs with their NI-DAQmx equivalents. Upgrading it to LabVIEW 2013 SP1 is possible if that makes things easier.
Now here is the tricky part. I want to keep the terminals on this VI the same if possible. This VI is used in several places and in a few different programs and I want to make the change as minimally invasive as possible. If possible I want the changes to be made only inside this VI.
I am looking for any help and or advice. Thank you.
Solved! Go to Solution.
03-27-2014 08:35 AM - edited 03-27-2014 08:37 AM
First, Abandon all hope of keeping the connector panes identical. It is possible but, foolish to attempt. (Just trust me OK?)
Read these Knowledge base articles
http://www.ni.com/white-paper/3021/en/
http://www.ni.com/white-paper/4342/en/
What you are attempting requires skill usually not developed in a LabVIEW neophite. (And you are starting with "Spaghetti" code- This will not be "Fun") Do audit a training course and get to know your local NI rep. Odds are a few pointers from a local expert will point you away from some serious mistakes.
Take Care
03-29-2014 03:08 PM
I completely agree with Jeff. I also "inherited" a LabVIEW 7 Real-Time "mess" using legacy DAQ, and spent several years trying to learn "how to". I eventually abandoned trying to "modernize" this code, started over with LabVIEW 2010 and DAQmx, and never looked back.
There's a wonderful paper (in addition to the two Jeff mentioned) called something like "Ten Functions that do 90% if the work in DAQmx" (of course, I've got a copy somewhere on my desk at work, but couldn't find it just now doing a Web search ...). It really does show you how easy "doing it the modern NI Way" can be (especially compared to Legacy DAQ).
03-31-2014 08:19 AM
Thank you for your replies. Jeff your post especially gave us a good laugh around the office. I will definitely take a good look at the articles that you mentioned. The good news is that I am not under time constraints with this upgrade. Hopefully as I go along it will become easier for me.
08-06-2014 08:08 AM
I managed to complete the upgrade. The links that you provided Jeff were extremely helpful. I have attached my solution here in hopes that in the future someone may benefit from seeing the before and after results.