From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-08-2011 03:52 PM
Hello,
I am trying to do sound playback from a dataset in Diadem. Given my Diadem view layout which consists of two video playback windows synchronized to a 2d curve chart, I see that the sound icon remains disabled. The data loaded into the 2d curve chart consists of 8 channels of analog waveform data at a sample rate of 40 kHz. I am also unable to playback any of the analog channels in the data portal preview. If I load a wave file, I am able to play back the data through the data portal preview just fine.
Are there any specific rules concerning the use of audio playback? Does the samplerate of my analog data need to match the soundcard supported rates, or can I configure Diadem to do internal resampling? I see only limited notes regarding audio playback in the documentation so any help is appreciated.
Thanks in advance!
Solved! Go to Solution.
12-09-2011 05:01 AM - edited 12-09-2011 05:03 AM
I assume only waveforms are played. This means the channel is not plotted over index but over it given aquidistant time axis.
So if you convert your channel to an waveform with 40 kHz it should work.
Call ChnWfPropSet(ChnNoStr, WfXName, WfXUnitString, WfStartOffset, WfIncrement, [WfStartTime])
is used to set the properties.
12-09-2011 12:05 PM
Hi Resaebiunne,
Please verify that the Channel.wf_xunit_string property is set to "s". You can edit it directly in the Data Portal property table, where it is called "Waveform x-unit".
Brad Turpin
DIAdem Product Support Engineer
National Instruments
12-12-2011 11:38 PM
Hello,
Yes, the property Channel.wf_xunit_string was not set and setting it to "s" (time: seconds) does indeed allow me to output the waveform to my soundcard. Is it referenced anywhere in the help files or documentation that the waveform unit must be set to "s" for audio output to function?
Thanks.
12-14-2011 05:26 AM
Hi Resaebiunne,
You are right. We will upgrade the help with the upcoming DIAdem version.
Thanks for your suggestion,
Ralf
12-14-2011 08:55 AM
Hi Resaebiunne,
I forwarded this issue on to R&D, and they agreed to add a description of this requirement to the Help system of DIAdem 2012.
Thanks for the feedback,
Brad Turpin
DIAdem Product Support Engineer
National Instruments