Measures voltage and temperature with 6221 and USB TC1

Hello

I make a program to make measurements of voltage with a card PCI 6221 37 pins Council and measures temperature with a USB-TC01. I use Labview 2009 SP1 and basically my program reads the data, it displays in a table and records in a file, all at a time which runs in a loop until I have to stop the program.

The program is closed. I wasn't too sure about timing with the 2 devices. The tc01 works at a fixed rate, so I put DAQmx read 1 Chan 1 Samp. On the 6221, I defined a sampling frequency and chose to not 'continuous samples', set DAQmx read 1Chan Nsamp and 'samples to read' the value "-1".» And it seems to work fine, but only if 'samples to read' - 1 seems too easy. I'm missing something. What determines the speed at which the loop runs?

Thank you

Try putting a wait function (ms) in the loop.  Set the value of waiting for 100 to 1000 ms.  If everything goes faster than that, then the wait will determine the rate of the loop.

Lynn

Tags: NI Hardware

Similar Questions

  • measurement of analog frequency with PCI or USB

    I want to measure the frequency of a square wave 0 - 5V from zero to about 4 kHz permanently.  I have to record the waveform, only get the frequency.  The material at my disposal include:

    (1) PCI-MIO-16

    (2) 6062E DAQCard

    (3) USB-6218

    If none of these devices can do this?  This seems to be a very common task, why can't I find the perfect example to do so.  I'm not having any luck with the DAQ assistant. Can someone tell me a simple example?

    You can also read the following link:

    Precise frequency measures

    And look at the examples in the zip here

    http://sine.NI.com/DevZone/CDA/EPD/p/ID/5000

  • Measurement of the temperature with the PCI-6229

    I was announced in an old thread and do not receive and answer, so I thought I try a new.

    Link to the old thread: http://forums.ni.com/ni/board/message?board.id=250&thread.id=14920&view=by_date_ascending&page=1

    I'm trying to measure temperatures using thermocouples using the PCI-6229 and I use two SBC-68LPR to make the connection.  They are not reference on them joints.

    After moving down from enugh to careful reading of the old thread I mentioned above and I think I knew what I should do.  Here's what I do now:

    Create a task - DAQmxCreateTask

    Create a channel for this task - DAQmxCreateAIThrmstrChanVex thermistor

    Create a number of channels of thermocouple for this task (DAQmxCreateAIThrmcplChan) using the cjcsource DAQmx_Val_Chan option and specifying the string thermistor as the source channel

    Start this task - DAQmxStartTask

    Get the temperatures - DAQmxReadAnalogF64

    Stop the task - DAQmxStopTask

    Disable the task - DAQmxClearTask

    I have not yet hooked, but I doubt that it is the cause of the error.

    A few more details (pardon my Delphi):

    Create the channel of the thermistor

    TmPcName: = ' Dev1/IA.19 ";

    Secret: = DAQmxCreateAIThrmstrChanVex)
    TcTaskHandle, / / task handle
    @TmPcName, / / physical channel name
    @TmChName, / / name of channel
    -80,                                   // Min range
    80,                                    // Max range
    DAQmx_Val_DegC, / / units, ° C
    DAQmx_Val_ResistanceConfiguration_4Wire, / / 2-wire, 4-wire, etc.
    DAQmx_Val_ExcitationSource_External, / / source of excitement, external
    1, / / value of excitement
    9.376e-4,                         // a
    2.208e-4,                         // b
    1.276e-7,                         // c
    30000);                            Resistance of reference

    Creation of the channel of thermocouple:

    TcPcName: = ' Dev1/ai23;

    Secret: = DAQmxCreateAIThrmcplChan)
    TcTaskHandle, / / task handle
    @TcPcName, / / physical channel name
    '',                                     // Channel name
    0,                                    // Min range
    1000, / / Max range
    DAQmx_Val_DegC, / / units
    DAQmx_Val_DegC, / / type of Thermocouple
    DAQmx_Val_Chan, / / source CJC
    25, / / value of CYC, so DAQxm_Val_ConstVal
    @TmPcName);             CJC channel, so DAQxm_Val_Chan

    It looks like 4 scales is required for voltage excitement thermistor measurements.

    In addition, it seems that external excitation is necessary in my case, PCI-6229.

    Everything works if I use a CJCConstant.  When I do this I use the same code to create channels of thermocouple, but I spend creating the channel of the thermistor.  When I try to use a CJCChannel I get an error saying "value required is not supported for this property value," which occurs when I call DAQmxStartTask.  I don't have no idea of what this message refers to and the best I can tell the properties that I've specified sense.  The constant termistor are from actual thermistor, that I found on travailleursduweb.com.

    I could also use some help to know how to connect the thermistor.  Looks like I need to fab, a thermistor circuit myself, with a stable voltage to power the termistor and use a double-ended analog and reference to the channel.

    Thank you

    Mike

    The error of thermocouple type was a type-o in the post.   Thanks for catching it.

    I think I found the problem.

    I wrote a small program to test for Thermistors and I went to using the routine exctation of tension for a common routine of excitement (... IEX instead of... Vex).  I had been by specifying a minimum value less than 0.  I changed it from-80 to 0, and it works now.  However, I got an error in division by zero, intermittently, when you read a thermistor channel.  The error is not in my code.  It occurs when you call DAQmxReadAnalogF64 for the first time and I'm not all mathematical related to this call.  I'm still looking into it.

  • 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.

  • Measure the voltage and the temperature at the same time with a single card PCI 6014 DAQ?

    Hello guys,.

    I'm doing a charger measuring the voltage of the battery, the charge current and the temperature of the battery using a 6014 cardboard...

    I want to use my PCI6014 DAQ card to measure 2-channel analog voltage input and 1 temperature Channel Analog input using thermocouple type k measurement of voltage or temperature isolation is OK, but I can't understand how to measure the voltage and the temperature at the same time... I want to use input differential...

    Thank you in advance, all the tips

    YSL

    Create a task and add channels to the task, as follows:

    Christian

  • How can I improve the rate of acquisition with daqmx and usb-6008?

    Hello

    I am trying to acquire data of analog voltage with a USB-6008. I'm under Labview 8.5 student on an HP laptop with a 1.33 Ghz cpu and 736MB RAM, apparently. I tried using the Daq assistant and the low-level Daqmx functions. My best results come with a task set in MAX for my analog input, and using the function 'Daqmx read' the 'unique double 1 d sample' value in a while loop. I insert the values returned in a table which built in the while loop, and then when I'm done, I check the number of samples in the table. In the test VI attached, I also use the time to Get before and after all loop. The best sampling rate I made using this method, is around 40samples/second. I have attached a VI below that illustrates this concept. In my actual application, the data acquisition code runs at a time while loop with 1ms, parallel to other code that controls the device I'm collecting data of. The sampling rate is roughly the same for my test below VI and my application program.

    The 6008 datasheet gives the sampling frequency maximum 10 kHz. I'd be happy with 2 to 2.5 kHz, or as soon as possible; I'm sure that I can achieve a little more than 40 Hz. My first idea was tied to the hardware, but the 6008 cannot make acquisitions NI hardware.

    My question is: How can I implement a faster sampling of analog voltages to a USB-6008 in LAbview? If I can't do it, is there another way I can taste the data more quickly?

    Thank you

    -SK-

    To the best of my knowledge, the USB-6008 can do timed equipment acquisition. Don't forget that this is a multiplexed device, so if you add 8 channels so the maximum you can set is 10 k/8

    If you are new to LabVIEW, I suggest that you try this sample program first

    \examples\DAQmx\Analog In\Measure voltage. llb\Acq & Graph tension-Int Clk.vi

    Amit

  • 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.

  • scanning voltage and current measurement for Keithley 2400

    Dear all

    Hello

    can someone help me?

    Despite days nearlly10 I am option to find any program LabVIEW 2010 for sweeping the voltage and measure current who works with RS-232, I have a end not have nothing exept examples read single and multiple data. I tried to SmartData labview and changed a few prorgram gpib to RS - 232, but I couldn't.

    In another attempt to find a good VI "votltage scanning and current measurement" that work with RS-232 in labview 5.1.1. I have converted in 2008, but it takes old driver (ke24xx.dll) and do not work in my labview 2010 and I could ' t find older driver.

    My thesis project was halted in those 10 days, and I couldn't do anything for our keithley.

    Please helpe...

    in the following, I have attached these files:

    1.-first, what voltage scan that works with GPIB

    2 - Vi that I change the gpib for visa (rs232) port that I don't know why it doesn't work.

    3. it is Vi related to the "sweeping and current measurement votltage" that works with the RS-232, but it takes old dirver so I can't use it.

    4-slot-VI necessary for the implementation of program 3 (but there is no driver for these subVIs) was attached to the reply message of this post

    If any body has this program ("scan votltage and current measurement" running rs - 232) please send to me

    Thanks in advance.

    None of you attached the screws are the driver OR you spoke. There is no conversion required for this driver.

  • Apple Watch magnetic charging Dock is compatible with the adapter USB 12W power and if so, is the adaptor 12W shorten the charging time?

    Apple Watch magnetic charging Dock is compatible with the adapter USB 12W power and if so, is the adaptor 12W shorten the charging time?

    Yes and no.

  • How can I take pictures with a regular usb camera and labwindows

    How can I take pictures with a regular usb camera and labwindows

    Hello

    What do you mean "ordinary USB camera? It's a Vision camera with a communication based on the API Vision camera or a 3rd party (such as a webcam)?

    In the latter case, you may need to consult the documentation of the manufacturer, it should be sent with her library (C DLL, ActiveX automation, .NET assembly) with functions to communicate with drivers.

    Best regards

  • Disable AutoPlay of CD and USB with XP Pro

    It is possible to:

    Disable AutoPlay of CD and USB with XP Pro

    How is it made?

    Greetings from Jørn Rudolph to the Denmark

    It is possible to:

    Disable AutoPlay of CD and USB with XP Pro

    How is it made?

    Greetings from Jørn Rudolph to the Denmark

    Sorry about the quote lol

    but here ya go

    • Click Start
    • Click on run
    • Enter GPEDIT. MSC
      The mmc group policy will appear. On the left panel:
    • Double-click Computer Configuration to open the submenu
    • Double-click Administrative Templates to open the submenu
    • Double-click system to open the submenu
    • Double-click autoplay Turn off option that will be near the bottom of the list in the right panel.

    The default value is not configured. Set it to "Enabled".

    The credit goes to www.windowsnetworking.com
    hope I helped :)

  • I CAN SEND/RECEIVE A FAX USING MY CANON PRINTER/FAX/COPIER USB AND MY MODEM INTERNAL VOICE/FAX WITH MY VERIZON USB MODEM FROM THE INTERNET?

    I AM RUNNING VISTA HOME PREM MY DEVICE MANAGER INDICATES THAT I HAVE AN INTERNAL FAX/VOICE MODEM. I'M SO CONFUSED.

    Original title: I DO NOT HAVE A POSER LINE, I CAN SEND and RECEIVE a FAX by USING MY USB CANON PRINTER/FAX/COPIER AND MY INTERNAL VOICE/FAX MODEM WITH MY VERIZON USB MODEM ACCESS to the INTERNET?

    The game, July 1, 2010 21:03:19 + 0000, CAPTBARRY wrote:

    I AM RUNNING VISTA HOME PREM MY DEVICE MANAGER INDICATES THAT I HAVE AN INTERNAL FAX/VOICE MODEM. I'M SO CONFUSED.

    Ouch! Please do not yell at us. We can hear you if you type normally,
    in different cases.

    You have an internal fax/voice modem, but if it is not connected to
    a land line, cannot you send/receive faxes like this.

    Your only choice is to not make use of your machine gun, but to use a web site
    service to send faxes for you.

    Ken Blake

  • I just finished my first computer, with Windows 7 USB boot, construction and now it asks for drivers.

    * Original title: drivers

    I just finished my first computer, with Windows 7 USB boot, construction and now it asks for drivers. help please?

    What drivers?

    Your hardware such as a video card may require pilots. Only you know what is in your version of the computer.

  • Chroma DC power supply RS232 communication (read problem of over-voltage and current)

    Dear all.

    I chroma programmable DC power. Based on the programming of the Instrument manual I develop using RS232 communication. Based on the program I can set the voltage, current, over-current protection, protection against overvoltages and make IT / OFF out put supply perfectly.

    But I have to read the measured values of the output power as current and voltage. Measured applications are the voltage and current of the output of the power supply. My problem is two of them read at the same time. Currently, the reading is only voaltge or current (if the first request is v? it is voltage read out but no reading for the current) and if the first request is CURR? the reading for the current, but not for VOLT? The status message is OK, even if it is to read values.

    Thanks in advance

    What I see in your program, it's that you do not use the stop for reading character. For your writing, you do the hard with all these concantanate string functions. You can set the stop character for all entries with a node unique propert - "ASRL end Out.

  • Hallo why? When I update ios. When the image has finished error itunes and usb

    Hallo why? When I update ios. When the image has finished error itunes and usb

    Connect the iPhone to the computer that you are synchronizing usually with

    and follow the prompts to iTunes on this computer. If you

    do not generally in sync with a computer, you should always use

    iTunes on a computer to complete the update.

Maybe you are looking for

  • What are the "StickyKeys"?

    I inadvertently hit some key/key combination while writing an email, and the software asked if I wanted to do something with "sticky keys". What is? They are useful. Thank you. Joan Shirrefs

  • Printer J3680

    Recently, my copy function failed. I have taken these steps, I downloaded the latest version of the drivers for my W 7 32. I'm still not managed to copy. When I try to copy, it assumes somehow I wan to send a fax and soon prints an (unrelated) answer

  • Wireless password issues (ahhhhhhhhh - please help)

    I have a router Wireless G Linksys (WRT54GS). For some reason any (even if I set the admin passowrd and I have a password on my system it always disappears. I notice that it is open to all and there is no change... I don't know why this is happening.

  • Hewlett packard deskjet 690C

    I have an old hp printer 690c I want to use with windows 7, it doesn't seem to be a driver available from hp. is there one available besides? Thank you

  • Radio On / Off

    Helloso I found that since the API Version 4.x, it is possible to toggle the unit radio. This is how I do it: int i = RadioInfo.getActiveWAFs();int iState = RadioInfo.getState();if (iState==0){//onRadio.activateWAFs(i);Dialog.alert("Radio switched on