6218 USB voltage and pulse acquisition

I use the USB-6218 to run 2 OR task at the same time in my vi. A task is to acquire a pressure transducer voltage and scaling it. The other task is the counting of pulse frequency with a flow meter and scale. Both tasks will work perfectly when I run them in Max, or run individually in my vi as a sub - vi. But when I try to run at the same time as I get wrong the meter reading of. It seems that the meter is losing his job after its first reading. Each task is written in its own subvi who takes a sample, and I'm sure that the task has stopped before that starts the other task. I don't get any errors, but I have to stop and restart the computer to clear the task of counter before he can start to read correctly.

Hello joe_n1,

It seems that this question is because of the way you use your tasks in subVIs.  If you create a task and then delete it each time, then every time that the task starts off fees.  As you say, he will lose his job after the first reading.

To avoid this problem, make sure that you are only to create the task (usually at the beginning of your VI) once and then once compensation (usually at the end of your VI).  Really, the only thing you have to repeat is the actual readings DAQmx.  For this reason, I would not recommend putting your tasks in subVIs.  You shouldn't have to stop each task before the other begins - rather, you should be able to run them simultaneously.

Tags: NI Hardware

Similar Questions

  • Downgrade of BIOS N100 (problems of USB voltage and battery charger)

    Hello. (Sorry for my English). I have problem with my computer laptop lenovo 3000 n100. I must downgrade my bios to version 1.08, because I have problem with USB - when I click on a button on my keyboard for example my USB was disconnect. Can someone tell me what should I do to downgrade? (Windows XP SP2)

    I have download v1.08, install, but when the program flash my new version of bios of my laptop BSOD 1 seconds...

    Concerning


  • Output USB amps and the voltage on the Satellite A100

    Help, please. I have a device that recharges its battery via the usb port. It only came with a car charger which has an output of 5 v 1. 0a - what is the output voltage and amps for my Satellite A100 usb port?

    Hello

    Generally, the USB ports provide 500mA.
    USB voltage values are know not to me but to my knowledge all the USB ports must supports USB standards.
    So if you are using a device that supports the simple USB 2.0 standards you should be able to recharge your battery

  • Connection of the PXI-4071 - can sound and LOs remain interconnected for the impedance of the cable 2, voltage DC/AC, frequency and waveform acquisition?

    Hello

    We use the DMM and SMU-6363 map to test a hardware device.  We will also use a PXI-2530 b switching matrix.  We will use the digital multimeter to perform the measurements of voltage, DC and AC, measurements of impedance (2-wire and 4-wire), frequency and waveform acquisition.  Can the PXI-4071 left be 4 wire connected (black jacks taken connected and red connected) mode and still be used to perform all other measures (including 2 impedance of the cable).  This would simplify the switch connections.

    Current measures use the son + and LO, but the HI and S-can remain connected.  The problem you are having is if you have an active device the digital multimeter and take you a 4-wire resistance and the measurement of voltage with all 4 wires connected and then change to a current... When you do this, short-circuit you the terminals of the DUT, on that you just take the measurement of the resistance.  If the terminal HAD, say, a power supply 10V, then you have just shorted out.  Of course, this isn't a problem if your Instrument is a passive device, or if you change just the unused two lead whenever there is an active device of low impedance.

    If you want to make voltage, current and 4-wire resistance, you need all 4 wires.  If you want to do the voltage and current, you will need 3 wires, but you could connect the s + Hi and then just do the two wires.  I vote running every 4 son to your DUT for maximum flexibility.

    2-wire resistance is a must if you are measuring resistance above 10 MOhm.  Alternatively, you can use 4-wire for all measures.

  • motion control for vertical actuator and data acquisition

    Hello

    I am a researcher (a branch of civil engineering) geotechnical engineering and I have very little knowledge about the acquisition of control and data motion, so would need a lot of help from the experts OR. I have only knowledge base on these 2 aspects based on my reading of some materials on the Web site of NOR and youtube videos, so I hope that you bare with me . Here are my questions:

    I am trying to build an actuator which will be used to push a probe (a penetrometer with a load cell to measure the resistance of a soil sample), resembling the concept, photography in the attached file. I need to have these criteria for my system:

    (1) actuator, which can push the probe at speeds between 0.01 mm/s - 300 mm/s with precision and move the probe cyclically (upwards and downwards) in the vertical direction
    (2) load expected on the probe into the ground range: 0.02kN - 6 kN.
    (3) necessary to get the load cell load data and the speed of the probe.

    4) able to control the actuator to a PC (speed and posotion) and monitor data from transducers and data log time even the transducers.

    Guess my beginners is that I will need:

    For orders:
    (1) software - LabVIEW and NOR-motion assistant

    (2) controller - NI PCI-7342

    (3) driver/amplifier - analogue servo AKD Drive

    (4) motor - motor brushless servo AKM

    For the acquisition:
    (1) software - based LabVIEW development systems

    (2) amplifiers or other device - no idea what type on the conditioning of signals

    (3) data acquisition device - no idea what type

    Since I'm a beginner, is - that someone might recommend components (hardware and software) for the control and data acquisition. I'm on a tight budget, so I thankful if someone could help me to recommend components good enough to build my system.

    Thanks for your help.

    At these rates, you will need to run the sensor for the cDAQ.  You can configure the analog output on the Tritex nationally on the position.  There is an adjustable filter that you can set in order to get a clean enough to 300 Hz signal.  When you learn about the Tritex, make sure that let you them know what comms and e/s that you want to use.  If I remember, not all options have worked together.  The analog output may need to be my, but you can put a resistance through the acquisition of input data to get the voltage instead.  I don't remember all the details.  You should really not too much on the Tritex/LabVIEW side.  You will send your movement parameters (beginning of end of race, speed, position, accel, cut), and if you cycle (I believe you) or simply running in a loop.  You could also just be able to use the functions of jog.  When you get close to knowing exaclty what you need, PM me and I'm sure we can work something out with the drivers.  You need only the basics.  In fact, you could probably do this all your movements via digital and analog i/o.

  • Measure the voltage and the temperature simultaneously with PCI-6281

    Measure the voltage and the temperature at the same time at the same time. However, when I put the voltage and temperature in a loop, the acquisition of voltage is significantly delayed. When I put the voltage and temperature in two different loop, none of them works.  There is an example in aid of Labview as shown. This structure works fairly quickly? In addition, how a volgate get and temperature Analog DBL 1Chan 1Samp? I check the exported excel, the first column is 0, 1 the second column contains the value of the voltage, temperature value. I wonder how can I get these two values for each scan.

    ,

    Assuming that the DAQ cards can handle it, you can set an analog trigger for the channel of the tension.  Then you just X samples to get your 100us data value.  Keep the last sample.

  • How to display the voltage and current of synchronously

    Recently, doing a project on the acquizeing voltage and current synchronouly, then display. the design is welding a resistor(1%) 0.5 ohm in NI 6251 entered analog of her HAVE differential, then acquired the differential voltage at the input to convert current. At the same time, I hope to recover the path of analog input voltage. My problem is that the current profile data. Please help me .the program screenshot is show below. ---1. Perhaps you ask why not use no. - a way to get voltage at all port of AI, then in the use of the software less to get a voltage inputs HAVE. in this way, my problem is solved. I try, but the current accuracy is failure. because my current range expect is 1uA ~ 100mA. precision current samll won't be promised if you use simple ways for granted NOR 6251 voltage. NEITHER 6251 device spec (HAVE an absolute precision) (v) nominal range sensitivity absolute Accuracy (uV) 10 1920 112 5 1010 56 2 410 22.8 74 0.2 6.4 0.1 52 6.0 (I want to use this range to measure current samll) - cordially Shawnh.Chen

    shawn1 wrote:
    1. how show the waveform by accumulating 1 d data table, rather than showing all 100 acquisition

    Use a waveform graph.  Graphics keep history, you do not have to accumulate the data.  He does it for you on the screen.

    shawn1 wrote:
    2. What is the minimum unit of identification of the TSC103IPT amplifier? I doubt that the 0.5uA can be identified? (0.5uV = 0.5 ohm * 1uA) Because I can't find anything on the auccary in TSC101IPT datasheet.

    The amplifier is analog.  Thus, he can win anything.  But you should really think about a higher resistance if you really want to measure this small of a current.

  • Digital and analog inputs simultaneously - NI USB-6009 and NI USB-6212 - ANSI C

    Hello

    I'm reading at all times and at the same time analog and digital inputs. Digital and analog samples must be sampled at the same clock and acquisition should be started (triggered?) at the same time (I don't want, after some time, analog reception more digital samples - the opposite is also true).

    I found an example (in C source code) "National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Synchronization\Multi-Function\ContAI-Read dig Chan" and tried to run with two USB cards: NI USB-6009 and NI USB-6212. Unfortunately, the two results by mistake, as described below:

    DAQmx error: the requested value is not supported for this property value.
    Property: DAQmx_SampTimingType
    You asked: DAQmx_Val_SampClk
    You can select: DAQmx_Val_OnDemand

    Task name: _unnamedTask<1>

    State code:-200077
    End of the program, press the Enter key to exit

    -Is it possible sync analog and digital acquisition in the paintings?

    -If so, how?

    Thank you

    Hello tcbusatta,

    Two of these modules, USB = 6008 and USB-6212, support only timed software inputs and digital outputs.  This means that you cannot define material timing (like finished sampling or continuous) for these modules.  Digital lines can be retrieved or written once to each call DAQmx read.

    This means that you will not be able to get any type of synchronization tight between the analogue and digital channels.  You will need a Board such as the NI USB-6341 in order to synchronize the AI and DI closely.

  • NOR-USB 6008 and Red Lion Cub5

    I have a USB-6008 attached to an AXL32 chip for recording of analog voltage and want to add a Red Lion Cub5 counter to display the number of the sample.  I want my labview program to drive the coutner via digital output, so that I can see what sample of data occurs.  There is a setting TTL on the Cub5, but I can't seem to increment the meter through the test DAQmax Panel.

    Troy,

    I'm glad to hear you got everything and functional. I suggest you mark a message as accepted solution so that other people can find solutions to a problem easier. Thank you.

  • Got a 27 "monitor from Apple, with thunderbolt (error). My MacPro can't love at first sight. Apple won't bring back the monitor. Will using a USB 3 map and then using a hard drive with USB 3 and Thunderbolt works?

    Got a 27 "monitor from Apple, with thunderbolt (error). My MacPro can't love at first sight. Apple won't bring back the monitor. Will using a USB 3 map and then using a hard drive with USB 3 and Thunderbolt works?

    N ° you need a computer logic board which has built in Thunderbolt.

  • Is it possible to plug a USB to my new iPad Pro, to transfer PDF files and some Jpeg files from the USB key with an adapter of lightning? If there is NO adapter, how can I get these files on the USB key and my iPad pro?

    Is it possible to plug a USB to my new iPad Pro, to transfer PDF files and some Jpeg files from the USB key with an adapter of lightning? If there is NO adapter, how can I get these files on the USB key and my iPad pro? I need these PDF files transferred my I touch pro. Any suggestions?  Please

    Thank you

    Mike Tingey

    The iPad does not support USB keys. There are some wireless flash drives that can be used, but not the classical records. I suggest you transfer files to a computer and their synchronization then back to the iPad via iTunes.

  • How to download an application on the USB drive and install it then from there?

    I want to download an app from itunes store from a windows computer, save on the USB drive and then install on my iPad. Please gibve me a hint weather it is possible. Thank you!

    No, it isn't. Live or through iTunes only.

  • Help! I need to connect my iPhone5s to the stereo, but it has only one usb port and whenever I connect it, it connects? Is there a setting on my phone, I need to change? Help, please

    Help! I NEED to connect my iPhone5s to the stereo, but it has only one usb port and whenever I connect it, it connects? Is there a setting I need to change on my phone? Help, please

    You will need something like that and a micro USB to USB cable

    http://www.Apple.com/shop/product/MD820AM/A/lightning-to-micro-USB-adapter

  • Satego P100-10F: Windows XP Lan, usb slots and the sound does not work

    Hello

    I have problems with windows vista, so I checked the forum to get information on the windows xp installation.

    I downloaded the drivers windows xp since the P100 Satellite (pspa6e), my only problem is that the LAN, usb slots and my sound does not work.

    I hope someone has a good idea for drivers or to install another driver I have sound and LAN on windows xp.

    Ty and Greetz

    See European driver of Toshiba.
    Here, you can try to install several drivers of different portable Satellite P100.
    Try all series.
    Fact is that some units of the Satellite P100 and Satego P100 series were delivered with the same features.
    Therefore, it should be possible to use the unique drivers of these series.
    Check all.

  • My HP 14 laptop is not recognizing the usb ports and wifi at startup.

    During the last few days I been dealing with the issue that my laptop does not recognize the usb ports and wifi. After several reboots, it works fine. My drivers are up to date, so I don't know why, I'll have this terrible problem.

    Welcome @hildergarn,

    Thank you for visiting the Forums HP's Support and welcome! It is an excellent site to find answers and ask questions. I understand that you have a problem with your Wi - Fi and USB ports on your laptop from HP.

    My first suggestion would be to use the wireless network troubleshooting and Internet tool. At the bottom it will ask you questions to help you diagnose the problem.

    Please take a look at this great Charter called troubleshooting wireless network and Internet. This document will help you to solve the problem of Wi - Fi.

    Have you tried to restore the BIOS?

    Have you tried to connect directly to the Modem/Router?

    You have uninstalled the driver in Device Manager?

    Please try to uninstall the driver in Device Manager by using the following steps:

    • Go to the Device Manager.
    • Expand network adapters.
    • Right-click on all NICs individually.
    • Click on uninstall.
    • Restart the laptop twice.

    How many devices you try to connect?

    What you are trying to connect via USB?

    Are - what you happened to try to use the HP Support Assistant?

    Here is a link to the HP Support Assistant, if you not him have not yet tried. Simply download and run the application and it will help with the software and drivers on your system that need updated.

    Here are other troubleshooting steps that may help too. If the USB device does not appear in Device Manager, then it might be a question of power requirement. Unplug the machine and perform the following steps until the device is detected:

    • Reboot the laptop
    • Plug in and wait five seconds.

    • If the device does not appear, try connecting to another USB port.

    • If the USB device is displayed in Device Manager after you connect the cable to a different port, then uninstall and reinstall the software of USB device driver.

    If the device is not recognized in any port, unplug it and go to the next step.

    • Open the Device Manager.
    • Double-click Bus USB controllers,

    • Double-click on a USB root hub,

    • Click the Power tab

    • Click on properties of power supply (if it is displayed).

    Devices need that are connected to the hub are shown, as well as the power they have. If the total displayed power is more than 500 mA, remove the devices and use a hub powered.

    • Continue looking at the properties of the power of each USB hub. If the total power required exceeds the total available power for the hub, then remove a device on this hub to a decrease in the number of consumption.

    • Plug in and wait five seconds. If the device is not recognized, unplug and go to the next step.

    Please note; Remove USB cables at high speed that are more than 3 m (9.8 ft) in length and use cables at high speed that are shorter than 3 m.

    Source: troubleshooting USB connections - please look at this document and follow all the steps in it.

    When we came to a resolution, please share what has worked for you with others by marking this post as an acceptable Solution. If you do not want to show your appreciation for my efforts today, please take a second to click the Thumbs Up button below.

    If please re-post and let me know the detailed results of all the troubleshooting steps in this post. Could you please provide me with your model number (How can I find my model number or product number?) also.

    Can't wait to hear from you!

    Have a great day!

Maybe you are looking for