LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 200077 in audio communication

Solved!
Go to solution
Does the myRIO have any other input ranges? Does it have one that includes the amplitude that you want to generate? If so, select that range. If not, start looking for different hardware.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 11 of 20
(1,324 Views)

Its range is from +2V to -2V. And the device is myDAQ.

 

Regards

Omer

0 Kudos
Message 12 of 20
(1,319 Views)
Yes, but some devices have multiple input ranges. Does the myRIO? The manual will tell you. People put a lot of effort into writing documentation so it can answer this sort of basic question.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 13 of 20
(1,312 Views)

So far from the documentation i can get is that theere are not multiple ranges.

0 Kudos
Message 14 of 20
(1,307 Views)
Then you are needing different hardware.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 15 of 20
(1,298 Views)
Solution
Accepted by topic author Omershah

It is so trivially simple to fix your problem, but you just won't do it!  Here are the simple steps (which I've actually tested to make sure I'm saying it correctly and it gives the results I expect):

  1. Plug your myDAQ into the PC via its USB connector.
  2. Start MAX.
  3. Under "My System", open "Devices and Interfaces".
  4. Find the device "NI myDAQ" and select (click) it.
  5. In the pane that opens on the right, click "Test Panels".
  6. Select the "Analog Input" tab.
  7. In Channel Name, select audioInputLeft.
  8. You should see something like this:myDAQ1.png
  9. Click Start.  An Error indicator should immediately show up.myDAQ2.pngNote that the error number is negative (most DAQmx functions return negative number errors).  This tells you explicitly what is wrong -- the default mode, "On Demand", needs to be changed.  Change it to Continuous and try again, clicking Start.
  10. Now you get this error:myDAQ3.png.  This should look familiar to you.  What does it say?  Why, you specified a range of -10 .. +10, yet your device must have a range of -2 to +2.  Hmm -- wonder what Max and Min Input Limits mean on MAX's display?  What if we set them to 2 and -2 and try once more to push Start?
  11. Well, look at that -- no error, and some (what looks like noisy) data!myDAQ4.png
  12. But we are not done.  We now have the settings that "work".  [If you read the tutorial material that I pointed out to you, particularly the wonderful "Learn 10 DAQmx Functions and Handle 80% of your DAQmx Chores", or something like that, you'll already know what I'm about to say, but I'm guessing you haven't done that ...].  So, let's get MAX to save all of this for us as a Task.  Get out of this Test Panel Window and click MAX's "Create Task ..." Tab on the right pane.  Set up an Analog Input Task using what you learned in the steps above.  When you have finished, don't forget to click the "Save" button to save this task.  When you have finished, in the left-hand Pane, expand Data Neighborhood and look at the NI-DAQmx Tasks, where you should see the Task you just created.
  13. So why go to all that effort?  Go read "Learn 10 DAQmx Functions".  Here is a picture (I'm using a Picture of code, rather than attaching a VI, because I really want you to write this code) of a VI that has only 3 DAQmx functions in it, yet does pretty much what (if you'd been following the steps above) you got MAX to do:myDAQ5.png.  You may notice that I blacked out part of the DAQ Read function -- that is deliberate to force you to think about what Task you defined.  So where is the Task?  Look at what is wired into the DAQ Start function -- that is actually a Constant.  I right-clicked on the input terminal, chose Create Constant, and got a "blank" Constant.  When I pushed the little down-triangle, however, up popped a list of Tasks that LabVIEW "knew" about, in particular the Task I'd created in DAQmx (which I named AudioInLeft) in Step 12.  Note that I don't need to say what device, what channels, what sampling rate, how many samples, what voltage range, etc. -- they are all bundled in the Task definition.  Of course, I need to have MAX around, which means I might not be able to move this code to another computer.  But if I'd defined my Task within a LabVIEW Project ...
  14. When you run this really tiny program, you may see something like this:myDAQ6.png.  Notice the similarity between this image, obtained by running the LabVIEW code in Step 13, with the output of MAX shown in Step 11.  It is really working!

As far as I am concerned, I've shown you every step that you need to do to "do this for yourself" and thereby successfully carry out your Assignment.  Please, before asking more questions and for more help, run through all of the steps here, and if something doesn't seem to quite work, "play" with it.  Maybe I made a mistake, or maybe you made a mistake -- try varying things, paying close attention to the messages LabVIEW gives you (sometimes, but not always, they "make sense", identify the error, and point you to where it occurs).

 

Bob Schor

0 Kudos
Message 16 of 20
(1,276 Views)

Thanks @Bob_Schor

I followed the steps and i have similar result from MAX test and VI but its different from your's. The results are attached and i am trying to see what's the problem that i can't get a signal in the defined range.

BR

Omer

Download All
0 Kudos
Message 17 of 20
(1,258 Views)

Sorry the pictures are in german. I tried alot to change the language but i was unable. i changed it from OS regional settings but it has no result. I myself translated each word.

0 Kudos
Message 18 of 20
(1,256 Views)
Solution
Accepted by topic author Omershah

Bravo, it seems to be working!  So let's ask a silly question -- what do you have plugged into myDAQ1/AudioInputLeft?  Could it be "no signal", or 0 v?  Note that in my case, I was looking at a slow sinusoid (hence the appearance of the trace).  The point is your code now seems to be working, and might be giving you valid results.  One way to test this is to connect your Audio Out to your Audio In, write a little code that puts, say, 1V on Audio Out, and see if Audio In gives you a (noisy) voltage near 1.0.  You can then program a slow sinusoid, send it to Audio Out, and observe Audio In.

 

Now do you see the point of using MAX, Tasks, and (possibly) LabVIEW Project?  Has your Question been answered?

 

Bob Schor

0 Kudos
Message 19 of 20
(1,244 Views)

Yes its answer and thanks alot for your guidance.

Now i have to find a way to combine the digital chaneels for the digital test.

 

BR

Omer

0 Kudos
Message 20 of 20
(1,233 Views)