Go to Post guys, don't forget not to scare the new girls - Lisa Rodriguez [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 30-01-2012, 20:02
farmersvilleRob's Avatar
farmersvilleRob farmersvilleRob is offline
Registered User
FRC #4084
 
Join Date: Jan 2012
Location: Farmersville
Posts: 172
farmersvilleRob is infamous around these parts
Labview sub vi not supported in this target?

I wanted to just mess around with labview and it tells me before executing a sound sub vi to play a .wav file that the sub vi is not supported in current target. I upated my directx player to the most current one and I have the sound file in a .wav format. Is it just that the labview that we got from FRC not compatible with every palette function?
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2012, 21:45
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview sub vi not supported in this target?

The realtime version of LV runs on VxWorks. On that OS, there are no general sound drivers, no speakers, and no driver code that knows what a .wav is. So, no, not all subVIs are cross-platform.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2012, 21:48
farmersvilleRob's Avatar
farmersvilleRob farmersvilleRob is offline
Registered User
FRC #4084
 
Join Date: Jan 2012
Location: Farmersville
Posts: 172
farmersvilleRob is infamous around these parts
Re: Labview sub vi not supported in this target?

Quote:
Originally Posted by Greg McKaskle View Post
The realtime version of LV runs on VxWorks. On that OS, there are no general sound drivers, no speakers, and no driver code that knows what a .wav is. So, no, not all subVIs are cross-platform.

Greg McKaskle
So is there a way I can fix this so that my sub vi will play a file through speakers on our robot for fun?
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2012, 21:54
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview sub vi not supported in this target?

This wouldn't be hard with other modules installed. After all, LV and NI equipment is often used for testing audio equipment, but you will need a speaker, an amplifier, and something to generate the signal.

A couple years ago when I wanted a noise maker on a practice robot, I mounted a school bell and a solenoid. The solenoid would thwack the bell when the condition occurred.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2012, 22:01
farmersvilleRob's Avatar
farmersvilleRob farmersvilleRob is offline
Registered User
FRC #4084
 
Join Date: Jan 2012
Location: Farmersville
Posts: 172
farmersvilleRob is infamous around these parts
Re: Labview sub vi not supported in this target?

Quote:
Originally Posted by Greg McKaskle View Post
This wouldn't be hard with other modules installed. After all, LV and NI equipment is often used for testing audio equipment, but you will need a speaker, an amplifier, and something to generate the signal.

A couple years ago when I wanted a noise maker on a practice robot, I mounted a school bell and a solenoid. The solenoid would thwack the bell when the condition occurred.

Greg McKaskle
So I'm just another high school FRC guy trying to get a jump on my EE college course and don't know that much but what modules do you recommend I install? I have some bose surround speakers I'm not using and an old audio stereo phono pre-amplifier.
Reply With Quote
  #6   Spotlight this post!  
Unread 30-01-2012, 22:04
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview sub vi not supported in this target?

Why don't you visit ni.com and puzzle it out. I'll tell you if you found the right ones.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 30-01-2012, 22:22
farmersvilleRob's Avatar
farmersvilleRob farmersvilleRob is offline
Registered User
FRC #4084
 
Join Date: Jan 2012
Location: Farmersville
Posts: 172
farmersvilleRob is infamous around these parts
Re: Labview sub vi not supported in this target?

Quote:
Originally Posted by Greg McKaskle View Post
Why don't you visit ni.com and puzzle it out. I'll tell you if you found the right ones.

Greg McKaskle
Well I was thinking of this one:

http://www.ni.com/soundandvibration/

But only because it had an audio link: http://www.ni.com/audio/
Reply With Quote
  #8   Spotlight this post!  
Unread 30-01-2012, 22:24
farmersvilleRob's Avatar
farmersvilleRob farmersvilleRob is offline
Registered User
FRC #4084
 
Join Date: Jan 2012
Location: Farmersville
Posts: 172
farmersvilleRob is infamous around these parts
Re: Labview sub vi not supported in this target?

http://www.ni.com/audio/

I was thinking of this one because it's the only module for sound and vibration but I wasn't sure if it lets you output continually or if it is just for testing and data acquisition.
Reply With Quote
  #9   Spotlight this post!  
Unread 31-01-2012, 08:07
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview sub vi not supported in this target?

If you are talking about the products on the Solutions tab, then yes, those 24 bit cards will generate a sound. In fact they are for generating very precise tones and measuring those tones as they come out the other side of the circuit. This is how the audio manufacturers verify that the hiss, hum, and other types of noise and distortion in their circuit are at an acceptably low level. But NI makes many other boards for sound and some of them plug into the cRIO.

But I'll jump to the chase. NI makes modules such as the 9263 and 9269 that are C-series. That means they snap in to the cRIO like the FRC modules. They can generate the signals, but without changing the FPGA, they will not be available to the SW. But the platform is not a general PC, and I suspect you are wanting to make sounds for fun or entertainment. There are plenty of ways, cheap ways, to do that. The cRIO isn't really meant to be one of them.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 31-01-2012, 14:35
farmersvilleRob's Avatar
farmersvilleRob farmersvilleRob is offline
Registered User
FRC #4084
 
Join Date: Jan 2012
Location: Farmersville
Posts: 172
farmersvilleRob is infamous around these parts
Re: Labview sub vi not supported in this target?

Quote:
Originally Posted by Greg McKaskle View Post
If you are talking about the products on the Solutions tab, then yes, those 24 bit cards will generate a sound. In fact they are for generating very precise tones and measuring those tones as they come out the other side of the circuit. This is how the audio manufacturers verify that the hiss, hum, and other types of noise and distortion in their circuit are at an acceptably low level. But NI makes many other boards for sound and some of them plug into the cRIO.

But I'll jump to the chase. NI makes modules such as the 9263 and 9269 that are C-series. That means they snap in to the cRIO like the FRC modules. They can generate the signals, but without changing the FPGA, they will not be available to the SW. But the platform is not a general PC, and I suspect you are wanting to make sounds for fun or entertainment. There are plenty of ways, cheap ways, to do that. The cRIO isn't really meant to be one of them.

Greg McKaskle
Oh well that's highly disappointing :/ we wanted to have to play a sound when we threw basketballs just for fun. :/
Reply With Quote
  #11   Spotlight this post!  
Unread 31-01-2012, 22:06
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Labview sub vi not supported in this target?

Quote:
Originally Posted by farmersvilleRob View Post
Oh well that's highly disappointing :/ we wanted to have to play a sound when we threw basketballs just for fun. :/
You can generate sounds mechanically. I've long wanted to mount a desktop call bell and a servo on one of our demo robots. I think it was Team T.H.R.U.S.T. (FRC #1501) that had a Lunacy robot which made a wonderful "poink!" noise when it tossed moon rocks.
Reply With Quote
  #12   Spotlight this post!  
Unread 31-01-2012, 22:14
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Labview sub vi not supported in this target?

I would use something similar to: http://www.radioshack.com/product/in...ductId=2102855
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi