TC measurements with PXI 4351 DAQ Card

(I am using version 6i of LabVIEW). I am trying to create a VI that will use a PXI 4351 Card with a TBX-68T to take 4 thermocouple continuous measurements. I am also acquiring 8 voltages with a 6030E and TBX-68 and writing them to a file. My voltage data acquisition is modeled after "Buffered Continuous Analog Input.vi" I would like to aquire voltages and temperatures in the same vi, but using different devices and accessories. (I need a higher frequency for the voltage acquisition, and more precision with the temperatures). Is there a subvi I can use to collect the temperature data in the same vi as my voltage? I don't want the thermocouple DAQ to interfere with the voltage DAQ, either.
I tried the NI435x thermocouple.vi
but I couldn't get the Built-in Cold Junction Sensor to work or figure out how to combine it with my exisiting voltage acquisition. I also got NaN for my readings, and I checked the wire connections in all the sub vi's as suggested by another solution.
Any comments would be great. Thanks in advance.

Claudia-
Thanks for the response.
Regarding the CJC- When I switch it on, the temperature readings I get are very random, roughly negative 1 degrees. (I am operating right now at room temperature, and will be using J-type TC's to measure ~43 degrees C). Also, when I use the built-in CJC, the aquisition rate seems to slow down considerably. When I use the "user specified" everything seems to be ok, including the aquisition rate.
I measured the resitance of the Thermistor on the TBX-68T and it was about 5000 Ohms, as expected.
Just to make sure: When using the TBX-68T, do I need to hard-wire a thermocouple to Channel 1/auto-zero and another to channel 0/CJC? Because I connected a TC to channel 0 right now, but I wasn't 100%
sure.
I've attached my main vi and two sub vi's that I am using for the voltage aquisition part of my project. (Note:the current measurements are just voltage measurements multiplied by the recipricol of the resistance it was measured across, ie. 10).
I would like to keep this file as is because it writes to a file exactly the way I want it to. I'd like to have the temperature aquisition with the 4351 in the same vi as the 6030E so that they both stop and start at the same time. I am just not sure how and where to log the temperature data since there will be fewer data points than the voltage data. Any suggestions? Should I write two separate files? can I somehow append them?
Thanks again. Hope to here from you soon.
Attachments:
EBlackMainDAQ.vi ‏107 KB
Save_Data8.vi ‏45 KB
Build_String_Array5.vi ‏33 KB

Similar Messages

  • No proper signal with NI-4351 DAQ-card

    Hello,
    I am trying to use a NI-4351 for temperature  measurement (together with TX-68T connector block). However, I don't get a proper signal in our laboratory. Using the MaX  and looking at  the test panel: there is sometimes the right voltage but most of the time  the signal is noisy or even more than that: it is jumping to the maximum and minimum of the voltage range (for every voltage range).
    In an another building with another supply circuit the signal is okay. So we suppose an EMC problem: Together with the Elec. department we have disconnected all "critical" consumers- no change, also filtering the supply of the PC has no effect.
    Can you propose a special supply voltage filter? The noise frequency is very low (less than 1 Hz). Other lab cards and electronic devices work properly under the same conditions. Has anyone ever had this kind of problem? Any solutions?
    Thank you.
    Bernhard

    double post
    refer to http://forums.ni.com/ni/board/message?board.id=250&message.id=13633
    Message Edited by TimoS on 07-06-2005 03:46 AM

  • How to structure the DMA buffer for PXie 6341 DAQ card for analog output with different frequencies on each channel

    I'm using the MHDDK for analog out/in with the PXIe 6341 DAQ card.
    The examples, e.g. aoex5, show a single Timer  (outTimerHelper::loadUI method), but the example shows DMA data loaded with the same vector size.
    There is a comment in the outTimerHelper:rogramUpdateCount call which implies that different buffer sizes per channel can be used.
       (the comment is: Switching between different buffer sizes will not be used)
    Does anyone know what the format of the DMA buffer should be for data for multiple channels with different frequencies ?
    For example, say we want a0 with a 1Khz Sine wave and a1 with a 1.5Khz sine wave.  What does the DMA buffer look like ?
    With the same frequency for each channel, the data is interleaved, e.g.  (ao0#0, ao1#0; ao0#1, ao1#1, ...), but when the frequencies for each channel is different, what does the buffer look like ?

    Hello Kenstern,
    The data is always interleaved because each card only has a single timing engine for each subsystem.
    For AO you must specify the number of samples that AO will output. You also specify the number of channels. Because there is only one timing engine for AO, each AO will channel will get updated at the same time tick of the update clock. The data will be arranged interleaved exactly as the example shows because each AO channel needs data to output at each tick of the update clock. The data itself can change based on the frequency you want to output.
    kenstern wrote:
    For example, say we want a0 with a 1Khz Sine wave and a1 with a 1.5Khz sine wave.  What does the DMA buffer look like ?
    With the same frequency for each channel, the data is interleaved, e.g.  (ao0#0, ao1#0; ao0#1, ao1#1, ...), but when the frequencies for each channel is different, what does the buffer look like ?
    In your example, you need to come up with an update rate that works for both waveforms (1 KHz and 1.5 KHz sine waves). To get a good representation of a sine wave, you need to update more than 10x as fast as your fastest frequency...I would recommend 100x if possible.
    Update Frequency: 150 KHz
    Channels: 2
    Then you create buffers that include full cycles of each waveform you want to output based on the update frequency. These buffers must also be the same size.
    Buffer 1: Contains data for the 1 KHz sine wave, 300 points, 2 sine wave cycles
    Buffer 2: Contains data for the 1.5 KHz sine wave, 300 points, 3 sine wave cycles
    You then interleave them as before. When the data is run through the ADC, they are outputting different sine waves even though the AO channels are updating at the same rate.

  • How to use PXI 6071E daq card to complete multichannels scan with high sampling speed

    I used pxi 6071E daq card to acquire 115v 400hz AC signals.when I use mutichannel scan function,I find that the voltage of waveforms have much more error.The voltage error is about 0~15v.please you can tell me why this happened?how to solve it.
    Attachments:
    多通道监测4.vi ‏199 KB

    Sunny;
    As you are scanning multiple channels and the signal range is high, you can try to set the interchannel delay a little higher. The interchannel delay is the time which the multiplexer will take to switch to the next channel. If that time is to short, the instrumentation amplifier can have problems to settle, and then an error at the reading will happen.
    You can change the Interchannel delay at the AI Config.vi.
    Hope this helps.
    Filipe

  • Frequency counter with E-Series DAQ Card

    I am trying to measure the frequency of a signal at 0.1 sec increments using a DAQCard-6062E and an AT-MIO-16E-10. I am using a VI from the examples (frequency counter.vi, in a while loop) which works well with the DAQCard, but it's giving wrong measurements with the AT-MIO card. Why is that?

    Hello Waw,
    Take a look at this KnowledgeBase to see if it fixes the problem.
    http://digital.ni.com/public.nsf/websearch/862567530005F09E8625681C0074935E?OpenDocument
    If not, what version of NI-DAQ do you have? Are you getting incorrect measurements with different ranges of frequencies? Is LabVIEW giving you any errors? Do any examples provide correct results with the AT-MIO-16E-10? Please let me know if you have any questions. Have a great day!
    Marni S.
    National Instruments

  • I am searching a VI for AC acquisition with a PCMCIA DAQ card 6024E

    Hi,
    I am searching a VI for Alternativ Current acquisition with a PCMCIA DAQ card 6024E.
    I have tried several availble examples but they are unfortunately not compatible with this card.
    I am a beginner with Labview, as a consequence any help and support on that topic would be really appreciated.
    Thanks,
    Alban Cotard.

    I think you wann measure Alternating Current?!?
    what want you know, the period, amplitude, rms.....?
    e.g. use the "cycle average and rms.vi"  or  other  VI in this palett
    regards timo

  • Can I use SH68-68S cable with PXI-4351?

    I'm trying to figure out which cables are actually compatible with PXI-4351 and TC-2190
    Will a SH68-68S work?
    thanks!

    Hey Grocket,
    I apologize for the delay in any response.
    It appears that the TC 2190 is only compatible with the SH68-68 cable. The product manual only suggests using that cable.
    The SH68-68-S is only compatible with TBX-68S, CB-68LP, and NI 2501/NI 2503.
    Let us know if there is anything else we can clarify for you!
    Happy Holidays! 
    J Newk
    Systems Engineer
    National Instruments

  • Quadrature Encoder measurements with PXI-6143 S-Series DAQ

    Has anyone used a S-series PXI-6143 DAQ to take encoder position measurements? I believe there are 2 counters available, if you have any examples of how to access and read from these counters it would be greatly appreciated.

    Hi Bentup,
    Measuring a quadrature encoder on your device is actually going to be a bit different than on an M series device.  The STC-2 chip, which is used in the M series, allows for A and B inputs specifically for encoder signals (used in the Angular Encoder task).  The original STC-1 chip which is used in E series and most S series boards (including your 6143) does not have these same inputs.  Instead, you may must a Count Digital Events task (taking advantage of the up/down line of the counter).  The Angular Encoder task is not supported on STC-1 devices.
    The article that lab_boy linked earlier actually mentions how to use an encoder with an E series device once you scroll down a bit (here's the link again).  This same procedure should apply to your S series--connect the A output of your encoder to the source of the Counter (this is the signal that you are counting).  Connect B to the up/down line of the counter (P0.6 and P0.7 for counter 0 and 1 respectively). 
    The downside with this method is that it is more susceptible to vibrations or noise on the encoder lines. If this is a problem for you, you can look into an external encoder conditioner like the one mentioned in the article.  I hope this helps!
    Best Regards,
    John
    John Passiak

  • How to generate a pulse waveform 90 deg phas shifted with respect to a pulse generated using a counter in PXI 6070E daq card ?

    Hi
    I ma using 6070E daq. I am generating a infinite pulse train using one of the counters. I want to generate another pulse train which should 90 degress phase shifted with respect to the previsously generated pulse. How to implement this using the counters in the DAQ card.

    Hi Gopal,
    1) yes the frequency generator is programmable. You have 2 timbebases (10MHz and 100kHz) and you can divide down by any integer between 1-16. Those are the only frequencies you can use.
    2) The way counters work is that you can apply a gate signal to the counter which will cutoff the output. Therefore, you can have a second counter generating a pulse train of an equivalent frequency to the frequency generator (fout) but you don't want it to start immediately. You want it to start only after a short delay (equivalent to a 90d phase). Therefore, you need to "gate" or prevent the output on this counter for that small delay period of time. The way you can do this is by using a second counter to create a delayed pulse. You would
    connect the output of that counter to the gate of your pulse train function. That way, during the delay period of the pulse, you won't be outputing your pulse train yet. When the pulse (high-time) of your pulse reaches the gate, then your pulse train will start generating its pulse train (which is consequently delayed by the amount of delay used in the single delayed pulse counter). Since you don't want your pulse to go back low, you will have to turn off or clear your pulse counter while it is high. That way the signal on the gate will remain high forever.
    Your better solution is to use a PCI-660x card to perform this action. You will have more counters which will give you a greater range of frequencies to choose from and you will have more accurate timing of the signals.
    Anyway, hope that clears things up. Have a good day.
    Ron

  • Ni pxi 6221 daq card internal dc offset is appearing in every signal

    sir ,
    thank u for the quick response from ni , please reply for my first
    question , i.e there is internal dc offest value of around 0.35 volts
    appearing with every signal when i try to measure it with a pxi 6221
    multi fuction daq card and ni elvis oscilloscope or  oscilloscope
    to observe it . even though the the dc offset is zero from the
    source  side (arbitray waveform genertor).
    Deepak Kumar
    M.Tech , Power and Energy Systems
    NITK SURATHKAL
    MANGALORE
    INDIA

    Hello,
    What is your arbitrary waveform generator's product number?  Have you tried calibrating the arb?
    Regards,
    Sean C.

  • Data-acquisition with NI 6036E DAQ card & GPIB using an external trigger

    Hi all,
    I hope somebody could give me some help with the following and answer some questions:
    Simple system description:
    Labview 6.1
    PCI-GPIB card
    6036E DAQ card
    In my system, I am using an external analog trigger signal (A) for continuous data-acquisition. Characteristics of the analog trigger signal (A) are: ~40 Hz, signal height +1.48V, triggered by rising edge (the analog trigger signal (A) could be changed to a TTL signal). Each data-acquisition is done within ~1.0 ms after the rising edge of the trigger pulse. The timing of the data-acquisition and analyzing procedure is controlled by execution in a sequence structure placed in a loop.
    Now, I connected a power meter to the system, to measure the laser power during the data-acquisition. The power meter has two options to provide the laser power data:
    a) via analog signal output (voltage corresponds to laser power in watts)
    b) via GPIB (direct output reading of laser power in watts).
    Problem:
    During a certain point in my data-acquisition sequence structure (defined by a frame), I want to use the next occuring analog trigger signal (A) to acquire 1 value from the power meter.
    How do I do this in Labview programming for the following two situations?
    a) If I connect the analog output from the power meter to an analog input channel of the 6036E DAQ card. The analog trigger (A) would be connected to a second analog input channel (In case the analog trigger signal (A) is changed to a TTL signal it would be connected to the PFI0/Trig input pin on the DAQ card).
    b) If I use the GPIB connection of the power meter. The analog trigger (A) would be connected to a second analog input channel (In case the analog trigger signal (A) is changed to a TTL signal it would be connected to the PFI0/Trig input pin on the DAQ card).
    An other possibility would be to trigger the power meter directly, so it outputs constantly power meter values at ~40 Hz. How could I than acquire 1 power meter value (at a certain time im my sequence structure) via analog input at DAQ card or GPIB?
    Additional questions:
    How do I configure the PFI0/Trig pin on the 6036E DAQ board individually as an INPUT?
    How do I use an analog trigger signal (A) as counting signal for a loop, or as an activation signal for a sequence structure which includes GPIB commands?
    It would be very nice if somebody could give me some help.
    Kind regards,
    beam

    Hi beam,
    I just want to verify that I understand your situation correctly:
    An external trigger signal (A) is wired to one of your input channels (e.g. CH0) to trigger data acquisition of a second channel (e.g. CH1). Your power meter is connected to an analog input channel, which you would like to trigger with a certain rising edge at some of your sequence structure.
    Problem:
    During a certain point in my data-acquisition sequence structure (defined by a frame), I want to use the next occuring analog trigger signal (A) to acquire 1 value from the power meter.
    How do I do this in Labview programming for the following two situations?
    a) If I connect the analog output from the power meter to an analog input channel of the 6036E DAQ card. The analog trigger (A) would be connected to a second analog input channel (In case the analog trigger signal (A) is changed to a TTL signal it would be connected to the PFI0/Trig input pin on the DAQ card).
    If a task has been configured to acquire signal from one analog channel, it's not possible to run a second analog input task or to add a second channel on the fly. You had mentioned that it's possible to read from the instrument through GPIB. Is it possible to perform a software trigger such that at a certain frame of your structure, when the trigger signal A reaches voltage "x", a GPIB command is written to your power meter to query a measurement reading?
    Additional questions:
    How do I configure the PFI0/Trig pin on the 6036E DAQ board individually as an INPUT?
    You do not need to explicitly configure the PFI0 line as an input. If you want to use it as an input such that it acts as an analog trigger, simply wire the trigger signal to this pin. When configuring the trigger in your software, specify PFI0 as the trigger source.
    How do I use an analog trigger signal (A) as counting signal for a loop, or as an activation signal for a sequence structure which includes GPIB commands?
    You can try using the Limit VI to find out when the trigger signal reaches a certain level, and count how many times this level is reached. Similarly, you can use this as the condition to execute GPIB commands.
    Hope this helps,
    Lesley

  • How to use niSwitch_InitWithTopology with PXI-2567 relais card

    Hello,
    I'm trying to get the NI Visual Basic example niSwitchControllingAnIndividualRelay.vbp working with a PXI-2567 relais card.
    I doesn't seem to get my ResourceName and Topology (the first two parameters of the niSwitch_InitWithTopology function) right (the example program creates the errors 1074130544 "This session is not valid" and 1074135030 "Failure loading driver module").
    Where can I find the right ResourceName and Topology for the PXI-2567 (self test all right) to fill in these two parameters ?
    With thanks,
    best regards,
    Geert
    Attachments:
    IMG1.gif ‏28 KB

    Hello AlessioD,
    the relay card PXI-2567 stopped "working" again (I don't know why). So I checked the 'Tools' - 'Select switch card' from the Measurement and Automation Explorer with as result the error "Failure loading driver module" on 'OK'.
    Seems that the driver module of this PXI-2567 can't be loaded. NI-switch 32.dll gives the same error report from the Visual Basic sample program.
    What can be the problem and how to fix it ?
    With thanks,
    best regards,
    Geert
    Attachments:
    driver_not_loaded1.gif ‏37 KB
    driver_not_loaded2.gif ‏28 KB

  • Noise in thermocouple measurement using PCI-6024E DAQ card

    I am using a PCI-6024E DAQ card for thermocouple(TC) measurement. The
    TC is installed in the mold cavity of an injection molding (IM)
    machine. The leads from the TC are connected to the DAQ card using a
    CB-68LP board. I made a  temperature mesurment task in LabView 7.0
    with the two leads from TC as differential inputs and used CJC value of
    25 deg C.
    The problem is that when the IM machine is OFF, I get a reasonable temp
    reading with some slight noise but as soon as I turn ON the IM machine,
    the temp readings go wild with a lot of variations around the mean
    value. The temp values also don't go to higher values when the TC is in
    contact with the molten plastic in the IM machine.
    Do I need to ground something here or put a resistor in the I/O board?
    BTW the IM machine is grounded and the TC give correct temp values when
    connected to a hand-held temp reader.
    Any help will be highly appreciated.

    Hello  Aftab,
    Looks like you need to use bias resistors to reduce the noise. Check out the following tutorial for more information about how to use bias resistors.

  • AI Buffer Read Problem with PXI-4351

    I have a PXI-8105 controller in a PXI-1045
    chassis with labview 8.2 installed.  I would like to use a PXI-4351
    board to measure a thermistor.   I am using the sample vi on the ni web page http://zone.ni.com/devzone/cda/epd/p/id/838, but I get an error code -10846 "AI buffer read" after a few acquistions.  I am new to Lab view --- what does this mean and how do I fix it?

    Well, I don't have ready access to a LV PC and for some very odd reason, my attempt to search for "error code" (and even just plain "error") on the ni website returned 0 hits?!?  Strange...
    Anyhow, I'll take a guess and offer you an idea for a workaround.  Could your error mean that your call to AI Buffer Read times out before the requested # samples have been taken?  This kind of error wouldn't be surprising as it's difficult to determine a reasonable timeout value.  Based on my own past experience with a 4351 board, I'd say that the whole notion of "sample rate" turns into something of an odd duck. 
    As I recall, all you can specify is a filter frequency which will establish a ceiling for your actual sample rate.  However, the board also has some sort of criteria for signal stability.  If you have several different channels to measure which use different input ranges, your actual sample rate can be reduced pretty dramatically.  So you might get a few samples per second or a few seconds per sample.
    The workaround I used was to always request data that had already been collected and was immediately available.  One of the inputs to the AI Buffer Read lets you set some parameters where you can specify that you want to read the most recent sample that's already in the buffer.  Granted, this may represent a temperature from a second or two ago, but this lag is not necessarily a major issue for temperature measurements.
    Note: in my app, I could query for Temperature any time I wanted, as frequently as I wanted.  I would always get data back, but there was no guarantee that I'd get *unique* data back.  In other words, if I called it 10 times in a tight loop, I might get the exact same sample # back each of those 10 times.
    -Kevin P.

  • Frequency response measurements with pxi-5922

    I’ am using signal express and the pxi-5922 digitizer together with the AWG pxi-5441 to analyse the frequency response of a buffer amplifier. See the attached signal express file. Many different ways to measure the frequency response have been tried and this is the best I came up with. It is basically two tone extract steps in a sweep loop. But I’ am still uncertain if this is the best way to do this kind of measurement. The fact that the detected frequency differs between the two channels worries me, even when the two channels of the pxi-5922 are looped.  Is there a more accurate way to determine the frequency response?
    Best wishes
    Stefan Johansson, SP
    Attachments:
    sweep.JPG ‏397 KB
    Frequency Sweep funkar.seproj ‏81 KB

    Claudia-
    Thanks for the response.
    Regarding the CJC- When I switch it on, the temperature readings I get are very random, roughly negative 1 degrees. (I am operating right now at room temperature, and will be using J-type TC's to measure ~43 degrees C). Also, when I use the built-in CJC, the aquisition rate seems to slow down considerably. When I use the "user specified" everything seems to be ok, including the aquisition rate.
    I measured the resitance of the Thermistor on the TBX-68T and it was about 5000 Ohms, as expected.
    Just to make sure: When using the TBX-68T, do I need to hard-wire a thermocouple to Channel 1/auto-zero and another to channel 0/CJC? Because I connected a TC to channel 0 right now, but I wasn't 100%
    sure.
    I've attached my main vi and two sub vi's that I am using for the voltage aquisition part of my project. (Note:the current measurements are just voltage measurements multiplied by the recipricol of the resistance it was measured across, ie. 10).
    I would like to keep this file as is because it writes to a file exactly the way I want it to. I'd like to have the temperature aquisition with the 4351 in the same vi as the 6030E so that they both stop and start at the same time. I am just not sure how and where to log the temperature data since there will be fewer data points than the voltage data. Any suggestions? Should I write two separate files? can I somehow append them?
    Thanks again. Hope to here from you soon.
    Attachments:
    EBlackMainDAQ.vi ‏107 KB
    Save_Data8.vi ‏45 KB
    Build_String_Array5.vi ‏33 KB

Maybe you are looking for

  • Message mapping 2D structure

    Please excuse me, this seems to be a very simple issue but being resonably new to message mapping I am having issues solving it. Ok each field maps to a repeating structure in the target IDOC, I ahve duplicated the subtree in the Structure and mapped

  • Errors in impdp command on oracle 10g database

    Hi, could you plz help me to solve below errors which are coming while doing import with impdp command in oracle 10g 10.1.0.4.0 os: Red Hat Enterprise Linux ES release 4 ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA

  • XML Error in Oracle 10g Express

    Hello! First of, I would like to say that Oracle XE is quite an excellent product. I am happy to join this community to learn more about the product and hopefully in the future to help others out as well. And now, to my question: Database: Oracle Dat

  • Garbled inbound emails

    I know this is probably something stupid, but it is driving me crazy and I can't seem to find how to fix it. Every now and then, people email me and the body of their messages appear in mathematical fractions! I had the same epoblem with other applic

  • Macbook charger stalling

    My MacBook Air is plugged in and the icon appears in the upper right of the screen, but the green light is not on. The computer is not losing power as I use it but it is not charging either. It just stays stable at 65%.