LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store a DAQmx task properties efficiently ?

Solved!
Go to solution

Hello all and Happy new year !

 

I'd like to be able to keep track of all the parameters of a DAQmx task (and its channels) in a file, whatever the content of the DAQmx Task / Channel is. Up to now the only way I've found is to use a DAQmx Task / Channel property nodes and deal with every possible property. However, since they are so many properties, each one not being valid for any hardware or Task / Channel type, it's a really huge work and I'm rather lazy  😉

 

So I'm asking here if anybody has already dealt with this or has an idea ? 

 

0 Kudos
Message 1 of 4
(2,732 Views)

Hi Mseb,

 

Thanks for the post and I hope your well.

 

I have not seen or heard of a better method then it appears your talking about. 

 

In this dev zone article,

 

Capturing NI-DAQmx Configuration into TDM Files

Contents 2.DAQmx Information - Channel and Task Properties

http://zone.ni.com/devzone/cda/tut/p/id/3079#toc1

shows an example vi  - this could help?

 

Would it be possible to post some example code to get more details on how your currently generating this data?

 

Hope this helps, 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 4
(2,721 Views)
Solution
Accepted by topic author mseb

Hi Hillman,

 

Thank you very much for the link. Silly me had overlooked tdm related documents... Your link is indeed very relevant, since I'm doing it right now exactly the same way as it's done in the :

  • DAQmxTaskInfoQuery.vi
  • General DAQmx TEDS Info.vi

Which are part of the download indicated in the link you gave.

 

Exepted that this code is much more readable than mine, thus I guess I don't need to post my incomplete ugly code. Many interresting things there, thank you very much. I'll be back if I have anything better to give as reference. 

0 Kudos
Message 3 of 4
(2,699 Views)

Hi Mseb,

 

Thanks for getting back to me. I am glad it found you well. Glad to help! 😄

Please let me know if you have any issues as you continue to look into this.

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 4 of 4
(2,694 Views)