Hardware timed Dataacquisition with cRIO

hi,
i am trying to develop a code for dataacquisition using cRIO. my application specifications are:
Digital Input: 1 (trigger for acquisition, i have a cRIO-9401 DIO module
Analog Inputs-2 (i have cRIO-9215 and also cRIO-9221 AI modules for this)
i need to develop  a code in which the acquisition is triggered by a pulse signal of Period=20 ms and On-time=1 ms on a falling edge
the two analog inputs are: a current waveform which is on when ever there is a trigger and shuts-off on the falling edge
                                           and the second AI is a voltage signal from an EMI sensor, the two analog inputs should be synchronized
                                           and the code should acquire 20 ms of data after the trigger and check for the trigger again, and if there is a trigger, it should start acquiring
i developed a code for this, but i am having problems with the code......
1) the code seemed to work fine for some time when i tried to test it with two sinusoidal inputs and a pulse as the trigger but when i ran it again, the amplitude of the Analog input was reduced
2) how can i save the data on the Real-time controller? can i do it by using the storage VI's in labview? which i used for storing data on my host computer. and one more thing.....
i saved the data in .tdm format and tried to convert it into .xls using Diadem, but it gave me a warning saying some information can be lost.
Message Edited by jithendra on 08-11-2005 06:38 PM
Message Edited by jithendra on 08-11-2005 06:41 PM
Attachments:
test.zip ‏263 KB

Hello,
By running the VI for a second time, you mean, stop the whole Host VI and the re run it? Or just trigger it for the second time? When you say that it reduced, you mean in Amplitude or the number of samples? I ask this because you have "Data read" that once you write a True to it, it will always be true.  You never set it back to False, so the FPGA keeps running all the time, overwriting the "AI Data",
Ricardo S.
National Instruments

