Trig an analog input with NI6115 through digital data sent by NI6534

Hello,
I have 2 NI cards: NI6534 (master), NI6115 (slave)
I have succeeded to do the following point:
The slave wait a trigger given by a generated pattern data through NI6534 to start an analog acquisition
(I noted that the start of the analog acquisition is delayed by 100 ns, is that normal?)
Now I want to delay the analog acquisition (let's say by exactly 5.0 microseconds)
Any idea how to do that
Loranger

Loranger,
The delay you are seeing is expected. When using a trigger pulse to "trigger" acquisition on another card, there will be a small delay. Usually the card will actually "trigger" within 1-2 ticks of the timebase clock after the trigger pulse is received over the RTSI line. 2 ticks of the timebase on the NI6115 (timebase of 20MHz) corresponds to 100ns.
In regards to delaying the analog input aquisition; this is what I would suggest. I would have the trigger from the NI6534 go to a counter on the NI6115. You could program the counter to generate a delayed pulse (5 us) when the trigger from the 6534 is received. The output of the counter could then be used to trigger the analog input acquisition. This should work for you. I hope this helps.
Todd
D.
National Instruments
Applications Engineer

Similar Messages

  • Error -200279 with simultaneous analog input (different devices) and digital output.

    Hi guys,
    I am a beginner in Labview and have been dealing with this problem for a couple of weeks now and just can't seem to get it completely right, I have a feeling there are a few small bugs in my code/hardware setup.
    I am running an scxi-1000 chassis with a 1600 module and 1302C along with a 1303 accesory for temperature measurements, this is connected to four thermoucouples. Unfortunately I have a limited number of modules available so I am also using a PCI-6221 DAQ card with an scb-68 breakout box used for a digital output and analog input voltage channel. Attached is my labview program. When I run the code at a 50 Hz sampling rate it runs with no errors but the data file comes out extremely wrong, this is also attached. When I run the code at 100 Hz I get error-200279 after a few loops. I used to have 2 daqmx timing VIs (one for each input), but the same error would eventually happen, I have also tried increasing the buffer size on said timing VI. I am also using an old computer (Pentium IV) could this effect the program?
    I have learned a lot going through forms for similar problems to mine but I just can't get it to for an extended period of time, I have posted my simplest code.
    Thanks in advance,
    Luca
    Attachments:
    tc_2.txt ‏1102 KB
    FinalCombined_2.vi ‏128 KB

    Ok this makes sense. I have made the suggested modifications but still getting the same error with sampling rates of 100 Hz or higher. Could you check that I have implemented the queue VIs properly (new file attached)? Also when running at 50 Hz in debug mode it does not look like the second while loop (with the dequeue element) comes into play until I hit the stop button, once I hit the stop button I get the following error:
    Error 1 occurred at Dequeue Element in FinalCombined_2.vi
    Possible reason(s):
    LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488: Command requires GPIB Controller to be Controller-In-Charge.
    This leads me to believe I have programmed the queue elements incorrectly.
    Thanks for your help, any suggestions are greatly appreciated.
    Luca
    Attachments:
    FinalCombined_2.vi ‏102 KB

  • PCI 6023E Analog Input with DAQmx

    Hello everybody,
    I have some problems with a PCI 6023E Card. I`m using Lab View 7.1 on Windows 2000.
    When i start the MAX (Devices and.../NI-DAQmx - Devices.../PCI-6023E) and try to open the "Testpanel"
    i get the following message:
    Lab View: An exeption occurred within the external code
    called by a Call Library Node. This might have corrupted
    Lab Views memory. Save any work to a new location and
    restart Lab View.
    VI "BlockatContainerState2.vi" was stopped at node
    0xA10 of Sub VI "DAQmx

    sorry i had a problem thats the rest of the message
    Sub VI "DAQmx Assistant_DAQmx Create AI Channel (sub).vi"
    i get the same message when i try to use the DAQmx Assistant for
    analog Input measurements in Lab View.
    I hope you can help me
    best regards
    Chris

  • Error -200072 using analog input with 3 PXI 6120 cards on realtime mx system

    I have just upgraded to the mx drivers for the 6120 S series boards.
    I am trying to sample 12 analog inputs at once with a pretrigger. (4 channels per board)
    The error message -200072 comes up.
    One board works fine, when I add the second board's channels the error occurs.
    Each board shows up as A,B,C respectively in MAX and in the Labview browse menu for selecting channels.
    Greg Morningstar
    Takata

    Probably the best way to do this would simply be to use the Route Signal VI to make it to where each of your boards looks at a particular line for the trigger. You can do the same thing for the clock so that they are all sampling at the same time.
    You will also want to make sure that your device is defined in MAX. Once you do that, everything should be pretty easy to implement. You might also want to look at some of the examples that show how to do RTSI. It's almost the same as you would do for a PXI system.
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • How to read 2 analog inputs with VISA

    Hello everyone! I want to read two analog inputs using VISA serial communication from the arduino.  I'm currently able to read one of the input but how do I read two analog inputs on labview?

    Hi lamela,
    again I have to ask: HOW does the string look like? Is it so hard to provide an exact example of your received string???
    I think the string is showing one value from the two inputs
    Are you sure or are you guessing? How can we tell what you might "think" when you aren't able to provide examples?
    You wrote you send values from the Arduino using the command "println(value1, value2)", but now you "think" you only receive ""value1" in LabVIEW?
    Get your data communications clear! (And learn to provide meaningful examples!)
    Edit after your edit:
    my code to serial print two inputs: Serial.println(Voltage, Current);
    Even if I print separately: Serial.println(Voltage);
                                                 Serial.println(Current);
    The first command is completely different then the second part! In the first you should receive two values in one line, in the 2nd one you receive one value per line: You need to adapt your string parsing to these strings!
    Again: send both values in one line. Use the LF as termchar. Separate the values by some separator char like comma. Check the received string for validity. Use some error checking in your VI.

  • Can not get analog input with SCC-SG04

    I have used the wizard and wrote a simple AI input channel loop with a digital readout. The voltage doesn't change.

    Well, I guess I'm not sure what all you have tried or how you have things set or configured. I would first try verifying the input through the test panels in MAX. Make sure you have your DAQ card set to NRSE mode, make sure you have your SC termination equipment set as the "Accessory" to the DAQ card under it's properties, double check your connections, then see if you can read the voltage through the MAX test panels. After you can read the voltage there, then you can try using a program. I hope this helps!
    Russell

  • FPGA Analog Input with Scan Interface

    Hi all,
    I am rather new to the FPGA Module and have a question concerning analog sampling.
    Before, I used a cRIO in scan mode to perform following tasks:
    A state machine on the host PC performs one task after the other, e.g: output a voltage, run a stepper motor (with the NI 9512), Acquire voltage signals using the scan engine mode, logging data ; next voltage, next stepper position, next measurement, logging to the file,.... and so on.
    Now, I want to perform the same task, however, with a sampling rate that exceeds the performance of the scan engine. So I think I need to jump to FPGA Mode.
    The question is: Can I "mix" the measurement in FPGA while running others tasks of the state machine in scan mode? In more detail, I only "need" the FPGA Mode for the data acquisition, however, for running the stepper motor the Scan mode is perfectly fine and somewhat easier.
    One idea of mine was to create a fpga-vi on the target that acquires a certain amount of voltage samples and sends it to the host. Now, could I run the state machine as I did before, just for the state "voltage measurement" refer to the fpga-vi on the target and get the data?
    Thanks for any hint,
    Jack

    It would be best to not mix the scan engine and the FPGA.  Yes, you can do hybrid mode, but it uses A LOT of your FPGA resourses.  You can still use the state machine in your host, but you will just need to change the commands slightly to use the FPGA interface instead.  Use a DMA FIFO to send your analog data to your host to be logged.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Dv video time stamp with analog input

    Hi,
    I have a dv video which I want to time stamp with a analog input.  For the video, which is dv brought into the computer with ieee1394, LabView calls up a C++ program which then stores the video.  Simultaneously, in the program which calls up the C++, an analog signal is also stored (seperately).  I know it sounds tricky as well as messy but this is the best we've been able to work out, given the uncorroperative nature of LabView with dv camera.  Does anyone have suggections for time stamping these two signals so that I know exactly where in the video the analog signal occurs?  The PCI board we use is the NI 6014, which I know is timestamp capable, but I dont know if it can stamp the video feed since it doesnt come in through the NI card.
    All thanks in advance for any help!
    Daniel

    Daniel,
    Does your DV camera have any sort of timing or triggering signals? Without these, it will be virtually impossible to correlate measurements. It is cetainly possible to accurately time an analog input with your DAQ card, but correlating these to the digital video would be extremely difficult. Is this video streaming in real time? Or are you reading it off of an already-recorded tape? If this video is streaming in real time, with an acquisition started in software, I would suggest attempting to start the software DV reading at the same time as your DAQ task. If you do have an external signal that can trigger the video acquisition, then I would suggest using that same signal to start your analog acquisition.
    Hope this helps,
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • How to use both digital and analog input modules in the same worksheet - MCC USB1208LS

    Dear all,
    Hi, I am Imran. I am using MCC USB1208LS. I have created the worksheet using digital input module as below and able to execute (run).
    But when i add another analog input module in the same worksheet and executes, An error Message pops-up as in the below image
    I have connected temperature sensor sognal to the analog input of USB1208LS. When using analog input alone in the worksheet, it indiates the actual values. 
    is any black box solve? please guide me. I am attaching in images
    We already placed a purchase order for USB1208FS. Will it sort out my issues?.
    Thanking you,
    Imran Mohamed.
    Attachments:
    present worksheet digital input only.JPG ‏67 KB
    with analog input module.JPG ‏81 KB
    error menu.JPG ‏77 KB

    Hello Imran,
    the USB-1208LS is not capable of running concurrent operations such as an analog input scan and ANY digital Ins, Outs, counter reads, or analog outs.  In Dasylab, the 1208LS is scanning, and nothing else from that particular device can be requested of it while that is happening.
    Yes, using the 1208FS will resolve some of these issues.
    Please refer to the ULHELP.CHM file installed on your computer in c:\program files\measurement computing\daq for details on this issue, et al.
    also I recommend you send your MCC/DASYLab requests for support to [email protected] as MCC staff (that includes me) does not normally monitor NI's Developer Zone.

  • How do I get a 100 V 100 Hz signal into a NI PCI-6111 analog input?

    I have a 100 volt 100 Hz signal that I want to bring in on NI PCI-6111 analog input (+/- 5V input). Is there some small off the shelf transformer or other type of signal conditioning I should use? Basically I just need to time stamp other analog inputs with this one coming on.

    The PCI-6111 has a built in attenuator to allow up to 42V inputs. In order to read 100 volts you will have to use some sort an external attenuator. National Instruments offers several different modules and terminal blocks in the SCXI form that would accomplish this.
    I would recommend reading through this KB for more information.
    http://digital.ni.com/public.nsf/websearch/38AEFF122C8D732F8625629800519927?OpenDocument
    I hope this helps.
    Joshua

  • PXI-6230 analog input trigger setup

    Hi,
    Can anyone point me in the right direction of how to configure the PXI-6230 card to implement 3 of the analog input channels as a digital input trigger? The input to each channel is TTL pulses. I want to have a trigger event on every pulse from any of the three inputs. I'm using LabVIEW 8.5. Any help is appreciated. Thanks.

    Hey HarveryL,
    I'm not sure it is possible to do this. Can you give me some more details on your application, and why you want to use the analog inputs as a digital trigger? Here is an article on how to use PXI triggers with the analog input and output, perhaps you can adapt that code to your purposes. I'll continue to look into this for you, but any more information you can provide would be appreciated. Have a great week! 
    John B.
    Embedded Networks R&D
    National Instruments
    Certified LabVIEW Developer

  • Looking for NIDAQ Functions/​Examples for 'Analog I/O DMA' and 'Digital I/O DMA'. (I am using 6024,6503 boards and VC++ in my project)

    I am using 6024,6503 boards. I need to implement AnalogInputDMA /AnalogOutputDMA,DigitalInputDMA and DigitalOutputDMA blocks for another software. Why there are no NIDAQ functions used with 'DMA' ?

    Alan;
    The NI-DAQ doesn;t have any functions to specifically access the DMA transfers, because that is done automatically for you. Once you set the data transfer to use the DMA channels, all the rest is handled by the driver.
    Once you set up an Analog input task, and select the data transfer to use the DMA channels, you won't have access to the DMA channels but to the datapoints after the transfer.
    Regarding the digital side of the application, I think that what you are looking for is a pattern input/output type of application, that will use DMAs for data transfer.
    The 6503 doesn't offer that functionality. To accomplish that application, you will need one of the board of the 653x family.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National
    Instruments

  • Scanning of analog inputs in PXI 7831R FPGA

    Hi all,
    I am new to Labview FPGA Module. I am using Labview 7.1.1 and Labview FPGA Module 1.1 . I am using PXI 7831R FPGA Card.
    I developed a program which is used to scan analog Inputs with given scan rate for given scan duration. I gave input as pulse signal with 1Sec period and 2 V amplitude.
    If I scan one analog Input with 10ms scan rate for 1000ms scan duration I am getting correct values. But if I use 2 or more analong signals to scan at the same time then I am getting Multiple of periods. And also If I increase or decrease scan rate I am getting strange values. Could any body please check my code and help me.
    Thanks in Advance.
    Regards,
    Sashi
    Attachments:
    AnlogIn_FPGA.zip ‏247 KB

    customise your front panel with advanced picture creation metods
    Attachments:
    SUF.ctl ‏20 KB

  • Triggered Analog Input

    I want to trigger an analog input with a pulse generate
    by gating counter 0 with the Analog Output UPDATE* signal.
    any suggestion?
    Thanks,
    Erin

    Response-For what it is worth this isn't a very straight forward thing to
    achieve with LabVIEW VIs. I have been trying to do the same thing for a
    month now with no luck. If it is any consolation, NI tech support hasn't
    provided any working solution to this either. If I get it figured out in
    a few days I'll try to remember to write back.
    Try using the analog scan clock to trigger the analog read instead of the
    traditional "triggering" schemes in the LabVIEW documentation. Their terminology
    is misleading. Per LabVIEW the term "trigger" relates to the oscilloscope
    concept where you specify voltage level and edge-transition to recognize
    a waveform in order to high-speed sample the incoming waveform.
    In the embedded system the term "trigger" refers a specifi
    c point in time
    (defined as an "event") usually represented by a signal transition (rising
    or falling edge) at which you want something done such as read an analog
    input or save a counter value. In microcontrollers this is generally handled
    with a specialized hardware port called an input capture which is designed
    to automatically recognized signal transitions and simultaneously fire off
    an interrupt (read as "trigger") that can be used to start your unique action.
    LabVIEW documentation doesn't seem to have a clue about this concept. Perhaps
    you know all this already. Hope it helped in some manner anyway.
    Frank
    "Erin Ryan" wrote:
    >>I want to trigger an analog input with a pulse generate>by gating counter
    0 with the Analog Output UPDATE* signal.>>any suggestion?>>Thanks,>Erin

  • Newbie: 6020E (USB) slow performance with mixed digital and analog input

    Hi,
    I'm using a 6020E to do analog and digital input, and I'm getting very bad performance.
    Please note that doing IO in Labview is new to me!
    I have read the post about 6020E slow performance, and it says I should do buffered IO.
    Can anybody point me to some DOC or SAMPLE that actually shows or explains how one should do this. I need to read several digital IO lines (which I can combine in one port-read), and several analog inputs.
    Seeing how slow the reading on the 6020E is, I am amazed there is only one post that deals with this issue.
    I would be satisfied to get the 6020E into some sort of continuous read mode so that whenever I need data, I get the latest reading right away.
    thanks,
    Peter D'Hoye

    Hi Peter,
    Your cannot do buffered digital I/O with your daqpad. It doesn't have that capability. You can only make direct software calls with digital read/write from/to your port. So your digital IO is completely software clocked and not hardware clocked. The example you are trying is only for specific Simultanuous sampling boards or now also for M-series boards that are able to do correlated DIO.
    Use the Cont Acq&Graph Voltage-Int Clk.vi example for your analog measurements. (NI Example Finder) For your digital IO you can only use the examples like Read Dig Chan.vi, Read Dig Port,...
    There are indeed some slow performance issues with single point I/O Operations, that is correct.
    Check the explaination below:
    DAQPads are offered for the Universal Serial Bus (USB) and the IEEE 1394 (also known as FireWire). Both of these standards use a high-speed serial communication protocol between the computer and the device with a bandwidth up to 12 MB/s for USB and 400 MB/s for FireWire.
    During a single point operation, the DAQ device requires a complete set of configuration commands. This is done through serial communication (USB or FireWire), making the process slower than in a PCI-based board. The speed obtained for single point operation in a DAQPad is system dependent; this means that your computer processor, memory, bus speed, and other factors alter the speed at which you can do single-point operations with a DAQPad.
    For example, on the DAQPad-6020E, timed non-buffered analog input operations are limited to about 50 Hz. At higher rates, the software may become unresponsive. On a FireWire device, you can expect stable operation around 3,000 Hz. But again, these figures are system dependent.
    Regards.
    JV
    NI

Maybe you are looking for

  • Error code -50 when downloading music

    I keep getting an error code -50 when I download music..it happens sporatically, about every third song I attempt to download. I have sent endless emails to suport..and no one has an answer--i've done the diagnostics and sent them to support--disable

  • {990FXA GD-80 v2} Phase LED noise

    I hadn't notice this before. There is a frequency pitch that corresponds to the Phase Switching LEDs in the top right corner of the board. It isn't loud enough to be much of an annoyance and the system runs stable. My bios version is 13.1 and I've en

  • Extension Scenario Problem

    Hi, experts,      I created a scenario (SalesOrder -General Information to Invoice Request-General Information)      And I extended a field to SalesOrder with that scenario and referenced that field in CustomerInvoiceRequest.      I saved a sales ord

  • Impdp with no error exited

    DB=10.2.4.4 OS=OEL 5.4 After executing the import exit to command prompt. [oracle@dbserver data_pump]$ impdp dumpfile=test.dmp logfile=24oct2011.log schemas=a,b Import: Release 10.2.0.4.0 - Production on Monday, 24 October, 2011 10:22:35 Copyright (c

  • Some observations from my build

          Well, after scouring through the forums here I dove in and built a new system. I was somewhat apprehensive after spending a few hours reading through the posts here. But, I do realize this is the place people come to when they have problems, he