07-31-2015 04:36 PM
Could you clarify what you are asking?
Do you want to programmatically obtain the name of the device? A channel?
Is this helpful? http://digital.ni.com/public.nsf/allkb/829F135B3201FA8386257439005DE8B6
07-31-2015 05:26 PM
Becca,
I don't know how I could be any clearer as to what I am asking, given the entire thread above, but I'll try. In short: it is not the name of a device or "regular" channel; it is a special "internal channel", also "circuit", according to the NI documentation. Look at the bottom of this document for my specific case, the "_freqout" channel on a cDAQ-9174: http://zone.ni.com/reference/en-XX/help/370466W-01/mxdevconsid/9211interchan/
First, it is quite obvious I'm using the text-based programming languages library (C, specifically), while the link you posted is for LabVIEW, plus it does not cover what I need (internal channels), so, to answer your fourth question: no. Second, I've searched the Web quite a bit, the problem I'm trying to solve is very complex and unlikley to have been posted on a FAQ. In fact, it may not have a solution, at all, so if you would really like to help, you may want to locate a DAQmx library developer and ask them. Third, I went into plenty of detail to specify exactly what I was looking for, and it is not a standard device or virtual/physical channel name that can be easily enumerated with the standard library functions. It is an internal circuit that can be controlled with certain functions, and those functions are outlined in earlier posts on this thread. What I want is to be able to query a device and find out the actual name of that entity, which on current cDAQ chassis is called "_freqout" but I'd like to be able to get that name in my code reglardless of the supporting hardware: I would like to make a call that will return a string with the name of the frequency ouput generator on any device that supports that functionality, or an error - if it doesn't. Even more specifically: look at the code I posted above (and John's post with code, a few posts above mine) and what I'm looking for is the name that could be used as an argument to the DAQmxCreateCOPulseChanFreq() function, in the context of the dynamically-created task shown there.
Kamen
@beccamir wrote:
Could you clarify what you are asking?
Do you want to programmatically obtain the name of the device? A channel?
Is this helpful? http://digital.ni.com/public.nsf/allkb/829F135B3201FA8386257439005DE8B6