Multichannel stream to disk high speed digitizer problem

Hi,
I'm trying to write a code for managing a PXI-5105 high speed digitizer as a multichannel data streamer to disk.
I found the code example on niscope folder (version 3.0) for a single channel datastreaming that works fine. I tried to modify this code,
according to directions included into the code for multichannel acquisition, but it fails. I wrote to NI support and they confirm that my code has to work.
For clarifying better my question, I include my code.
I'm a quite new labview user, I know that my code is not easy to read, but I hope that someone has already encountered my problem and may help me.
Best regards
Paolo
Attachments:
niScope EX Stream to Disk_Paolo_version.vi ‏86 KB

Hi Matthieu,
thanks for your attention to my problem.
The program runs, but it dispays only the first acquisition (first loop), and after there are no data acquired.
Using the single channel mode it works fine, you see a continuous acquisition on display and on disk.
I'm suspecting that there is a problem in the loop where I acquire fresh data (Using the lamp I haven't any data from the Niscope I-16 multichannel block, except for the first run where I get the first data).
I hope this clarify better the situation.
Best regards
Paolo

Similar Messages

  • Urgent problem! please help. high speed digitizer, channel switch time too long!

    Dear all NI high speed digitizer experts:
     I post a question concerning the two-channel configuration using NI5154 digitizer (see Need help to configure a two-channel acquisition using NI5154 ).
     As we need to do some measurement using NI5154 very soon so purchase a DAQ board as suggested by Efrain is not a option for our coming experiment. So I try to configure the NI5154 a two channel acquisition. I configure the NI5154 to count pulse in two channels. Our experimental setup will send pulse to channel 0 for 400 ms and then stop. 100 ms later pulses from other source will be send to channel 1 for 2 s.  I thought the 100ms dead time in our setup would be long enough for the digitizer to switch from channel 0 to channel 1. But after some test I found the digitizer takes more time to switch between channels. 
    I made a test vi (NISCOPE-Timing.vi) just for count how many ms it takes for the digitizer to switch between channels. In the attached vi, if you run for only one channel one loop takes about 20 ms in my pc. If you run for two channels it takes about 130 ms for one loop. If you just run one channel twice the loop time is about 40 ms (I mean stop a channel and then restart the that channel).
    I don't understand why it takes so long to switch from channel 0 to channel 1.  As I tested the niScope Commit.vi consumes a lot of time for the second channel. Is there any way to avoid this? We can not extend the 100ms long dead time of out set up so I must get rid of this problem. 
    Solved!
    Go to Solution.
    Attachments:
    NiSCOPE-Timing.vi ‏34 KB

    Hi Lixin,
    There are a couple of different options that you may try. The first, which it sounds like you may not prefer, is to use the TRIG line on the 5154 and somehow find a way to route both sets of pulses to that line. You can either somehow connect both lines to the one input or use some sort of external switch since the signals will not come in at the same time.
    Unfortunately, what you re seeing in terms of the time it takes the board to reconfigure itself for a different trigger channel and re-inititiate is due to the settling time that is necessary for the board to be able to fully reach its specifications. The majority of settling usually occurs pretty quickly, but the board will wait for some time to get the best possible performance in terms of specs. If you are okay with reducing this settling time (and very slightly diminish the specified performance), then you can use an internal scope property to set the max settling time.
    I have attached a .rc file which must be placed in the LabVIEW directory for niScope to enable use of this property node. Please place the file in your ...\Program Files\National Instruments\<LabVIEW 2009>\instr.lib\niScope directory. Once the file is in that directory, restart LabVIEW, and you should be able to see a new category in the niScope Property Node tree titled "Internal". Under that category, you will have the Max Settling Time property, which gives the driver a maximum amount of time (in seconds) to wait for settling before beginning a new acquisition. Add this new property to your first property node at the beginning of your program. I tested this out with a value of 50 ms and found that my initiate went from ~125 ms to ~53 ms or so after reconfiguring the trigger channel and re-initiating.
    Hope this helps!
    Daniel S.
    National Instruments
    Attachments:
    niScopeMaxSettling.zip ‏1 KB

  • Synchronisation of M Series and High Speed Digitizer

    Hello everybody,
    i just have a question regarding synchronisation/timing of two different PCI cards (M-Series PCI 6220 and High Speed Digitizer PCI 5112, connected via RTSI cable).
    I wonder how I can synchronise signals, because those cards use different mechanisms in Labview for timing and synchronisation.
    Can anybody tell me, how I can synchronise the clocksignals and let them use the same trigger (actually I want to use the external trigger of the 5112)? Witch VIs do I have to use?
    Thanks in advance
    Oliver

    Hello!
    First of all many thanks for your reply.
    Exporting the external trigger from the 5112 to 6220 via RTSI works.
    Synchronising the clocks in the same way as you wrote doesn't seem to work. May be I did something wrong.
    What I did was the following:
    I exported the "reference clock" signal of the PCI 5112 using "niScope export signal.vi" to RTSI 7.
    Than I used the daqmx "sample clock.vi"  to configure the
    clock.  I used the instance "sample clock" with "dev1/RTSI 7" as
    the source (dev 1 actually is PCI 6220) and as sample mode "continous
    samples". I started the PCI 6220 (daqmx) first, after that I started
    the 5112 (niScope).
    Running this vi I get the following error:
    "ADC conversion attempted before the prior conversion was complete.
    Increase the period between ADC conversions. If you are using an
    external clock, check your signal for the presence of noise or
    glitches."
    This is still a small problem, but meanwhile I came to a bigger one:
    I thought I could use the 6220 in the same way I can use the 5112:
    I want to fetch (or read) data on both cards contionously but also
    periodically. The period time is given by the External trigger I
    mentionend before. Till now I didn't find a way to aquire the data from
    the 6220 in records of a given length (let's say 100 samples, at 1kHz)
    every time the trigger occurs (External Trigger rate is about 250 Hz).
    This is possible with the 5112 board, but I wonder if this is also
    possible with the 6220?
    Kind regards
    Oliver
    PS: Sorry for the "witch"

  • I have an NI5911 high speed digitizer and would like to acquire a video signal from a CCD using it. Does anyone know if this is possible without buying any more hardware please? If it is, how would I go about it?

    The only thing I succeeded in finding on the NI site was about using a different high-speed digitizer in tandem with an IMAQ card but I was hoping not to have to buy an IMAQ card as it means I may as well not have got the NI5911 (a while ago) in the first place. Any help would be greatly appreciated!

    You can certainly acquire video signals with the 5911. The only tricky part is that the 5911 does not have any video triggering options. That means that you will have to either find a way to provide your own trigger based on the video signal (that's where the IMAQ board comes into play) or you can just take a lot of data and keep only the data you need once it is in software. For instance, you could take one large record and then use software analysis to determine where the frame sync occurs. Hopefully this was helpful.

  • Airport, high speed Internet problem

    Hello guys
    Let me tell you what i'm was facing before the change happened and the issue started.
    I was connecting my macbook pro 13 to my 5mg speed Internet thro the router wirelessly. it was going perfect with no pre loading the page. Also i connect my ps3 to it and my phone, and still no problems. however, i wanted more speed, so i upgrade my Internet with 50mg speed. the first day it was going amazing while i'm connecting wirelessly. even speedtest.net was giving me the full speed. but the second day it started. it takes so long to open a page, youtube for example. even when its opened it doesn't show me the pre picture of some videos . and when i open the video its take soo much to pre load the clip, i mean not even loading the clip , but when its start it can run 1080 with no problem.
    So when i called the Internet provider they tolled me to open any page and run youtube clips on my ipod, it's runs faster then my macbook pro. not even a second to run a youtube clip. and they said its may be my airport card having an issue running a fast high speed Internet. even thou when i connect my macbook by wire its goes fine but with less time to pre-load the page. but still it looks like running on DSL connection.
    Any suggestions to solve the problem ?
    and sorry for making it so long to read

    also even thou it took time to open a page but when i download a file it, the downloading speed of only that file goes like what it should be.

  • High-speed digitizer

    Bonjour,
    comment je peux accéder au help de High-Speed Digitizers?
    Résolu !
    Accéder à la solution.

    Problème de téléchargement? Utilisez de préférence le downloader pour les archive volumineuses (2Go de driver, yeeeha!). C'est la première proposition de la page de téléchargement.
    Avant de se lancer dans un nouveau téléchargemetn de 2Go, vérifiez bien que votre version de LabVIEW est supportée - ce serait trop bête (NI-SCOPE 14.1 supporte LV 2011 SP1, 2012 SP1, 2013 et 2014), et qu'accessoirement, la carte que vous souhaitez utilisée est elle aussi dans la liste des matériels supportés. Pas de panique, dans le cas de NI-SCOPE, il n'y a que très peu de cartes non-supportés sous Windows Seven. Attention à la distinction 32/64-bits.
    Le fichier readme reste la référence incontournable AVANT de lancer un téléchargement.
    Cordialement,
    .mrLeft{float:left} .mrInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898}
    Mathieu R.  
      CTD - Certified TestStand Developer / Développeur TestStand Certifié  
      CLAD - Certified LabVIEW Associate Developer  

  • How to simulate testing of PCI 5114 high speed digitizer

    I want to use PCI 5114 board and want to interface it with LABVIEW 6.0 using  NISCOPE VIs. I am a beginner to NISCOPE digitizer. I want to test my small application made for 5114. I don't have 5114 at present. Kindly tell me how can I simulate this boards and its input and Ext trigger.

    Thanks Mr. Nathan.
    My previous two posts were for me to understand how to check an application I had developed in LabView. As digitizer card is not with me at present so still some doubts are there. Let me specify in brief what I want and how I am achieving.
    A repeated pulse signal of given duration (10 microseconds) at channel 0 is to be acquired. Repetition rate is decided by the trigger pulse available at Ext. Trigger. More clearly when ever trigger pulse (approx. Every 100 microsecond)) appears I have to acquire Channel 0 signal for 10 microseconds. Sampling rate is 100 Mega Samples per second.
    I have used following blocks in given sequence: Initialize with Options (for simulation), Configure vertical, Configure Horizontal (sample rate=100MSPS, rec length=1000, num of records=1, ref positon=0), Configure trigger (edge, level=0.1, source Ch0 (for simulation purpose)), Initiate Acquisition, Multi Fetch WDT (num samples=1000).
    Please tell whether I have to put Initiate Acquisition, Multi Fetch WDT Vis in while loop or only Multi Fetch WDT in while loop so that I can fetch all the data on each trigger.

  • Frequency measuremen​t with High Speed Digitizer using External Trigger

    Hello:
    I have a

    Hello Brooks:
    Thank you for attention !
    I will try to explain my application:
    I need to measure a signal of a speed/position sensor. This sensor works with hall effect principle and is placed in front of a wheel with some teethes. Is used for automotive purpose in CAM and CRANKSHAFT applications. So, I need to measure period, duty cycle, rise time, fall time, Vpp, Angles for each teeth x encoder, everything from 40 to 7500 rpm.
    I'm using CH0 to measure a signal of this speed/position sensor.
    I'm using CH1 to measure a signal of an encoder connected to wheel.
    I'm using EXT Trigger to sync acquisition with encoder's INDEX signal.
    I need to measure the frequency of EXT trigger to know the instantly speed of the wheel.
    So, If I know that my encoder has 2048 pulse/rev, I can measure FFT_FREQUENCY of CH1 with scalar measurement functions and calculate the speed !
    The NI-Scope is wonderful because it can measure a lot of things automatic and fast, like period, frequency, duty cycle, rise/fall times ...
    Now I have one more question:
    I want to use 10:1 attenuation but I can't use a common probe. I want to connect the CH0 to sensor with a special connector.
    I've tried to make the same circuit with 9MOhms and capacitor like explained on site, but I reached bad results. The industrial probes has special characteristics for capacitance and noise rejection.
    Do you know how can I solve it ?
    Thank you.

  • Frequency measurement with High Speed Digitizer using External Trigger

    Hello:
    I

    Hello;
    That is happening because you are doing Software timed operation, and since Windows manages all tasks that runs on the machine at any given time, your VI might take different times to execute, and that might be enough for you to miss some pulses.
    The best way to do that is by using a 660x board, and have three counters doing the job. The firts counter can be configured as the first pulse train generator, the second counter can be used to generate a pulse that will trigger the third counter of. That pulse will be generated when the delay of 90 degrees is reached. So, the second counter will count events and will be triggered of by the pulse train generated by the first counter.
    The third counter is configured as triggered pulse train generator, and t
    he output pulse of the second counter is used as the trigger pulse for the third counter.
    If you don't use that approach, you won't be able to reach fast speeds and might also miss some pulses, due to the Software timed approach.
    Hope this helps.
    Filipe A.
    Applicaions Engineer
    National Instruments

  • NI5922 High Speed Digitizer - Antialiasing digital input filter

    Is it possible to acquire a signal with the NI5922 board, without the antialising digital input filter?
    My application doesn't require the antialias protection, and It would be useful the avilability of the full Nyquist band.
    Thanks for your answers.
    Natalino Roberto

    There is no way to disable the alias-protection in the 5922.  The
    cutoff frequency of the digital input filter varies by sample rate, but
    the ratio is constant (cutoff freq = .43 * sample rate).  If you
    need a wider bandwidth, you will need to increase the sample rate- but,
    keep in mind that this may decrease your resolution, since the 5922 is
    a flexible-resolution digitizer.
    You can configure the type of the digital filter.  Refer to the
    documentation for the NISCOPE_ATTR_FLEX_FIR_ANTIALIAS_FILTER_TYPE
    attribute (Vertical:Advanced:Flex FIR Antialias Filter Type in
    LabVIEW).  You can configure a number of different options for the
    5922.  However, the option with the highest bandwidth is the
    default setting that I discussed above.

  • Why is it that I can't do a continuous streaming to disk with a 5102 scope card (PCI) when I can do it with a DAQ Card of much lower specs (my requirement is for small sampling rates only)?

    I am told that the 5102 Card (PCI) does not support continuous streaming of data to the hard disk. My application requires only very low sampling rates. If I can do it with a low spec DAQ Card using LabView why can't I do it with this card?

    Hello,
    The PCI-5102 is a high-speed digitizer card that has a slightly different architecture than the DAQ cards and was not built with the ability to stream data to the PC. However if you are sampling at low rates you can still acquire up to 16 million samples, which is done by using dma to tranfer data from the onboard memory on the 5102 to the PC memory. However, you will not be able to save the data to disk until the acquisition is complete.
    Another option would be to purchase either a DAQ card or a PCI-5112. Both boards can continuously stream data to the host PC and you should not run into any PCI bus limitations if you are stream to disk at relativiely slower rates.

  • Help! data manipulation for high speed streaming to disk from multiple boards and multiple channels

    I am using Labview 7.1 and have been trying to capture data from 12 channels simutaneously sampled at 2MS/s each and streaming to disk for up to a minute or more.  The hardware I am using is 2 x PXI 6133 S series boards with a MXI4 link to a Pentium D 2.8 Ghz machine with 2Gb ram.   I have 2 sata drives set up in a raid 0 configuration which should give me hard disk write speed faster or equal to the MXI-4 transfer speed. 
    I have first started off by using the example code "multi device sync - analog input- cont acquisition" which has enabled me to sync the two boards and sample at the required speed. 
    To stream the data to disk, I have first merged the data from each board  together to save it to one file.  I have tried using the storage vi's but I end up with a Daqmx read error (trying to read data that is no longer available).  I have played around with the read data size to the point that I either get a insufficient memory error, or I get the "trying to read data that is no longer available"  error.  I have also tried using the file IO blocks with some success and have found that I have been able to stream to disk only if I configure the daqmx read block to output the data in "raw 1D I16" format and plugging it into the file-write block.  In doing this, I have noticed that using  multiple channels on one daqmx read task, I will get all the channels in one 1D array rather than a 2D array organized by channels.  This makes it messy to read at the end of this, and I also don't want to write another vi to separate the channels, due to the high chance of getting the data mixed or messed up if I happen to change the number of channels on a board
    Is there a cleaner way of streaming this data to disk and keeping the channel data separated from each other?, and/or is there a better way to capture and handle the data I need? 
    I have attached the vi which I have got to consistantly work streaming to disk using the raw 1D I16 format.
    Thanks in advance to anyone who can help.
    Attachments:
    multidevicesync_analoginput_streamtodisk.vi ‏197 KB

    Hi,
    i can suggest following
    Refer to an example VI called as "High speed data logger.VI"  in conjunction with "High Speed data logger reader.vi" in Labview examples. Alhrough the logger might be in Tradiditional Daq format, it can be quite easily converted to Daq Mx format to store data in Binary (I32 format) . I have used this for many of my applications and i have found that the data retrieved does not have any "messups".
    Why not keep a seperate file for each card? This way, you do not have to load your application with extra process. You only have to acquire and save. After saving in Binbary format, you can retrive it offline, convert it to ascii format and merge the data files of various cards to get one consolidated ascii data file.
    hope this helps
    Regards
    Dev

  • I do not have a high speed internet connection. How can I get Mountain Lion on a disk for install?

    I do not have a high speed internet connection. How can I get Mountain Lion on a disk for install on my 24" Imac?

    As long as you use your Apple ID to purchase it, I don't see why they wouldn't let you download the installer on one of their Macs and put it on a pocket drive.
    Or, a friend with a high speed connection?
    I agree with you about the delivery method, just trying to help you get what you want.

  • I'm wondering if anyone else has had problems with their imac fans being extremely loud when running at slow speeds?  When the computer heats up enough for the fans to run at higher speeds they quiet down. New HD fan was just installed.

    I have an imac that I've had for a couple years.  The fans have always been loud when running at the slower speeds.  When the computer heats up enough for the fans to run at a higher speed the fans quiet down.  I had installed SMC fan control after multiple attempts with Apple to get the fan issue resolved.  That seemed to keep the fans quiet enough.  I've never had a problem with overheating.  Recently the fans were becoming loud again even running at the slightly higher speeds so I took it to my local Apple store and they replaced the hard drive fan.  I got it back and it's now as loud or louder than ever!!  And, now SMC fan control won't "stick."  The fans will speed up, but then gradually go back to the lower "loud" levels.  I'm at a loss as to what to do next. 

    Thanks jared,
    I'm still dealing with this issue through Apple. Some time after I posted this, I contacted Apple again. They did start a case up for me, as I was experiencing the same behavior on two different machines, with two different versions of Windows.
    So far it remains unsolved. I've logged iClouds for Windows on my desktop, which is brand new, then logged for awhile after completely uninstalling Norton Security Suite, depending on the Microsoft security for some time, and finally logged after I uninstalled iCloud for Windows, restarted, installed a clean download, and connected using a completely different test account, which Apple set up for me. None of this made any difference. Looking at the logs, it seems every 10 minutes, iCloudServices.exe creates a new TCP connection to confirm I'm using less than 5GB on iCloud, (which I am by a good margin, using less than 2GB), it seems this connection is not closed, and when the next iteration rolls around 10 minutes later, a new TCP connection is created. I come very close to having 6 TCP connections created per hour, until I restart my computer. This works out to... 6 x 24 = 144/day.
    Perhaps the article you posted will shed some further light on this. I'm thinking seeing the state of the connection through netstats, at the least, could help.
    For the last week, I've been putting a hold on further logging, as Apple wants me to create a new user account on one of my computers, install iCloud for Windows there, and log it running in the other account. This however basically means I cannot use my computer for a fair number of hours, and I've been busy enough with work the past week that I haven't the time or energy to afford to set this up and run it. I've had need of my computers too much for the past week.

  • I switched modems to a cisco for high speed broadband now my homesharing will not show my computer so I cannot stream my movie collection. WI/Fi works as I can get apple TV and you tube. Of course my ISP is no help, any ideas.

    After switching to a new Cisco router for higher speed broadband my homesharing will no longer show my computer so I cannot stream my movies. My WIFi functions as You tube Apple TV and Netflix all work,please help.

    http://reviews.cnet.com/8301-13727_7-20025542-263.html
    I have not tested the solution suggested in the article linked above.
    But hope it helps.

