11-21-2005 02:00 PM
11-22-2005 04:36 PM
Vitaly,
LabVIEW comes complete with a suite of sound VIs. There is an example that ships with LabVIEW that I think fits exactly what you are looking for. The name of the example is "Continuous Sound Output.vi" and you can get to it by going to Help>>Find Examples, selecting the Search tab, and searching for "sound".
Kind Regards,
11-23-2005 01:53 AM
11-23-2005 09:27 AM
Well, I gave up trying to manually transfer sound libraries from LV8 to LV6i. Also, found this:
http://digital.ni.com/public.nsf/allkb/2C941BA9B591B1F4862566EB006FB5E0
But I cannot get continuous sound in this way. Is it really impossible with LV6i?
Thanks again.
Regards,
Vitaly
11-28-2005 06:27 PM
11-29-2005 02:27 AM
11-29-2005 05:43 PM
vitvip,
I think I was able to create a vi that will work for your application using only the basic sound vis. However, you will not be able to vary the pitch or amplitude while the program is running. (I believe that's what AESulzer was referring to as static). To create the vi, start with a SO Config.vi, the wire to an SO Start.vi. Next place down a while loop with the Basic function generator.vi and the SO write.vi inside of it. Last outside of the while loop, place a SO clear.vi on the block diagram. That should give you continuous sound but you will not be able to vary the frequency or amplitude once the program begins. Let us know if you run into any problems.
Best Regards,
Chris C
Applications Engineering - National Instruments
12-01-2005 05:32 AM
Chris,
thank you, this helps more. However, I think it's again an oversimplification. The VI you describe works, but it is not 'static'. You are probably setting the Function Generator to output too many samples. Try to set #s to, say 100. The lag is, however, very big (and increases with time, I guess, making it seem 'static'). Going back to my task, I'd say one may conclude LV6i isn't up to 'controllable continuous sound output'. Right?
12-01-2005 09:46 AM
Vitvip:
I don't mean to butt in, but your application has me intrigued. Why and how are you trying to control a heater with an amplified controllable sound output? Unless your output frequencies are very low, I cannot see any benefit of trying to use a sound card.
Heaters are typically slow response systems (unless physically small). Traditional heater control is with ON/OFF via digital output or with digital pulse width modulation via a counter/timer function. For optimal control, closed looped PID control is typically employed.
I'm just curious, and not criticizing your novel approach
12-01-2005 10:37 AM
Thanks for your interest, I am in no way offended. The system is a small (1 m long, 16 mm diameter) measurements probe. It is submerged in the liquid nitrogen (helium). The sample holder (~30 mm long, ~10 mm diameter) is inside the probe, close to the bottom and has a small heater (~100 Ohm resistance, maximum necessary power ~1 W). The whole probe is filled with gas (helium) to ensure proper thermal exchange between the sample holder and the walls of the probe. It's all rather conventional in low temperature measurements.
How? I can measure sample holder's temperature (takes a diode or a resistor sensor and a DMM connected via GPIB). You are right, PID regulator will be used to calculate the necessary power. So I want to connect PID regulator's output to the amplitude (volume) control of the soundcard. I do not quite understand what you mean by "Unless your output frequencies are very low, I cannot see any benefit of trying to use a sound card." But I will connect the soundcard's output to the amplifier/rectifier. I only rectify to avoid electromagnetic interference between the heater signal and measurements currents (very low ones), otherwise I could even connect the heater directly. For the same reason digital pulse width modulation and the like cannot be used.
Why? Because basic analog output card costs ~$300, I think it's a real waste in my case. However, seeing (hearing) that it's not that simple to get true continuous sound, I might be forced to change my mind.
Best wishes,
Vitaly