How can I programmatically determine the capabilities of a card under NI-DAQmx (e.g. max sample rate, number of AI/AO/CTR channels, etc.

Is there a DAQ_Get_Device_Info() equivalent for NIDAQmx? I need to iterate thru all the devices on my system, and build up a list of device capabilities. The system may include M-series and E-series cards.

Attached is a program I've used in the past to determine number of AI channels. It could be easily modified to check for AO or digital or counter. Also, there is a ton of properties that you have access to (i.e. max sample rate, max/min voltage inputs, etc.) that are accessed as properties of the type of channel, or timing properties, as opposed to properties of the board. Check out the DAQmx C Reference Help (Usually at Start>>All Programs>>National Instruments>>NI-DAQ). Expand the NI-DAQmx C Properties, and look at the List of Channel Properties, and Timing Properties, etc.
-Alan A.
Attachments:
Device_Info.vi ‏25 KB

Similar Messages

  • How can I get to the Vodafone Mobile Phone Card?

    I come form china,then someone say my phone is Vodafone.
    it doesn't work  in china
    So I want to know
    How can I get to the Vodafone Mobile Phone Card.
    Please  heple  me .
    Thank  you .
    Ps: I amnot good at engish .
    Please forgive  me

    I want to cry . 

  • How do I programmatically determine the cursor legend refnum?

    I am determining the controls and such of a front panel programmatically as I have a need to be able to modify panels quickly without the manual editing necessary. I need to know how to determine the refnum of a cursor legend for a waveform or XY graph in a programmatic fashion rather than by creating a reference node.

    That is a good question. The cursor legend reference is not returned if you get a list of all the object references. The graph is, so you can get its reference and get the cursor legend reference from it. You probably only need to look at the ones with a visible property set to true.
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How can I programmatically change the fill color Settings of the Cwslide ActiveX Controls

    In design mode (Visual Studio 6.0),I want to programmatically change the fill color in properties of  cwslide  ActiveX Controls.what's the command?
    Attachments:
    cwslide.JPG ‏11 KB

    First, if you want to start getting beyond the basics with DAQ, you are going to have to stop using the DAQ assistant and do it with lower level DAQmx VI's.  There are hundreds of examples in the example finder.  You can even right click on the DAQ assistant and select open front panel.  That will create a subVI that you can open and see what is going on behind the scenes.  Do it.  I think you'll find the DAQ task is being recreated on each (though I'm not 100% of how the settings are established or maintained in each section of that subVI).
    The second problem is you have a bit of a race condition on iteration 0.  Those two DAQ property nodes are running at the same time.  So when you read the AI.Max, it may be happening before or after the AI.Max is set in your case structure.
    Third, make sure you wire up your error wires.

  • How can a servlet determine the exact requesting URL

    This seems like a simple question, but I cannot find a solution. I am wondering how a servlet can determine the exact requesting URL that invoked the servlet. Specifically, I am having trouble making my servlet determine if the port number was specified or not. I am using session tracking, and my web server (by default) produces two separate sessions when hitting https://myserver.com/myservlet and https://myserver.com:443/myservlet.
    I have tried to use the HttpUtils.getRequestURL(), but this function seems to assume that if you used https over port 443, that you DID NOT specify 443 in the URL.
    SV

    If your servlet container implements servlet 2.2 or better, try the request.getRequestURL() method. It should return everything that was originally entered for the request address at the client except the query string (use request.getQueryString() to get that).
    I am not sure how it handles the port number for specifically entered vs not specifically entered.

  • How can I programmatically get the Bluetooth address of an iPhone

    I want to  determine the Bluetooth MAC address for an iPhone or iPad from within an app on said device. But I didn't find any API that will return the Bluetooth Address or name .

    You can use the VI name to refer to a vi in memory. (note that all VIs in
    memory must have a unique name, thus LV can make a reference needing only
    the name.)
    To refer to a vi not in memory, LV needs a full path. The open VI reference
    is polymorphic, it accepts strings and paths (as you already noticed).
    "MattI" wrote in message
    news:[email protected]..
    > This is awesome!
    > Looking at the diagram, I am somewhat surprised that Open VI Reference
    > works using just the VI names returned by Property
    > Node:Application:All VIs In Memory when they are wired to the path
    > input to Open VI Reference, but I guess it uses the (relative)
    > built-in path info that we users can't see to look up t
    he VI which is
    > in memory, and then returns the full path.

  • How can IC WebClient determine the host name for free seating?

    Hi,
    I want to determine the host name at CRM application server by ICI interface for free seating scenario.
    There is a TCODE CRMM_IC_GFS to set 'Host Name Identification Applet'.  But when I check on it, all buttions in IC Webclient disappeared. I followed the note 812399 to change Java security configuration, but the synptom still exist. Do anybody now how to? Thanks!
    BR,
    Hao

    To run a public VPN server, you need to do the following:
    1. Give the gateway either a static external address or a dynamic DNS name. The latter must be a DNS record on a public DNS registrar, not on the server itself. Also in the latter case, you must run a background process to keep the DNS record up to date when your IP address changes.
    2. Give the VPN server a static address on the local network.
    3. Forward external UDP ports 500, 1701, and 4500 (for L2TP) and TCP port 1723 (for PPTP) to the corresponding ports on the VPN server.
    4. Configure any firewall in use to pass this traffic.

  • How can you Programmatically recalculate the tax on AR Transaction Line

    Hi
    Does anyone have any clue about the API which can be used to programmatically recalculate the tax on the sales order line.
    We are using EBTAX Engine.
    Regards

    Which tax engine are you using in your environment? Are you using standard Oracle e-biz tax?

  • DSC Module: Alarms & Events: How can I programmatically set the 'set user'?

    How can I set the Alarm&Event 'set user'?  Right now, it is always '(Nobody)'

    Thanks for the info.  I had not discovered the Security dialog under the Options.  However, now that I have delivered the first version of the software and have more time to play around, I have discovered the Account Domain Manager under Tools->Security, and that seems to be what I need.  In the image below, I used the Example entitled 'DSC Dynamic Alarm Update'  (available in Example Finder).  But first, I created a local domain called 'Skelly', and logged in as a user named 'zimmer'.  When the alarm came in, you can see that the set user is no longer 'Nobody'.  So now, all I need to do is modify my startup VI, to have each operator log in (using the DSC Security VIs).  That way I will have a record of which operator adjusted the valves & pumps.  ( I write all commands going to control devices to a text shared variable which I log. I also have checked the option to Generate an event upon value change.)

  • How can I programmatically change the colour of tab pages? If not, when?

    I have found that in LabVIEW 6.0.2 the "Dialog" tab control cannot be coloured, but the other type of tab control one can be coloured by the paintbrush tool. I cannot find any property node to programmtically set the colour of the enitre tab control or individual pages. When will these properties be available in LabVIEW?

    The dialog controls and indicators are designed
    specifically for use in dialog boxes. These controls inherit their color from the colors you set in Control Panel >> Display. Because of this you will not be able to programmatically change their color.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • How can I programmatically retrieve the CVI Target Version Settings (e.g. File Version, Copyright, etc) in my CVI application?

    Is there any way that I can programmatically retrieve the CVI Target Version Settings (e.g. File Version, Copyright, etc) in my CVI application?
    I am using LabWindows/CVI version 7.0.
    The settings that I'd like to retrieve within my application are those that are set under Build | Target Settings... | Version Info...
    e.g.
          File Version
          Product Version
          Company Name
          Legal Copyright
    Thanks,
    Darren
    Message Edited by Darren Draper on 01-16-2006 02:03 AM

    Well, "File access permission denied" claims for an authorization problem . I suggest you double check file attributes in the project directory: it could be that you have downloaded this example from a CD and the read-only attribute has not been cleared.
    The library does not reside in the example folder: as you can see by selecting View >> Show full pathnames in the project window, it should be in ....CVI\sdk\lib folder.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How can I programmatically change the voltage range settings in a DAQ Assistant

    Hi,
    First post here.  
    I need to be able to change the voltage range properties of a daqmx DAQ Assistant based on user input.  My hardware, an SCXI-1102C does not allow changing this property on a running task, so I'd like to either set the analog input voltage range before the DAQ Assistant activates, or pause the DAQ Assistant immediately after it starts, set the values and then resume.
    I don't know how to edit the task ahead of time because the DAQ assistant creates the task when it runs, and there is no task before that.
    In the attached picture, I have a conditional section, set to run only if the while loop iteration is 0.  I take the task from the Daq assistant, send it to a stop task vi, set the property, and then send the task on to the start task vi. I can watch it run with the debug light on, and everything seems to work correctly, but on the second (and all the other) iteration of the loop, I read out AI.Max and it seems like the DAQ Assistant has re set it back to 5V.  Can anyone see what is going wrong here?
    BTW, this is continuous acquisition and the code does not produce error messages when it runs.
    I did come across a similar question that someone posted here back in 2006, but his question was specifically aimed at a Labview API (VB, I think), and not an actual G solution.
    Attached are the actual vi in question and a png image of the block diagram.
    Thanks! 
    Ruby K
    Solved!
    Go to Solution.
    Attachments:
    Labview_question.PNG ‏14 KB
    Sample_AIV.vi ‏91 KB

    First, if you want to start getting beyond the basics with DAQ, you are going to have to stop using the DAQ assistant and do it with lower level DAQmx VI's.  There are hundreds of examples in the example finder.  You can even right click on the DAQ assistant and select open front panel.  That will create a subVI that you can open and see what is going on behind the scenes.  Do it.  I think you'll find the DAQ task is being recreated on each (though I'm not 100% of how the settings are established or maintained in each section of that subVI).
    The second problem is you have a bit of a race condition on iteration 0.  Those two DAQ property nodes are running at the same time.  So when you read the AI.Max, it may be happening before or after the AI.Max is set in your case structure.
    Third, make sure you wire up your error wires.

  • How can I programmatically change the number displayed on a digital control?

    In my application, there are two while loops. The inner loop has a digital control where the user can enter a number. If he enters an invalid number, I want to clear his input.

    One way of doing is see attach..
    need to use property node and case structure.
    When you feel sad, laugh
    Attachments:
    25feb04.vi ‏28 KB

  • How can I automatically determine the threshold for a SmtSpectrumPeakSearch?

    I'm using the 5600/5620 and LabWindows 8.0 to capture free-space RF in the range from 2.0 MHz to 500.0 MHz (not the entire range, but various selected 10 MHz segments).  Depending on the antenna and frequency I'm trying to detect the signal noise levels varies.  Currently I allow the operator to manually adjust the threshold level which is used for my SmtSpectrumPeakSearch call, but I'm using one threshold for all the frequency peaks I'm trying to measure.  I'd like to automatically compute a threshold 3 dB above the noise floor for each frequency I'm trying to detect.  What's the best way to accomplish that?
    Ken

    Hello Ken,
    You have two scenarios to start from - either knowing ahead of time what the expected noise level is based on your settings, or not knowing. Also, whether the displayed noise level is the system noise level (i.e. the signal noise is lower than the system noise) or the signal noise level. Of course, is the noise level is the system noise level, you essentially know ahead of time what the noise level will be based on the 5660 specs.
    If you are looking at system noise as the noise floor, you can look at the 5660 specs and calculate the noise floor based on the noise density value, 5660 RF attenuation, and RBW.
    Noise Floor (dBm) = Noise Density (dBm/Hz) + 10*LOG10(Actual RBW) + RF Attenuation (dB)
    If the noise level varies and your application has to adapt, then you can use the power spectrum. If you want to average a section of the spectrum (that contains no noise), you need to do so in linear units, not dB or dBm. A quicker way to do this would be to do a simple max value test for a portion of the spectrum noise that doesn't contain signal and then set your threshold 3 dB above this.
    Regards,
    Andy Hinde
    National Instruments

  • How can I turn on the mini-PCI WiFi card on Satellite 1905-S301?

    greetz! I have installed an optional mini-PCI wireless LAN card into my Toshiba Satellite 1905-s301 notebook and turned on its power switch. MS WXP Pro SP2 recognized the hardware and installed its drivers - there is no cross or question mark next to the Atheros AR5001X+ Wireless Network Adapter in the Device Manager. However the Wireless Network Connection Manager is telling me there is no wireless adapter present. When hitting Fn+F8 a window pops up saying There is no build-in wireless LAN.
    What do I need to do to enable my optional wireless LAN mini-PCI card??? If possible, email your suggestions to my email, please!

    Hi
    You have to enable the WLan switch at the notebook side!!!
    Additional select the WLan card properties and check the Advanced tab.
    There should be an option called Radio on/off. You have to set it to on.
    greetings

Maybe you are looking for

  • Mini DVI to VGA adapter doesn't seem to work

    Hi everyone I am trying to link my Powerbook to my TV using the mini DVI to VGA adapter. I have made the connection and the Mac seems to be detecting the TV display, but the desktop is not appearing on the TV screen. Is there something I need to do w

  • What type of external hard drive should I get?

    First, I'm not sure were I should have posted this question but here goes.... I am officially 100% an Apple home environment now. I have an iMac, a Macbook Pro, and an Airport Extreme. I want to add an external hard drive and I need suggestions for w

  • How do you add a month to a date?

    I want to add a month to the value above and create a series of dates. Thank you

  • Delete an IDOC

    Hi, Few IDOCS are in error 51 status.I require to delete those IDOCS. I use WE11 to delete the IDOCS, and it is displayed as deleted status. But when I see in WE02,I could see the IDOC. Please advise how to delete the IDOCs. Regards, Payal Saxena

  • University Firewall and Video Chat

    Hello!!! I got my isight about a week ago and I haven't been able to use it for video chat yet. Every time that I try I get the (popular as I found out) message "Failed to start Video Chat because: (my name) did not respond". I tried everything that