Maybe you are looking for

  • EW ERROR: "I won't open a connection to 127.0.0.1 (only to ...) (500)

    I wonder if anyone here can offer some advice. I've been using EW 4 for a couple of years to create and modify my business's website. Maybe six months ago, I started get the error message in this post's title whenever I try to publish changed pages t

  • Automatic population of selection criteria in Infopakage

    Hi Experts, I have a Full Load Infopakage in a process chain that runs daily. I want to automatically populate posting date in the selection criteria of this Infopakage. For example: If the process chain runs on 20 July'08, then the posting date shou

  • Error During the Matrix fill

    hi    I have an user defined form and it contains the matrix. Then i will select the data from Choosefromlist inside the matrix and i will try to fill the matrix using the following code.   <b>Dim CVal As Object   Dim ObjMatrix As SAPbouiCOM.Matrix =

  • Installing windows 7 on Mavericks

    Hi everyone, I ave problem with instaling windows on my macbook pro. Last time while I was using montain lion OS X Lion Montain there were 3 optiones in the bootcamp. So that time I followed them to creadt ISO file for the windows. However, now I onl

  • Hyperion Planning Release 4.0.5.2 windows Installer Licence File/code

    Hi All, Appreciate if anyone could let me know the license File or code of Hyperion Planning Release 4.0.5.2. windows installer. Just checked "licensecodes.oracle.com/hyperion.html" and did not find anything on the site. Thanks in advance. Balakrishn