LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Traditional DAQ Upgrade to LV2019

Solved!
Go to solution

Hi there!

 

Not sure if this is the correct place for this question, but I have an old program at work that uses the Traditional DAQ VIs from LV5-7. I need to upgrade it to LV2019, but I can't seem to find any documentation for the VIs that were replaced with DAQmx.

 

Does anyone know where I can find something like a Context Help for the Traditional DAQ VIs so that I can figure out what they are doing? I've tried Google, but it seems a lot of the links to pages have been archived or are otherwise inaccessible.

 

Thanks!

0 Kudos
Message 1 of 3
(702 Views)
Solution
Accepted by topic author Santicll

@Santicll wrote:

Does anyone know where I can find something like a Context Help for the Traditional DAQ VIs so that I can figure out what they are doing?


Yes, I do: https://forums.ni.com/t5/LabVIEW/Modifying-old-VI-for-LabVIEW-2015/m-p/3370067#M992248 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(691 Views)

When I started with LabVIEW, the first program I was tasked with maintaining was a LabVIEW 7 "Real-Time" routine written several years earlier (probably in a previous version of LabVIEW) and all of the I/O was "Traditional DAQ".  It was so confusing and complex that I couldn't even get the Code Maintainer (who was mentoring me in learning LabVIEW) could explain it.  I found an NI person who was visiting a nearby University to meet with me to give me a "crash course" in Traditional DAQ, and his advice was the following:

  • Figure out the intent of the Traditional DAQ code, for example, "Acquire A/D samples from Channels 1-8 of a Multi-function PXI Module at 500 Hz, ±10V, continuous sampling, until I signal to stop.
  • Learn DAQmx and simply write the DAQmx code for doing this.

At that time, there weren't as many excellent introductions to DAQmx as there are now.  My all-time favorite is "Learn 10 Functions in NI-DAQmx and Handle 80 Percent of your Data Acquisition Applications" (if that is not the exact title, it is close enough for you to find it with a Web Browser).  Ignore (please!) the first step, which mentions the Dreaded DAQ Assistant -- try to avoid (almost) all Express VIs.

 

Another hint is to "learn how your DAQ Device Works" by connecting it to your LabVIEW system, opening MAX, finding your device, and setting up a Test Panel to do whatever you want to do programmatically (such as sample A/D from Channels 1-8 of a particular piece of hardware plugged into your PC).  You'll set it up, then you can get MAX to run it and you can actually acquire (and visualize) the data.  If you now save this task in MAX, you have the perfect 3-4 DAQmx function routine that is described in "Learn 10 Functions", namely DAQmx Start Task (with a Task Constant wired to the upper left input, opened, and the MAX Task you saved chosen as the Task to run) wired to a DAQmx Read inside a While Loop (with viewing the data in a Chart or numerically inside the loop) followed by a DAQmx Stop Task outside the loop.  Very simple.

 

Bob Schor

Message 3 of 3
(687 Views)