LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

First Project on Labview

HI All,

It has been a while since I last used Labview. 

I was told that the last time that I used Labview, that if I want to bring any data into it, I have to use a DAQ and then in the software, put in a DAQmx block. 

 

I am using a USB 6009 DAQ module, but when I search for the DAQmx block, there is nothing there that I can see. 

I am using Labview 2025 Q3. 

Essentially, I am using a small microphone to show the waveform it outputs on a xy graph. 

I have attached photos of the physical setup, the VI block diagram, the front panel and also the VI Max configuration. 

DAQMx seems to be installed, but like I say, when I look for it, there are no such controls. 

The only thing that I can find is the DAQmx Physical channel, which I have set to AI4 and AI0, which is what the microphone is connected to. 

I have checked in NI Max and tested the inputs of the DAQ and they seem to be working. 

I have tried to connect the DAQ physical channels to various things, such as the XY graphs and also a merge signals block, but Labview comes up with an error - "You have connected terminals of different types".


So what am I doing wrong please??

 

20260205_104836.jpgVI front panel.jpgVI Block.jpgNI Max.jpg

0 Kudos
Message 1 of 5
(291 Views)

I would recommend to start with a few basic LabVIEW tutorials, learn about dataflow and also look at the shipping examples.

 

(On a side note, sound is sampled at a constant rate, so a plain waveform graph would be correct, not an XY graph.)

0 Kudos
Message 2 of 5
(244 Views)

As a newer member myself, when they say "think dataflow" they literally mean follow the data from start to finish. Don't just "know" that data gets from point A to point B but understand how it got there and what happened to it along the way. There are also several "sound" related projects that NI provides, and you can find them by having LabVIEW open and going to: Help-> Find Examples-> search-> *type* sound. 

Message 3 of 5
(239 Views)

Once you get the basics of LabVIEW down (dataflow, data types, etc. as mentioned), this is a DAQmx-specific article that might be very helpful:

Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications 

 

 

Message 4 of 5
(237 Views)

Try the following:

  1. Open LabVIEW.  You should see the "Getting Started With" display that shows you some recent VIs and Projects you might have opened.
  2. Type Ctrl-N (which is shortcut for "New VI".  This should bring up a new VI called "Untitled 1".
  3. Type Ctrl-E to select the Block Diagram window.  Right-click your mouse to bring up the Functions window, and click the little thumbtack in the upper left corner to keep it visible.
  4. You should see the "Programming" Window opened, showing sub-Palettes called "Structures", "Array", "Cluster, Class, & Variant", and about a dozen additional sub-Palettes.
  5. Notice that there are other Palettes (besides "Programming" you can choose.  The next one is probably called "Measurement I/O". 
  6. Click on "Measurement I/O".  Notice the first sub-Palette that shows up.  
  7. Explore what you've found!
  8. Now follow @Kyle97330's suggestion and Learn 10 Functions in NI-DAQmx and Handle 80 Percent of your Data Acquisition Applicaitons!
  9. Hint -- ignore the first suggestion, and avoid the Dreaded DAQ Assistant!  [My personal bugaboo].

Bob Schor

Message 5 of 5
(220 Views)