Synchronization of several high at different frequencies of sampling DAQ cards.

I'm having sync problems 3 high DAQ cards with different sampling frequencies. I use 2 cards PXI-6259 nec 10,000s samples and 1 PXI-6221 Board to interface for my SCXI modules in 10 samples/second. The problem that I discovered is the time related with the waveforms of the NI PXI-6221. When I run the code on a development computer using virtual devices in MAX, it works as expected. When I run the same code on real hardware, the stopwatch turns approximately 25 X faster than normal. I enclose the code and the config that I use.

Any ideas?

Hi NGNN CAD.

First of all, let me say that your code is very nice!

The problem is that you are using the fast sample for the device that is supposed to be slow clock:

Even if you specify the rate as 10 Hz, the clock itself is still at 10 kHz (by specifying the right rate allows the DAQmx driver determine the size of buffer etc and don't actually change your external sample clock speed - however, it changes the rate of the simulated device).

My recommendation to synchronize devices would use the built-in PLL and lock to the reference clock 10 MHz of your PXI chassis.  Your devices would always share a trigger to start, but each would generate its own sample clock based on its time base that is locked to 10 MHz reference.

The code should look like this:

I hope this helps, let me know if you have any questions!

Best regards

Tags: NI Hardware

Similar Questions

  • Several channels with different frequencies

    Hello

    I use card NI USB-6221.

    The C API using, I need to generate 6 digital output channels, with frequencies of diffrenet and Heavy duty.

    To be more precise, the 2 are totally identical, but I need them to be reversed, and the other 4 are similar to another, but should be shifted in time (I.e. There is a delay between each of the channels).

    I used the 2 channels of CO that the USB-6221 takes charge for the first two signals, and it works very well (the two signals are synchronized and are reversed).

    Now I need an additional 4 channels for the other vague square.

    I saw an articale NOR by JohnP web site with the title:

    Generate multiple channels of digital output with different frequencies and Heavy Duty

    The following example shows how to create and generate a digital with the non-regeneration wave form so that you can change the frequency and the duty cycle on the fly with the M Series DAQ hardware X.  The example uses output digital rather than counters to achieve this, so if you need more output than the available counters, it would be a good option (Note: on the materials of the M series an external sample clock must be provided, this may be caused by one of the counters if you want).

    that seems to be exactly what I need, but the examples are for LabView which I did not.

    Can someone explain how to do this with the C functions?

    Best regards

    Danny.

    Hey Danny,

    The important thing to note is that you can clock of arbitrary digital waveform (up to 1 MHz on the 6221).  The real data acquisition programming is pretty easy once you have the waveform.  My Example LV used LabVIEW Base generating function VIand then converted to a digital waveform to generate the signal from each channel.

    The functions of LV helped tremendously with to achieve the waveforms to be updated on the fly (the basic function generator keeps track of phase for you).

    If you do not need to be updated on the fly, then the construction of the waveform in C should not be too bad.  For example:

    P0.0 [1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0] * 1

    P0.1 [0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 0 0] * 2

    P0.2 [0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1] * 4

    P0.3 [1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1] * 8

    [9 9 9 9 9 3 3 3 3 3 6 6 6 6 6 12 12 12 12 12]

    The table above U8 would give you 4 output waveform of 50% duty cycle at Fs/20, shifted 90 degrees to eachother.  The lines would be p0.0 by p0.3 (the bit rate of the U8 corresponds to what line goes high).

    Best regards

  • How to synchronize two ports data series at different frequencies of sampling?

    I have a .vi I'm reading two different sensors that operate at different sampling rates high.  I am able to read these two, however, there seems to be some problems of synchronization/strange offset with the devices.  The first device is a device running at 5 Hz GPS.  This is convenient because the time GPS is included in the data that I read.  The other device is a sensor operating at 6 Hz.  Ideally, I am recording the data of these two devices in the same file.  An example is attached.  It seems he collects GPS data, although it seems to write at much lower rates.  Strangely, as it is written to the file, it will slowly store 'blocks' of data in order to a much lower rate.  It seems that a lot of the GET of a buffer, and then it jumps ahead by about 5 seconds (see lines 214-220 of the attached file).  Meanwhile, the data from the sensor 6 Hz are get recorded normally.  I'm puzzled.  Would it not be better to connect these as separate sets of data in separate files?  Creating two executions of read/write "parallel" within the same .vi?

    Any help or examples, would be much appreciated!


  • Buffer the output AO, refresh rate is different from the sample clock frequency

    Hello

    I am an AO output in the buffer using a single channel. I have a stamp with a ripple of 200000 points with a triangular waves of a 1000pts each repeated 200 times. If I want a frequency of 1 Hz, I simply update this waveform 1000pts and if I wanted to 5 Hz, then 5000pts and so on. But there is some frequency that I won't be able to use like the refresh rate (the number of samples that I ask to update) is different from the sample clock frequency, which makes synchronization with the other difficult to trigger (incomplete cycle).  Frequency 3 Hz (update 3000pts), as (update 7000pts) 7, 6 Hz (update 6000pts), 9 (update 9000pts)... 11Hz at 15 Hz and is not valid in the sense that the refresh rate is different from the sample clock frequency. That makes a whole lot of inaccessible CONFIGURED!  Can someone tell me what determines the banned frequency?  Is this something to do with the material?

    concerning

    One thing you can try is to change the number of samples per cycle. This cannot give the precise frequency accurately, but can reduce the average error.

    120 Hz, the error is currently about 400 parts per million (ppm). The accuracy of the time base is 50 ppm, then this error is less than 10 times the inherent error due to the time base.

    Consider this configuration: the closest nominal sampling you rate, you can get is 120048 Hz (1000 samples per cycle at 120 Hz). If your buffer contains 1200 samples per cycle, 100 copies of it would produce 1 second of data to 120,048 Hz. But if the buffer contained an average of 1200,48 useful Samper by cycle, you get the exact frequency.  Of course getting 0.48 of a sample is delicate. But the kind of feasible. If you use 48 cycles in the 1201 samples per cycle and the cycles of 52 to 1,200 samples per cycle, the total number of samples per second = 120048. Average frequency will be exactly what you want. Instantly, the frequency is slightly higher or lower than the exact value.  By an alternation of 1200, 1201, 1200, 1201... 1201, 1200 100 cycles that the Jig is fast.  If you group all 1200s whole and all 1201 s frequency hopping may be more sensitive.  If this kind of jitter is acceptable depends strongly on what you do with the release.

    This technique is used in some systems of frequency synthesizer.

    Lynn

  • PCI, I / AO at a different frequency

    Hello

    As a newbie, I met a problem when I tried at the entrance and the analog output signal at a different frequency.

    I followed PID-control - Multichannel .vi to build a control program, so input/output can be synchronized. However, the project requires that the frequency of I be tenfold of the AO. I could re-write the while loop to make the output value constant for 9 of 10 cycles. However, in my view, it is simplest way to do.

    Anyone provide an example?

    Thank you in advance.

    Sincerely yours

    Ming

    lmuri wrote:

    Hello

    As a newbie, I met a problem when I tried at the entrance and the analog output signal at a different frequency.

    I followed PID-control - Multichannel .vi to build a control program, so input/output can be synchronized. However, the project requires that the frequency of I be tenfold of the AO. I could re-write the while loop to make the output value constant for 9 of 10 cycles. However, in my view, it is simplest way to do.

    Anyone provide an example?

    Thank you in advance.

    Sincerely yours

    Ming

    Hello Ming!

    Please use the Forums of NOR. You'll be happy to know DAQmx allows what I/O tasks such as these to be not run not only at the same time, but at different rates.

    The problem with the solution that you have imagined is that this implementation will remove the delegation of tasks to the hardware level, and your program would become software-driven; This becomes a problem when you perform tasks of acquiring data at very high speeds as it becomes limited to the speed of your operating system (OS).

    You can coordinate your tasks to operate synchronously and perform the output and the acquisition at different rates by creating a maintask. This means generally that you configure a task by DAQmx that keeps a clock frequency and you create tasks that use this clock frequency, or a division thereof, to exploit to their own individual frequency. This facilitated not only the execution of DAQmx tasks synchronous but also provide a material entirely focused on the solution of performance maximimse.

    Thanks to LabVIEW, if you go to help > examples find to open the Finder of example of OR. If you are browsing material input and output > DAQmx > synchronization > multifunction > Multi - multifunction - Synch Dig read write with Counter.vi, you will find an example of how to set up a counter as a master of the task to control the operation of operation both a reading and writing . (This example shows a digital but implementation may be easily replaced by analog).

    By setting the meter to the maximum frequency rate that you will require for your task (in this case, the speed at which you want to copy values) and apply it to the output of the SampleClocktask, you will drive the clock output task with the counter as the clock source. You can then use the meter as the source of the SampleClock for the task of entry, however to set the rate at any division of the driving frequency. In the case of your example, you can set the bit rate to 0.1 times the frequency counter to acquire a 10th of the rate.

    If you want to acquire at the same rate, but only to retrieve values on the 10th of the speed, this same solution can be configured to produce instead a trigger to return an acquisition in the buffer. With a master synchronizing the task, the possibilities are endless!

    I hope you find it useful, and if you need a precision more do not hesitate to let me know. Have fun with your DAQ!

  • Same result for different frequencies?

    Hi all

    I'm new to labview and the communication kit, so I'm trying to test the examples.

    When the example of 'Rx Continuous Sync or Async' opening and it works I get the same output on the "power spectrum".
    i'm checking different frequencies in the range of 1.2 GHz to 6 GHz.

    How is it possible then that there is nothing transmitted? -> checking with the android application for wifi channels (channels 1 to 8 are used, all others are not...) and yet labview gives me the same result... (attached file = 2 GHz, the other is a comparison of the 5 GHz, 2,412 GHz and 2,484 GHz)

    material:

    NEITHER USRP N210 (rev 4)
    CBX 1200-6000 MHz Rx/Tx (40 MHz)
    Antenna VERT900

    connecting via gigabit

    PC: W7 64 bit, i7-2600 to 3.4 GHz, 4 GB RAM

    Thanks in advance

    Hey insiderbe,

    I did some research on the Ettus forum and found the following:
    https://lists.gnu.org/archive/HTML/discuss-gnuradio/2010-08/msg00237.html
    https://www.Ruby-Forum.com/topic/214890

    I suspect that the IPS you see on 0Hz is the DC offset that is introduced to the ADC of the USRP N210. We can confirm this by removing air and closing the RX. If the tip is still there, it's a feature of the analog input circuit.

    Brian of Ettus recommends tuning your frequency slightly out of your signal of interest and using a high pass filter to remove DC offset. I recommend looking at the second link for more information.

    With respect to obtaining the value of art through many different frequencies, I think that it is a property of the antenna used. The VERT900 is valid from 824-960 MHz and 1710-1990 MHz. can you listen to one of these groups and test your power, even if you have a known signal? You have another USRP generator or a function to generate a known signal?

    https://www.ettus.com/product/details/VERT900

    My last concern use the N210 with the CBX in LabVIEW Communications. According to the Readme, it's an unsupported hardware configuration, which means that R & D has not tested the configuration, and we do not know how the configuration will occur.

    http://download.NI.com/support/softlib//RF/NI%20USRP/15.0/niUSRP_readme.html

    Thank you for this post!

    Kind regards

  • Generating analog output signals 4 with different frequencies

    Hi all

    I was trying to say to generate 4 different signals at different frequencies

    1. first waveform is a sine wave with 5000 Hz,

    2. other with 8000Hz,

    3. third, one is a square with 25 Hz waveform and

    4. fourth one with triangular waveform 50 Hz

    all waveforms must be generated simultanoeusly.

    I tried to generate with the task unique analog output and sample clock (clock rate is 100000). Cross in scope that I see only 5000 and 8000 Hz we generated correctly and the rest two waveforms show the incorrect frequency.

    I guess that's due to the frequency of high clock to sample for more low frequencies for ex 25 Hz and 50 Hz. If I reduce the clock rate to get the lower frequencies properly so I can't generate frequencies higher correctly. (there's a clsh between frequencies and the clock frequency)

    Is it possible to use DAQ board master sample clock and its magnitude downward revision (everywhere where it is necessary for each waveform separately) to generate all the signals at different frequencies at the same time in a single task?


  • How to extract the same song, several times using different bit rates or formats and store all the digital music files in WMP 12 default on the same HDD music library

    Using Windows Media Player 12 (w/under Windows 7), "can I ripping the same song, several times, using different bitrates & and/or formats and store all the digital music files in the music library by default WMP - 12, on the same hard drive?

    1.) #1 goal: tear up the same song repeatedly, w / "different rates" as a WMA file.

    2.) #2 goal: tear up the same song repeatedly, w / "different rates" as an mp3 file.

    3.) #3 objective: NOT to each subsequent copy (version) of the song, deleted & and/or replaced by the previous version of the song [even].

    4.) question Bottom Line Up Front--> is Windows Media Player 12 (included with the Windows 7 operating system) are able to achieve '#1 objectives; #2; & #3 above?

    5.) details/example: I want to tear the piece "Maria Maria by Carlos Santana" to my laptop as a Windows Media Audio [WMA] file.  In addition, I would like to rip the song 'Maria Maria' three several times with 3 different bitrates in format WMA; and, as an MP3 file.  Therefore, my final result wished (after the extraction process), will take place the four 4 audio files split up as follows: (a) 'Maria Maria by Carlos Santana'--> Format: file WMA; Ripped @128 Kbps bitrate.  (b) ' Maria Maria by Carlos Santana'--> Format: file WMA; Ripped to the "Variable bit rate; (c) ' Maria Maria by Carlos Santana'--> Format: file WMA; Ripped commissioning "Lossless." and (d). 'Maria Maria by Carlos Santana'--> Format: MP3 file. Ripped @256 Kbps bitrate.

    6.) my preference: I do NOT want to rename the file (s). {for example, 'Maria Maria by Carlos Santana' renamed/changed for--> "Maria_Maria_by_Carlos_Santana_128kbps.wma",...} 'Maria_Maria_by_Carlos_Santana_256kbps.mp3 '; etc.}.  In addition, I am not concerned about the additional disk space that will be consumed after multiple copies of the same song with different speeds of transmission and different formats.

    7.) my experience w / Windows Media Player 10 (w / the operating system of Windows XP): using WMP - 10, my goal (s) described above is not a problem at all.  Simply insert the CD purchased by Carlos Santana, containing the song "Maria Maria"... Select the desired Format (WMA; WMA VBR; WMA Lossless; or mp3)... Select the desired flow rate (WMA... 128/160/192kbps_mp3: 128/192/256/320 kbit / s; etc.) ; and click on the "RIP" button to start the copy process on the hard disk of of Carlos Santana's "Maria Maria".  This process (w / WMP-10) would result in having the same song, copied on the hard disk, with levels of quality different "audio" (via the different bit rate settings); regardless of the format (MP3/WMA) which was chosen.

    8.) my experience w / Windows Media Player 11 (w / the operating system of Windows XP): using WMP 11, to described above of my objective (s) could not be reached e-a-s-i-l-y.  The problem with WMP - 11 - in short - which was after the desired selection "Rip settings" tab 'Options' of WMP - 11 (i.e., Format & Bit Rate) and heart-wrenching piece wanted to {'Maria Maria by Carlos Santana'} a moment later/second, WMP11 remove / would crush the previous version of the song [even].  Therefore, the program would NOT allow the user to have multiple copies of the same song on the hard drive of the PC; which obviously restricts a user to have the freedom to choose what level of quality digital audio, they prefer to listen to.

    9.) the ability to have multiple copies [at my descretion] of the same song (on my hard drive) with different bitrates and formats in my music library, is important for me because it has a direct impact on "how I enjoy MY music ', and in what form (audio quality), I choose to listen to my music.  {For example, when I exercise and listening to my camera, digital audio player (Zune), a song ('Maria Maria by Carlos Santana'), will usually be torn off at a lower rate due to the unit of capacity reduction of storage - compared to the storage capacity of notebook PCs/desktop/external hard drives PC.}  However, when I listen to my music through my home cinema or entertainment system (which contains a hard disk dedicated with a large storage capacity), I prefer to load the entertainment system with digital music files that have been ripped to WMA... with the bit being rate-setting is for the: settings "WMA Variable Bit Rate" or "WMA Lossless.

    10.) there you have it.  This is my first post in this forum.  I hope that [detailed] explanations, will be sufficient to encourage these "with knowledge & the hands on experience" using Windows Media Player 12 (as well as with WMP-10/WMP-11 respectively), by providing a [step] "How-to"... "solution to my situation.  It would be highly appreciated.  I'm looking forward-'the solution' - and relevant suggestions & and/or community feedback regarding my request for assistance.

    * Thank 'All' (that would) in advance... For your time & Assistance *.

    Certainly, you can, but I would say that they be in different folders, for your convenience as well as Windows.  You can create one for each debit/format, then you will know who is who.

    In Windows Media Player, on the toolbar, select Tools, Options, Rip, and then select the flow you want first, rip music, then change the folder (higher on the same tab) and rip again... and so on and so forth.

    When you are at home on your home theater, you can use the 320 bitrate folder, when you transfer to the Zune, you can use one of the lower bitrate files (although I personally tear it up to 320 and let the Zune reduce as he wants, even with the iPhone via iTunes, hard drive space is not really a problem here) my server has several hard drives, and I can always add more if and when space is low!

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

    I use the outgoing/incoming analog DDK with the DAQ 6341 SMU map.

    The examples, for example aoex5, show a single timer (method outTimerHelper::loadUI), but the example shows the DMA loaded with same size of vector data.

    There is a comment in the outTimerHelper:call rogramUpdateCount, which implies that memory sizes different pad per channel can be used.

    (the comment is: switching between the sizes of the various buffers is not used)

    Nobody knows what should be the format the DMA buffer for data from multiple channels with different frequencies?

    For example, we want a0 with a sinusoid at 1 kHz and a1 with a sine wave of 1.5 Khz.  What looks like the DMA buffer?

    With the same frequency for each channel, the data are interleaved, for example (ao0 #0, ao1 #0; ao0 ao1 #1, #1,...), but when the frequencies for each channel is different, what the stamp looks like?

    Hello Kenstern,

    Data are always intertwined since each card has only a single timing for each subsystem engine.

    To AO, you must specify the number of samples that will be released to the AO. You also specify the number of channels. Because he didn't is that a single engine timing for AO, each AO will be channel will be updated at the same time to update clock tick. Data will be interlaced exactly as shown in the example because each channel AO needs output at each tick of the clock to update. The data itself can change depending on the frequency you want to copy.

    kenstern wrote:

    For example, we want a0 with a sinusoid at 1 kHz and a1 with a sine wave of 1.5 Khz.  What looks like the DMA buffer?

    With the same frequency for each channel, the data are interleaved, for example (ao0 #0, ao1 #0; ao0 ao1 #1, #1,...), but when the frequencies for each channel is different, what the stamp looks like?

    In your example, you must come with an update rate that works for the two waveforms (sine waves of 1 and 1.5 KHz). To get a good representation of a sine wave, you need to update more than 10 x faster than your fastest frequency... I would recommend x 100 if possible.

    Update frequency: 150 KHz

    Channels: 2

    Then create you stamps that include complete cycles of each wave you want to produce based on the frequency of update. These buffers must also be of the same size.

    Buffer 1: Contains data for the sine wave of 1 KHz, 300 points 2 cycles of sine wave

    Buffer 2: Contains data for the sine wave of 1.5 KHz, 300 points, 3 cycles of sine wave

    You can Interleave them as before. When the data are performed through the ADC, they are out different sine waves, even if the AO channels are updated at the same speed.

  • Simultaneous release of digital waveform at different frequencies - cDAQ-9174 with two 9477 maps error-50103

    Hello

    I'm working on a project that requires two outputs digital signals at different frequencies. Frequency of the phase 1 is about 1 kHz and is modulated on and off to a pace that will change during the execution of the program. Wave 2 passes from 1 kHz to about 6 kHz while needing to be pretty accurate to the tenth of a Hertz.

    Initially, I tried to manage the simultaneous output of signals at different frequencies using a single task on a single 9477 daqmx in a cdaq-9174 chassis. As far as I know, the best way to get a specific frequency in a waveform output is to set the sampling frequency up to 2 times the frequency of the wave that is generated and generate a waveform that is given to each clock cycle. This works very well when it comes to a gesture, but I was unable to get the frequency of the modulated wave (wave 1) remains constant when the frequency of wave 2 modified or vice versa.

    I have a few other modules lying around (another 9477, 9403 and 9476) and I thought I would try another task running on a separate module. I find myself receive error-50103 message if I add these modules to my cdaq chassis and run one of the waveforms of a task set to run on the add-on. Is there a way to bypass this error? I guess it would cause by running two digital output on the cdaq-9174 tasks at the same time, but it seems to me that this wouldn't be a problem with an additional module.

    How can I have two outputs digital signals, running at the same time, maintaining their independent frequency frequency of the clock of the other sampling rate changes. In addition, because the wave 1 is enabled and disabled at a defined frequency, I use it to set the number of samples to write when you write a range of waveforms in the module (when generating these two waveforms on the same module).

    I'm sorry if the explanation was difficult to understand. I've attached an example of error 50103 lifting. This isn't really a part of my project as a whole, but it is the easiest way to reproduce the error.

    Thank you

    Hi awol.

    I have a follow up for you. You encounter the error because the cDAQ chassis has only a timing engine of. You will not be able to perform simultaneous tasks of the call by the hardware. Please see the following knowledge base: http://digital.ni.com/public.nsf/allkb/5E0B829E50ADE1BC86257AC50062B2D2

    Mike

  • Container for several tables of different length

    Hey,.

    I'm doing an algorithm for labelling component connected in LabVIEW.  I came across the problem that I need some sort of data structure that I can't create.  I hope that I've missed something and someone can report this to me.

    What I'm looking for is a container that can contain lists of lists of 2 values.  Basically, I have several labels.  Each label will have a list of coordinates in.  The closest I came to this creation is a 2D cluster table.  Then, the cluster contains the coordinates X and Y.  The problem is that each list is not the same size, and for a table of 2D in labVIEW, all rows/columns must have the same length.

    In summary, I'm looking for a way to store multiple lists of coordinates.  The lists will all be of different lengths, and I don't know how many lists there will be.

    Is it possible to do this?

    If not, does anyone know an easier way than that looking for a 2D for concentrations table all?  At the back of my mind, I want to say that there may be a Vision VI of OR who can do this, but I can't find a.

    Thanks for your help,

    Dominic Walker

    A way to manage several arrays of different lengths (but all the same type of data) is to put the berries in a queue.  Each element in the queue must be a table, but they can be of different lengths.  To get to all the tables, you use the preview queue feature.  It returns an array of clusters with each table queue in a separate group (if I remember correctly).   Perhaps an array of clusters of berries would work for you.  I just checked that this allows arrays of different lengths.  You can also place a control of the chain with the label of the cluster if it is appropriate.

    Lynn

  • How to combine several forms in different KEY1/KEY2 should they be in different keys?

    Hi all

    Just trying to get some ideas...

    If I had several forms of large lists in different key1/key2, any idea on how I could trigger several forms in different keys to create a transaction?  I would specify trigger information in the incoming xml.

    Thank you!

    Depending on the version of your product, it is possible to have triggers on several Key2s within the same Key1. These triggers are assigned in the definition of Application (BDF) within the DMStudio Manager.  A transaction specifies the Key1 + Key2 primary in the usual way and then if there is no other Key2s under this Key1 with triggers, those who will be assessed. If True, then any triggerss within this Key2 will be also allowed to evaluate and added to the document.  Note that triggered the Interior forms a Key2 grouping remain the Key2 group in your document that results.

  • Foot of logo to several images of different sizes

    Wonder if there is anyone who knows if there is a quick way to add a footer logo to several images of different sizes (which I think is why action is not an option)? / Niklas

    If you place a version of the footer that is wider than the images and the preferences are set as a result he will be fit to width.

    Then you could use the relative size of canvas and align the foot down a select all.

  • How to set a fixed length scheme, composed of several documents of different types, with details of the header and footer in points 22 and 23, namely having 10 for 20 for detail header and 30 for the footer

    How to set a fixed length scheme, composed of several documents of different types, with details of the header and footer in points 22 and 23, namely having 10 for header, 20 for retail and 30 for the footer.

    Here is the sample file

    DDWTYBILL13092502572 1000000112\\NHLSFS\ORACLE\ORACLE\BILLING\VERIFY\ 2013/09/25 01:19:08 BILLEND

    DDWTYBILL13092502572 2000000212PRIVATE PRIVATE STY5572142 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731543 Suspect 91TB? (AC) EMPIEEM A2 Z03.0 05-AUG-201305-AUG-201324-SEP Z03.9 - 2013FEND 113,60 TYGERBERG HOSPITAL Ward

    DDWTYBILL13092502572 2000000312PRIVATE PRIVATE STY5572149 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731548 empyema GMP A2 Z03.9 05-AUG-201305-AUG-201324-SEP Z03.9 - 2013FEND 113,60 TYGERBERG HOSPITAL Ward

    DDWTYBILL13092502572 2000000412PRIVATE PRIVATE STY5572351 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731584 Suspect 91TB? EMPIEEM? CA Ward HOSPITAL TYGERBERG Z03.0 Z03.9 A2 05-AUG-201305-AUG-201324-SEP-2013FEND 113,60

    DDWTYBILL13092502572 2000000512PRIVATE PRIVATE STY5572352 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731585 Suspect 91TB? EMPIEEM? CA Ward HOSPITAL TYGERBERG Z03.0 Z03.9 A2 05-AUG-201305-AUG-201324-SEP-2013FEND 113,60

    DDWTYBILL13092502572 2000000612MAJOR MAJOR STY5577530 010700 INV 12ZTYG000009 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS ZOZI, S, SIYAMBONGA 27 March 2010 TYG D3 DR MARCELIN 5602181 113799662 TB731663 lymphadenitis Ward D3 TYGERBERG HOSPITAL I88.9 Z03.9 07-AUG-201307-AUG-201324-SEP H1 - 2013MEND 58,52

    DDWTYBILL13092502572 2000000712MAJOR STY5577537 MAJOR 010700 INV 12ZTYG000009 06-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS DLAMINI, N, SIMON TYG 9 October 1976 F1 DR WZESE 5602181 135524676 TB731666 Suspect Ward TB F1 TYGERBERG HOSPITAL Z03.0 Z03.9 H1 07-AUG-201314-AUG-201324-SEP - 2013MEND 58,52

    DDWTYBILL13092502572 30003034120000003032END

    You can create a nXSD the use of the Native Format generator and advanced search attribute is used to read values to a specific position and use it as the choice. You can find an example here

    http://docs.Oracle.com/CD/E11036_01/integrate.1013/b28994/NFB.htm#BGBBAJFD

  • How to increase the frequency of sampling of several sensors via RS - 485 and writing files of measure?

    I have a vi that:

    -Locate the USB port that RS485 communication device is connected

    -sends a command to each sensor

    -reads a response from each sensor

    -performs a calculation on the answer

    -saves the response to a file of measure

    I used a flat sequence to query each sensor.  I am trying to find a way to modify this vi in order to increase the frequency of sampling on the sensors.  Currently, it takes 2000ms for question 4 sensors and write tot the measures file.  Anyone have any ideas on how to speed up by programming?  I am concsidering on the purchase of a device USB DAQ (USB6000) and rewriting of the vi.  I was wondering if there was some tweek I caould make on the vi.

    Thank you!

    I meant put the time-out on the line, then the reading will be either timeout after 200ms or read the 2 bytes.  Whichever is faster.  Then deletes this 200ms waiting you.  I have attached your vi to show you what I wanted.  I did not notice that it is a hardware or wither then you might want to look in the data acquisition functions.  It will clean up your code and are very easy to use.

Maybe you are looking for