How to power supply of NOR-DAQmx PCI-6071e using Visual C++?

Hello, I am a first year student Bachelor do a team project for school and I am completely stuck. The laboratory on campus has allowed us to use their PCI of NOR-DAQmx-6071e card and the school provides free Visual Studio 2008. We try to grasp the card voltage levels in Visual C++, but we do not know what code to use. In addition, we cannot buy Measurement Studio Professional (or a standard, incidentally). Can someone explain please how to read voltage levels? Code example would be much appreciated.

There is a sequence of function calls required to create a task.  This document goes through the steps needed to include in a job.  When you install the DAQmx driver, the examples are also installed and can be found as described here.  It will take a few changes to ANSI C examples to use in Visual C++ that are described here.  Hope this helps!

Tags: NI Hardware

Similar Questions

  • Why using the driver NOR-DAQmx ANSI C functions in a thread causes a deadlock?

    Firstly, apologies if this is bad advice, but it seemed the closest fit.

    I use MSVC 2008 Express with the library in ANSI C NI DAQmx for some analog output with a box USB-6009. I create a thread to handle the signal generation is based on fixed time. My main thread running the user interface. I found that I get intermittent blockages in release, so that libraries mode NOR are responsible (in the second thread) and I use MSVCRT features (on the main thread). My test code is attached as "deadlock2.cpp".

    I used WinDbg to try to find the cause of the deadlock. Traces of the battery of my two sons are attached as t1_stack.txt and t2_stack.txt.

    It seems that the MSVCRT localtime() function uses a lock when it is called for the first time and then went to lock the Windows DLL loader lock. At the same time libraries NOR (or less libraries mxs) are responsible for locking the charger DLL is being held. The mxsutils library uses getcwd() which seems to try to block something the MSVCRT and therefore my two sons are now deadlocked.

    I can probably work around this by calling the localtime() and the NOR-DAQmx functions before I spawn my second thread so that the DLLs are already loaded in the process. However, I have no guarantee of this to continue working if something changes in the future, and if there are any locks going on finally having the DllMain() calls for a thread hanging may still cause a deadlock. If my results are correct, is it likely that NEITHER would fix the dll for not trying to make something complex in their DllMain()?

    According to NI Measurement and Automation Explorer, I'm under DAQmx libraries v9.3.5f2. I download the latest version now to try, but it will take time.

    Hi dmcminn,

    Thank you for the comprehensive and detailed bug report. I was able to reproduce the problem with NOR-DAQmx 9.6 using the code you posted. I reported it to the R & D team suitable as CAR #366538.

    I agree with your analysis of the problem. Getcwd() so the first call to __tzset() acquired _ENV_LOCK, which Microsoft has documented as the "lock for environment variables. __tzset() also called GetTimeZoneInformation(), which can load additional libraries, that you have demonstrated.

    Here are a couple more possible solutions, but they are not great:

    • Link to the static version of the CRT (/ MT instead of /MD). This would bind a separate copy of the lock of the CRT table in your program, and DAQmx would continue to use the lock to MSVCR90.dll table. They use more of the same _ENV_LOCK.
    • Build using a different version of Microsoft Visual C++ (for example 2005 or 2010). MSVCR80.dll MSVCR90.dll and MSVCR100.dll own separate copies of the lock of the CRT table.

    Whatever it is, it does not eliminate the fact that mxsutils called the CRT while now the loader lock, and this function CRT acquires another lock.

    Furthermore, the forum Multifunction DAQ is a better place to ask questions DAQmx.

    Brad

  • Change of power supply for new vid card

    What power supply to 480t Pavilion size when using radeon 5570 card. should what size I for radeon 5770.  Preference what specific food and where I can get it?  Really appreciate the help greatly.

    Hello

    I believe that the HPE - 480 t has a 460 watt power supply (PSU).  Unplug your computer and open it. Read the label on the power supply unit (PSU).  What is the total power and amperage on the bus + 12 volt?  The amount of amperage + 12 volts is important when choosing a video card.

    You may not replace the power supply.  Review the details for some of the ATI 5770 video cards.

  • How to calibrate the PCI-6110 with NOR-DAQmx

    Hello

    I am a new user of the PCI-6110 Council tries to run the calibration using LabVIEW procedure. I look at the document "Calibration" on the page of the manuals for the Board of Directors,

    http://sine.NI.com/NIPs/nisearchservlet?nistype=psrelcon&NID=11888&lang=us&q=FQL: 28locale % 3Aen % 29 + AND + % 28phwebnt % 3 A 1081 + OR + phwebnt % 3 A 7075% 29 + AND + 28nicontenttype % 3Aproductmanual % 29 + AND + % 28docstatus % 3Acurrent % 29% 20RANK % 20nilangs: en & title = NOR + PCI-6110 + manual

    One of the first steps in the document is to call the AI_Configure command to set the input mode, beach, etc. I'm using LabVIEW 8.5 with the NOR-DAQmx software, and I can not find the command (which, in LabVIEW, seems to be "AI Config.vi") anywhere. The calibration paper was written in 2003, and I gather from Google searches (please, correct me if wrong) that this command is actually a part of NOR-DAQ traditional, who was replaced by driver OR DAQmx.

    My question is this: what is the equivalent to AI_Configure command in the latest software? Is it perhaps a subsequent document describing how to calibrate using NOR-DAQmx?

    Thanks much for any help.

    Tom McLaughlin

    Hi Tom,

    The calibration Procedure series B, E, M, S, which is also linked from this page, describes how to calibrate the PCI-6110 with NOR-DAQmx.

    Brad

  • How to use the Camileo H30 with Power Supply

    Hello

    First: Excuse my English, im from Germany ;)

    I have a Camilio: 30. its has been purchased used. I've only had the camera & the original battery.
    No supplements (such as usb or power supply cable original)

    what I want: I need to shoot for a few hours. The battery is unable to do. so I want to use it with a block of power, but when I put in (throughh a mini-usb connector) of the camcorder goes into charing (no actions are possible), but I want to make full use of the feature when the power is connected.
    How should I treat it?

    I got an a 2, 25 a 5V power supply, I think its enough... or not?
    The label on the side of the camcorder bottum said 5V 2A...

    Thanks 4 help me :D

    Greetz

    Hello

    If the Camileo H30 and I got this camcorder with battery and adapter supporting USB mini jack.
    The s AC adapter camcorder supports the release of 2A and 5V
    Its model DSA-10 p-05

    Google for this model, maybe you could get one from some dealers online
    Otherwise recommend that you check the other adapters supporting these values.

    For example this one:
    http://www.toshibadirect.com/TD/B2C/Adet.to?poid=484958

  • How to change the power supply to the CD/DVD drive so that it is disabled by default?

    When running on battery I often use the icon 'Remove hardware safely' XP to 'unplug' the carpet * CD/DVD drive for Safe some battery life. (Does?) I use Fn + Tab to bring back to life. I wonder if there is a way to make my boot Notebook (M400) with the power supply to the reader off by default. Moreover, any idea where I can find the extra battery for the slot of the CD/DVD player and who the price?

    Thanks in advance for your help.

    Hello, Robert

    If you see the start page, you will see that this support forum is not a type of support Toshiba directly but forum users. But you're not alone and many users expect that a Toshiba support team sit in the office and before writing the answers.

    In any case, there are many users of Toshiba laptops with very good knowledge and also amateurs who are trying to help the other guys in different problems and also to share own experience.

    Professionalism is not the forum but action when you need help because of physical damage or something similar. If you need assistance and competent answers each authorized partner must be able to provide the info you need. But please don t mixture and Toshiba service partner because it is not the same.

    In any case, I found the info you can use additional (second battery expansion) and it takes batteries with PA3510U-1BAL, PA3510U-1BRL room numbers. I can't tell you how much it costs, but you will find only using Google.

    Back to your first question: if I understand you just want to save more power and because of this, you want to sign out ODD. It's a nice idea, but you have clearly misunderstood something. "Safely Remove Hardware option is there to help the operating system and and say this material, a part will be removed and don t exist anymore, but it does not physically the disconnection of any other material."

    If you need more power use a second battery and enjoy your life.

    If you have any other questions you are welcome. A lot of users here M400 and I hope in the future that some of them will participate in a little more.

    Good day! :)

  • How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit

    Hello

    How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit?

    I'm transferring a 32-bit application on 64-bit.  In visual Studio, I added the 64-bit project configuration.  He compiled the source very well but the reports link errors:

    error LNK2019: unresolved external symbol DAQmxReadAnalogF64 referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateAIVoltageChan referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxReadDigitalLines referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDIChan referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxWriteDigitalLines referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDOChan referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj

    These, of course, are the functions OR that I use.  The NIDAQmx.lib has been added to the Input of the link property.

    Any help would be appreciated.

    Thank you

    -Neil shore

    Hi LaserShore,

    Think you that you added the 64-bit platform settings target according to this page? : http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/64bitcore/

    Already running 32-bit application? Have you changed references to the 64-bit version?

    You use Measurement Studio? If so some features are not supported with 64 bit.

    Also when you say that you have added the NIDAQmx.lib, did you follow this KB:http://digital.ni.com/public.nsf/allkb/38F67B28D995C6958625706E000C580C

  • Integration of material NI_DAQ and NOR-DAQmx software on the same system PCI-DIO-96

    Hello

    We have a great system that is developed in VB and uses the traditional inherited NOR-DAQ system. The system controls the controller PCI-DIO-96. We would like to upgrade to some parts of the system to NOR-DAQmx and use VB.Net and we know that you can install both systems together on the same computer.

    We have a few questions:

    (1) once the legacy of NOR-traditional DAQ OR DAQmx software can be integrated in the same system. Some parts of the system will always use the VB and the other parties will use VB.Net.

    (2) if the answer to the first question is Yes. Are there hardware or software limitations? Is there a recommended way to integration?

    (3) are there articles based on the knowledge about it?

    Thanks Jeremiah

    There are a number of limitations to the use of NOR-DAQmx and NOR-DAQ traditional at the same time.  First of all, only one of the drivers can access the device at a time.  To switch between the drivers, I recommend that you read this knowledge base Article: that I can use OR-DAQ traditional (old) and NOR-DAQmx simultaneously?  You will need to use the equivalent functions of VB .NET to switch between the pilots.

    In addition, the system should use Windows XP or an earlier version.

  • 5V power supply seems to have failed on PCI-6221

    I recently had a test set-up down, and it seems that this could be linked to the + 5v supply.

    When I connect 5v to the unit via an external power supply Board, the Board draws 50ma, far as the 1A, according to me, the PCI-6221 power is specified as being able to provide.  When I connect the camera Board to the PCI-6221 via cable, only 0.67v are measured on the map.  However, when the cable is not connected to the card of the unit, I measure 4.5V on the power supply 5v card PCI-6221.

    I couldn't find a standard of accuracy for the power supply of 5v, but I expected to be less than 0, 5V.  It seems that my PCI-6221 power can produce a voltage in open circuit, but decreases rapidly under a load condition, which seems that the jury didn't.

    Ideas?  Thanks in advance.

    Hi Scott,.

    Terminal on the 6221 5V is rail 5V PCI bus with some type of lighter, so the accuracy will depend on the computer's power. Would you be able to try this card in a machine that has a work data acquisition card? This would exclude any power problem on this computer. If this test fails, it is likely that there is a fuse and you will need to contact us as Josh mentioned for an RMA number.

  • Maximum latency to read/write for PCI-DIO-32HS with NOR-DAQmx?

    I was asked to evaluate using the PCI-DIO-32HS and NOR-DAQmx on MacOS X to essentially close a control loop.  My first concern is whether or not it can run fast enough.

    So my questions are: what is the maximum latency from the moment of receiving a signal strobe reading data from external hardware, then read a single 16-bit sample and sending it upward by NOR-DAQ to a user space application?  And, similarly, what is the maximum latency of sending a unique 16-bit value from a space application user down through NOR-DAQ, then write a port and affirming a strobe signal of external-data writing material?

    Thank you.

    Hi AliasMe,

    Thanks for posting and welcome to the Forums EITHER!

    Do you need to process the data in the software and generate a value on this basis?  DIO-32HS (alias PCI-6533) offers in the buffer of inputs and outputs, but you'd have a latency in your control system relying on the OS to do treatment.  Since this period is dependent on the system, I can't give a specification for the amount of time it would take.  However, integrating data in memory, processing and writing back to the card would likely be on the order of several milliseconds.

    Generally, we recommend FPGA in situations of control like this, so you can do all the processing in hardware.  However, if provide you more details on your request we can look into all the options available.

    -John

  • How to choose destinations for counter/timer signals in NOR-DAQmx?

    In the document M Series DAQ
    M series user manual
    622 x, NI 625 x and the materials NOR x 628
    M series user manual
    July 2008
    371022K - 01

    appears on page 7-30:

    Counter/Timer default pinout
    By default, NEITHER-DAQmx routes counters/timers and outputs inputs to the PFI pin, shown in table 7-4.
    Table 7-4. 68 peripheral pins by default Counter/Timer pines NOR-DAQmx
    Counters/timers fail-safety connector 0 PIN (name)
    0 2 CTR (PFI 12)

    You can use these default settings or select other sources and destinations for the
    counters/timers of NOR-DAQmx signals. Refer to the connection counter signals
    in the NOR-DAQmx help or the help of LabVIEW in version 8.0 or later for
    more information on how to connect your signals for common counter
    measures and generations.

    I couldn't find any hint to the appropriate command of DAQmx in the "NOR-DAQmx C reference Help" to select other destinations for counter/timer signals in NOR-DAQmx.
    Please can you tell me the DAQmx command right? Thank you very much.
    I use the NI USB-6259 M material Series DAQ, BNC end unit.

    datafriend,

    If I remember correctly, you can "free" the output terminal of default counter by calling DAQmxSetCOPulseTerm and passing an empty string in the 'data '.

    Hope that helps,

    Dan

    Edit: You can also set this to any other valid terminal (IE... "Dev1/PFI0") and to send the output to.

  • P0.0 6516-setting PCI to high causes the voltage drop across the external power supply

    Hello

    I use a PCI 6516 for 24V output. I have my power supply connected to pin 5 positive cable and the negative to pin 19. When I put the port 0, line 0 (P0.0) high heat, I have a voltage drop on the power supply to about 1.9V. There is no other son so there is no short circuit anywhere. The rest of the lines work very well when I put them on high. The automatic test works very well, and I tried to reset the unit several times. Could there be potential damage to this specific port? All the solutions to this problem, or anything that may have caused this behavior?

    Thank you
    Ahmed


  • power supply-how to determine watts

    I want to install a new video card, but I must first determine how many watts my diet is good for.

    How can I check this?

    Hello

    Usually the wattage is written outside the power supply in order to check the back
    in the case of the computer. If this isn't the case, you will need to check the inside of the case.

    After reviewing the determination of the power supply, you will then need to check
    motherboard and peripheral requirements. The video card is usually one of the
    large power users.

    How do you determine what is from my diet?
    http://www.computerhope.com/issues/ch000800.htm

    Other good sources of information are manufacturers of devices places and their forums.

    eXtreme Power Supply Calculator
    http://extreme.outervision.com/psucalculatorlite.jsp

    Power supply calculator
    http://educations.Newegg.com/tool/psucalc/index.html

    Choose the right diet for your computer
    http://en.kioskea.NET/FAQ/588-choosing-the-right-power-supply-for-your-computer

    How to test the power supply in my computer?
    http://pcsupport.about.com/od/toolsofthetrade/f/powersupplytest.htm

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to apply the patch to power supply in an environment of dataguard

    I need to apply a patch of power supply in an environment of dataguard. I would like to know the sequence of steps I must follow.

    Can someone please help me on this? DB version is 11.2.0.4 and I need to apply 11.2.0.4.3 PSU.

    In order to apply the fix, you must first carefully read the "Readme" of the patch for instructions.

    To give an overview of the sequence of steps to follow to apply a patch in environment dataguard, here it is:

    1 reporter on the primary to the standby log shipping.

    2 cancel the MRP on the standby database.

    3. apply the patch of power supply on the standby server. -See the Readme for instructions.

    4. ensure that the standby db is mounted and the earpiece is in place on the standby server.

    5. do not run any script correction on the standby database.

    6. apply the patch of power supply on the principal server.

    7. make sure that your primary database and the listener on the primary server is running.

    8 turn on the primary to the standby log shipping.

    9 start the MRP on the standby database.

    10. run the script of correction (catbundle.sql) on the primary database and monitor the progress of the eve of the resumption.

    Please refer to this

    How do you apply a group of patches, the power supply or the CPU in a configuration of data secondary physical custody (Doc ID 278641.1)

    Applying the fix to power supply in a dataguard environment (physical Standby). Shivananda Rao

    HTH

    -Jonathan Rolland

  • How to replace the power supply VAIO VGN-CS115J?

    Hello

    The power cord on my VAIO VGN-CS115J computer works correctly, but the power supply on my is broken.

    How can I get my fixed Power Jack?

    Friendly greetings,

    Jussi Yrjänä

    Zealious,

    It seems you need to remove the bottom case at least to get access to the DC Jack.  You may need to remove more pieces to remove it.  The p/n DC Jack is A-1609-073-A and can be ordered through Sony parts @ 800-488-7669 (US models).

Maybe you are looking for

  • "box to remove 'being a hero of the web' make your mark ' on the home page

    using FF5.01. WinXP sp3 when opening home page has my google image search in the Center, but under another box with different adds for FF for example: be a hero of the web or make your mark how to remove what I changed my homepage to "open with white

  • 64-bit 2009 HDX 16t has detected no fingerprint reader

    How iturn on the drive 16 bit HDX 16 t-1200 CTO Premium

  • End list ListView (Pull Up to load more)

    I have a Listview in which I would like to add more items when I am about to reach the end of the list. Currently I use onAtEndChanged signal to load more. But I would like to charge more when I'm about to reach about 80% of my list. I also use custo

  • What are the devices will be extensible to OS 5.0?

    Now that the OS 5.0 JDE Beta is out, I wonder when I'll be able to start using it. The question for me is what are the devices will be extensible to OS 5.0? I'm mainly interested in the enterprise space (upgrade via BES?), but the consumer (updates t

  • Models of Calibration WCS RF command missing

    In the version of WCs 6.0.181.0 the command of RF calibration models is missing in the drop-down list on the page cards. Is this one needed more than a basic license (it's there with the demo license)? I can't find anything in the documentation, sayi