Creation Waveform TDMS file using the functions DDC_ in C 6.0?

I'm trying to implement an export written in C 6.0. I can make the TDMS files using the DDC_ controls without any problem. But I can't understand how waveform TDMS files. I thought that if I added properties wf_ I should be able to define the waveform = Yes. But it seems to be more complicated than that.

Here's what I work until now... (with the exception of the error handling to make it easier to see)

DDC_CreateFile (sDestFileName, "TDMS", gszinfoline1, gszinfoline2, gszinfoline3, gszinfoline4, & hOutputFile);

DDC_AddChannelGroup (hOutputFile, szGROUP_NAME, szGROUP_DESC, & hgroup)

DDC_CreateChannelGroupPropertyTimestampComponents (hgroup,
szCHANNEL_NAME,
year (unsigned int),
months (unsigned int).
days (unsigned int).
hours (unsigned int).
minutes (unsigned int).
wholeseconds (unsigned int),
(double) fractionseconds);

DDC_AddChannel (hgroup, DDC_Double, szCHANNEL_NAME, szCHANNEL_DESC, szCHANNEL_UNITS, & lphchannel);

DDC_CreateChannelProperty (lphchannel, "wf_increment", DDC_Double, dInterval);
DDC_CreateChannelProperty (lphchannel, 'wf_xname', DDC_String, 'Time');
DDC_CreateChannelProperty (lphchannel, "wf_xunit_string", DDC_String, "s");
DDC_CreateChannelProperty (lphchannel, "wf_start_offset", DDC_Double, 0,0);

Any suggestions? (Details of this aid are intended for LV or completely absent)

Thank you very much

Don

Hi Don,

Thanks for the additional information.  After doing research a bit more, it seems that there are 3 required properties so that the property of waveform to be set to yes.  These are wf_start_offset, wf_increment and wf_samples.  If you add in a call such as the following, this should solve the problem:

DDC_CreateChannelProperty (lphchannel, "wf_samples", DDC_Int32, 5);

Just replace with the length of your table 5.

Kind regards

Tags: NI Software

Similar Questions

Maybe you are looking for

  • Equium A100-306 freezes and crashes

    My laptop used to freeze and hang, I did windows recovery and reinstall windows for 2 times. At present, the problems are: The system is very slow, takes forever to come. When I use voice chat, laptop freezes and crashes. Please give me an advise wha

  • Remove values lower than the desired increment

    Hello When you perform a simulation of multi-body with a step size fix that I receive some additional values smaller than the normal increment in output data or values are duplicated. The time channel looks like: 0 0.0002738 0.001 0.002 0.002 0.003 0

  • How to use * callbackData

    I'm not an expert c programmer, which is probably why this question is... What is the right way to use the * callbackData variable? For instance when you create an asynchronous callback or in my courts, a reminder of menu.  I'm trying to pass a strin

  • Corrupted MS Media Player 11

    I don't use MS Media Player but are struggling with it for months. It appears on my screen and will not close. I have a what in the library and get the green text on my screen indicating the next track. How can I make the two disappear for good becau

  • Should what type of DVD I use

    I had a problem for my new GE24 LG Super Multi DVD rewriter works correctly. No I have the movies I want to download and watch on my dvd player. I use DVD Memorex DVD + R 16 X 4.7 GB 120 min. should I use another brand, because those who only play on