Similar Messages

  • Hardware timed Dataacquis​ition with cRIO

    hi,
    i am trying to develop a code for dataacquisition using cRIO. my application specifications are:
    Digital Input: 1 (trigger for acquisition, i have a cRIO-9401 DIO module
    Analog Inputs-2 (i have cRIO-9215 and also cRIO-9221 AI modules for this)
    i need to develop  a code in which the acquisition is triggered by a pulse signal of Period=20 ms and On-time=1 ms on a falling edge
    the two analog inputs are: a current waveform which is on when ever there is a trigger and shuts-off on the falling edge

    Hello,
    By running the VI for a second time, you mean, stop the whole Host VI and the re run it? Or just trigger it for the second time? When you say that it reduced, you mean in Amplitude or the number of samples? I ask this because you have "Data read" that once you write a True to it, it will always be true.  You never set it back to False, so the FPGA keeps running all the time, overwriting the "AI Data",
    Ricardo S.
    National Instruments

  • Unable to measure frequency below 20 Hz on a NIDAQ 9178 chassis with NI 9402 even while using a hardware timed delay

    Hello,
    I am trying to measure frequency using NI 9402 in NI cDAQ9178 chassis. I am setting the clock for my counter channel to be my chassis ai Sample Clock.
    I am able to measure frequency above 20 Hz. For frequencies less than 20Hz, I get the following error:
    DAQmx Error: Multiple Sample Clock pulses were detected within one period of the input signal. Use a Sample Clock rate that is slower than the input signal. Ifyou are using an external Sample Clock, ensure that clock signal is within the jitter and voltage level specifications and without glitches.Task Name: _unnamedTask<0>
    Status Code: -201314
    Setting the Rate to 1 also not does resolve the issue.
    OTHER DETAILS:
    * Running on 64 bit, Win7 platform.
    * NIDAQmx Driver Version: 14.5
    I had posted regarding this earlier and I was told that this might be because the counter is armed immediately before the first sample is taken. The recommendation was to add a hardware-timed delay using the DAQmxSetStartTrigDelay method to the AI task. I have added this delay but I still receive the same error message. The previous post I had mentioned can be found below:
    http://forums.ni.com/t5/Multifunction-DAQ/Cannot-measure-frequency-below-20-Hz-on-a-NIDAQ-9178-chassis/td-p/1537274
    I have also attached my current code which has the delay. Is this a bug in the driver? If yes, can we have a CAR# to track this?
    Thanks.
    Regards,
    Varun Hariharan
    The MathWorks

    Alright so I got everything working correctly in both C and LabVIEW code.
    The problems is in fact with the first sample, as John_P1 suggested. You simply need to delay that first sample from being requested. It is simple to do this in software instead of hardware.
    If you are using CVI, just add #include <utility.h> to the top of your .c file and then add a delay before your DAQmxErrChk (DAQmxStartTask(AItaskHandle)); line.
    Comment out / remove the DAQmxSetStartTrigDelay(AItaskHandle,10); line, as it wasn't doing what we thought it would. (Hardware delay).
    I added Delay (.05); to delay long enough for the full period of the input signal at 20 Hz.
    Depending on your frequency, this value may need to be adjusted. 100ms wouldn't be a bad idea.
    This is expected behavior, and I don't think we need a CAR.
    Let me know what you think!
    -CB

  • Need urgent help with HSDIO hardware timing

    Hi everyone,
    I need urgent help regarding HSDIO hardware timing. I've been working in a project which generating serial ramp using HSDIO pxie device. 
    I'm using clock rate 40MHz and generating 14 bit of boolean for each step of ramp. And I have to generate simply 256 steps ramp.
    Which means, 256 (steps) x 14 (boolean array) x 25 ns (period of 1 boolean value) = 89,6 ns.
    What I'm doing right now is with using index of FOR loop as my input data (converting the index into 14bit boolean), then write into pxie device in every iteration,
    which means, my data is getting into output in every 1ms time, right? (I'm using windows)
    And I want to be able to generate faster than that. 
    How can I prewrite my 256 steps ramp, then write them all at once into pxie device. I'm really stuck here.
    In the picture can you see how I do the write into device in every iteration of FOR Loop.
    Regards,
    Yan.

    hi, thanks for responding.
    with using example of dynamic generation with script, I can manage to generate the ramp with controllable delay (generate the whole waveform, including delay with script command, then write to the card).
    But I still have 1 question, I can test the output of the generation using oscilloscope and cant see the start delay (I'm writing delay at the start, before generating the ramp). My signal generated at 0 sec.
    How can I check this start delay? is there any good example delivered with Labview to check this generation? Somehow I cant use the "dynamic generation and acquisition" example to see my generation (cant figure out how to capture the generated signal).
    regards,
    Yan.

  • Using cDAQ timers to repeat a hardware-timed finite-sample pulse train clock

    Hi all,
    As part of a complex project, I must implement an acquisition hardware interface for a linear motion sensor using the Synchronous Serial Interface (SSI) output common in industrial motion control. (I have a fair bit of experience in digital electronics, but I'm new to hardware timer-synchronized digital I/O in LabVIEW.)
    To do this, I need to create a hardware-timed bursted pulse train TTL clock signal. Each burst consists of 25 high-low transitions with a full-cycle period of 2.67 microseconds (375kHz). The output must then be held high until the next burst, which occur at 1ms intervals.
    Using cDAQ timers and a NI 9401 (based on the example at http://www.ni.com/example/30256/en/), I've been able to create the pulse train burst as described (see attached VI image). Next I need to configure another timer to trigger this burst to repeat at 1ms intervals.
    Does anyone have any pointers about the best way to accomplish the hardware timing for repetition of the pulse train?
    Any suggestions of alternative strategies or observations as to the ways my noobish code is stupid or inefficient are welcome as well!
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    Hardware Timed Pulse Train Clock.jpg ‏102 KB

    Hey Ryan, 
    A picture of the behavior you are seeing would be helpful. The NI 9411 should only be reading 50 bits every 1 ms.  
    It may not be possible to read 25 bits (do you mean 50 bits? 25 high 25 low) and push it to a queue without encountering an overflow error. If you take a look at the above code the digital input will receive 50 sample clocks every 1 ms. This is equivalent to acquiring 50 points every 1 ms which is an acquisition speed of 50 samples/1 ms=50 kHz. The read loop must keep up with the 50 kHz rate otherwise the buffer will overflow. In the above example I’ve set the read to pull 5000 samples (x) with the assumption that the loop will take less than or equal to .1 seconds (y). This yields a software acquisition speed of 50 kHz (5000 samples/100 ms). If the loop speed is faster than 100ms then the 10 seconds timeout on the DAQmx read will allow for the read to block so the FIFO may be filled.
    The options available for question 2 are below. They may be used separately or in conjunction.
    Move the DAQmx Read for the NI 9411 to its own independent while loop, set the DAQmx Read to acquire 50 samples, do not graph the data, and pass the data to a Queue for processing in a consumer loop. This will increase the loop speed which may allow you to keep up with the 50 kHz acquisition speed. This may not work because the loop speed will need to be 1 ms or less.
    Increase the value of the Samples per Channel control that goes into the DAQmx Timing VI. This will increase the DAQmx Software Buffer size. This buys time until you receive an overflow error because the DAQmx Software Buffer is being filled faster than samples are removed.
    Read in 5000 sample chunks (producer loop), push this to the queue, and perform the analysis in 50 bit chunks (consumer loop). The additional queue created should allow for the acquisition loop to keep up.
    Regards,
    Izzy O.
    Product Support Engineer
    ni.com/support

  • HT201257 I just bought an imac in september 2012.  And i just find out that my microphone is not working.  So i did an apple hardware test and with no problems found?  I have sound but no one can hear me, not even the computer.  Should i bring it back to

    I just bought an imac in september 2012.  And i just find out that my microphone is not working.  So i did an apple hardware test and with no problems found?  I have sound but no one can hear me, not even the computer.  Should i bring it back to the store

    Before you go through that trouble open About this Mac > More Info... > System Report > Audio and see if the system actually knows it has a microphone.  Then you can look into Applications > Utilities >  Audio MIDI Setup and see if the microphone is there, select it and make sure the sliders are set to full. Then in System Preferences look for Sound > Input and make sure it shows up there and the sliders are at least half way up. If none of that works do a
    SMC RESET
    http://support.apple.com/kb/HT3964
    Shut down the computer.
    Unplug the computer's power cord and ALL peripherals.
    Wait 15 seconds.
    Attach the computers power cable.
    Wait another 5 seconds and press the power button to turn on the computer.
    It is the 5 second timing that initiates the reset.
    then go through the process of looking for the microphone again as the reset may reenable the mic.

  • PXIe-4141 hardware timed 4- channel sweep

    In the attached example of FET/BJT characterisation using hardware timed two channel sweep, for each gate voltage the drain values are sweeped.
    If I understand the trigger settings correctly :-
    For each drain value, V is applied and I is measured. So if there are 2 Vg values and 3 Vd values, the PXI fetches 6 Vd & Id and 2 Vg, Ig values.
    To put it more bluntly,
    seq start
     Vg = 3V Ig = .....
    seq start
    Vd = 0.5,Id = ....(Ig = ?)
    Vd = 1,Id = ....(Ig = ?)
    Vd = 1.5 Id = ....(Ig = ?)
    seq complete
    Vg = 4V, Ig = ......
    seq start
    seq complete
    What if we wish to measure Ig for all iterations of Vd as well ? Can guess to configure 'MeasureWhen' trigger of Gate to 'SourceComplete' of Drain. Is that doable/feasible in sequence-source-mode ? Or one should apply each value in single-point-source-mode. Wish to iterate 5 values in each 4 cascaded channels at the end.

    Hello,
    Last time I asked for your code but I think that you need more information about the hardware configuration for your PXI. That is why I found some material in the help file of the PXIe-4141 which is given below.
    I hope this helps!
    •Once the sequence runs Sequence Loop Count times, the operation is complete, and NI-DCPower generates the Sequence Engine Done event, as shown in the following figures.
    The following figure illustrates a sequence with the niDCPower Measure When property is set to Automatically After Source Complete or the NIDCPOWER_ATTR_MEASURE_WHEN attribute is set to NIDCPOWER_VAL_AUTOMATICALLY_AFTER_SOURCE_COMPLETE.
    The figure could you find in the screenshot. 
    You can find a screecshot in the attachment.
    Regards,
    Hossein
    Attachments:
    Help PXIe-4141.png ‏250 KB

  • Starting out with cRIO

    Hello,
    What's the most inexpensive way to start programming for FPGA cRIO based applications? I'm interested in learning to develop for an FPGA and cRIO but can't afford the cRIO, is there an inexpensive way to simulate for these (I think even the realtime drivers may be expensive) 
    I found this RIO eval kit, but I'm not sure if it's what I need to start learning cRIO/FPGA LabVIEW development? 
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/205722
    much thanks!
    Solved!
    Go to Solution.

    Yes - I agree with GerdW that the myRIO is a great way to get started with cRIO & RT/FPGA programming. It's very easy to set up and use.
    I recently used one for a personal project - making a giant version of Tetris! (https://decibel.ni.com/content/docs/DOC-35435)
    I can also recommend the eval kit - it comes with a single board RIO an addon board that contains lots of useful things for starting out with RT/FPGA programming (an LCD display, analogue input/outputs that are linked, some push-buttons etc.). I currently have one on my desk at work as we've been doing some stuff recently with LCD displays. They also have onboard CAN (e.g. automotive) so if you're interested in doing anything with that then I don't think you can do that with the myRIO.
    If you can't get the myRIO cheaply enough (because you're not a student - but it's worth talking to NI anyway) then the eval kit is a bit more representative of what it's like to use a cRIO and you can get further with it without needing any additional hardware.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Can anyone recommend a portable USB 3.0 drive with hardware encryption, compatible with OSX and Windows 7.  I need it for my MacBook Pro 13", 2012, running Mountain Lion

    Can anyone recommend a portable USB 3.0 drive with hardware encryption, compatible with OSX Mountain Lion and Windows 7.  I need it for my MacBook Pro 13”, 2012, running Mountain Lion & Windows 7 Ultimate - BootCamp.  I’ve heard that the Buffalo MiniStation Encryption does not work with OSX, is that true..?  I'd like it to work with both operating systems, using the built in hardware encryption.  Thanks

    This article may help: A flashing question mark appears when you start your Mac.

  • What hardware is compatible with the MAC OS

    Other than the MAC hardware available from Apple, what hardware is compatible with the Mac OS? Is there any AMD compatible hardware or other Intel 64 bit hardware that is compatible with the OS?
    Like the Mac Pro but ...   Mac OS X (10.4.8)  

    Hi Boing;
    If you feel that way, you are out of luck. Besides not working well at all, it is illegal.
    Allan

  • How can we communicate the TPC 2012maodule with cRIO module without using the Local software system

    Hi everybody
    Iam using TPC-2012 module with cRIO 9074 device.I made exe file and deployed into the harddisk of TPC. We are getting input/output values  on TPC only when the Software loaded system is on,if we switch off the system,we wont get the input/output on the TPC.all are connected through LAN connection.

    The best programming practice would be to create variables under the RT target (which means you are hosting the library on the RT target and not on the PC). You, then, just need to drag and drop the variables that you created into the TPC VIs block diagram.
    If you are interested in TCP/IP, look up the examples in the Example Finder (Help -> Find Examples) or search on NIs website.
    Also, be sure to go through the following article:
    How Do I Install Support for Shared Variables on the TPC-2012?
    and the following one:
    Using the LabVIEW Shared Variable
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • DAQmx Error: Non-buffered hardware-timed operations are not supported for this d evice and Channel Type.

    Hello,
    I am new to NI and to data acuasition cards in general. I am trying to put an application togather that would play large audio file using NI9263.
    And i am getting the following error.
    DAQmx Error: Non-buffered hardware-timed operations are not supported for this device and Channel Type.
    Status Code: -201025
    Does my hardware support buffering ?
    can i use the EveryNSamplesCallbackAO function ?
    Any sample code, will be helpful at this time. Thanks.

    Hi yma200,
    Are you using a USB 9263?  If so, this might be of help:
    http://digital.ni.com/public.nsf/allkb/EC1968728E660B288625780700570D06?OpenDocument
    If it doesn't help, can you please post the code that you have that is causing your error?
    Regards,
    Bogdan Buricea
    Applications Engineer
    National Instruments

  • Does the Event Structure work with cRIO?

    Basic question, I know, but I did search.  Honest!  LabVIEW lets me drop an Event Structure in code targeted for cRIO, but so far it's not working.  Is there a secret?  Or is it that event structures don't work with cRIO?  TIA!
    Jeff

    Jeff,
    According to these two NI documents,  RT targets support the Event Structure only with dynamic events.
    http://zone.ni.com/reference/en-XX/help/370622F-01​/lvrtconcepts/rt_unsupportedets/
    http://zone.ni.com/reference/en-XX/help/370622F-01​/lvrtconcepts/rt_unsupportedvxworks/

  • This hardware not compatable with Windows XP due to Logo signage

    My bother (who resides in another state) just purchased an HP LaserJet Pro P1102w Printer. He tried to connect it to his computer than has XP Pro as the OS, and gets the following error message:
    "this hardware not compatable with Windows XP due to Logo signage"
    Anyone run across or heard of this problem?

    Hi,
    This explaination may help. The CD which came with the printer may not cover for this situation. My suggestion: go to this site to download XP driver & application then install them on the XP machine.
    Regards,
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • To control brushless servo with cRIO

    What do i need to control brushless servo with cRIO.
    I'm asking this because of no motor driver and controller for this form.
    In addion can i use the NI 9514 C Series Servo Drive Interface as controller ?
    Thanks a lot 
    Umut

    Umut,
    you can use the NI 9514 for any motor drive that accepts a +/- 10 V command input signal. There is a huge number of vendors offering drives for BLDC motors with +/- 10 V interfaces. Here you can find some recommendations, but of course this is by far not a complete list.
    Kind regards,
    Jochen

Maybe you are looking for

  • Error messages when trying to install Microsoft Works 4.0 on my Hard Drive

    My internal hard drive crashed (died) with all of my applications (programs) on it. I have successfully installed back all of my applications from the original program disks with the exception of Microsoft Works Vers. 4.0c. Works will not install the

  • Acrobat X: OpenInWindowEx with open flag AV_OPEN_DOC shows toolbars

    The IAC API reference says: AV_DOC_VIEW - Display the AVPageView, scrollbars, and bookmark or thumbnails pane. Annotations are active. Worked as promised from Acrobat version 5 to 9. No longer in Acrobat X. I need to control what can be done with the

  • Pange Extender Makes HH5 Reset Continuously

    I have added a wireless range extender, (TP-Link TL-WA830RE v1.00), to my set up. When used as an extra access point this works fine, but it is annoying to keep switching portable devices between the TP-Link and the HomeHub5 when moving around the ho

  • Solaris 10 with Windows 2000 HELP!

    Hi, I'm having a terrible time with Solaris 10 installation and configuration. I installed W2k on a NTFS partition. I shrinked the partiton with Partition Magic so I have enough place for Solaris. I installed Solaris using the rest of the disk space

  • Incorrect Language in MSS tab

    Hi, This is regarding an issue with the MSS tab in Portal. There is an option to change the language in Portal. And when i change the language and go to the MSS tab, some standard texts are not displayed in the language selected.This issue is only fo