Acquired two binary channels.

I apologize if it's incredibly simple, but I seem to be at an impasse. My goal is simple. I want to use Labview to gather acoustic data (sampling at 50 k per channel) since a DAQ card two channels of NOR. I would like to pass these two strings in binary files (one file containing both channels, or one file per channel). Next, I want to be able to use a separate vi to open these files and convert data into .wav (or anything, really; .wav seems appropriate for the acoustic data).

My problem is that the 'write waveform in the file' tends to create very large files that cause memory problems when opening.

I tried several variants of use write a binary and reading binaries that have given rise to very mixed data.

Any help would be appreciated.

What about using intermediate tdms as binary files? they are standardized, then you do not need to create parser vi-s and have very good performance

The NI TDMS File Format

Tags: NI Software

Similar Questions

  • Comparing two digital channels or waveform

    Hello

    How to compare two digital channels or the y-axis of the same lengths waveform channels and find the line that has about the same value in the channels. For example, suppose we have two digital channels X and Y which has about the same value in line 15. I need to write a script to find out in which line the canals coincide.

    Kind regards

    X.Ignatius

    Hi X.Ignatius,

    I subtract channels and use the CHNFIND function to search for string values that are zero or nearly zero.

    Greetings

    Walter

  • With the help of two CAN channels on cRIO with 9853

    I have a cRIO 9014 controller RT and 9112 chassis and a CAN Module 9853.  I used successfully CAN receive and channel CAN Transmit example projects to check the work of material.  Then, I took two screws FPGAS of each project and grouped in a single FPGA VI by copying just the two in the same VI.  I can correctly transmit and receive with the host live

    My goal now is to be able to use the two CAN channels on the module 9853 for transmitting and receiving CAN Messages on each channel.  I like to use in a project in hybrid Mode later, so I think that there is only a single DMA channel available after that Scan Engine takes 2.  Maybe that's why I get an error when I make a copy of everything in the FPGA VI, make a new FIFO and make copies renowned host of screws with different names of variables to match the copied content from FPGA VI.

    Any other ideas on how to proceed would be appreciated.

    Also, I know that CAN1 needs an external power supply, so it is no more a problem.

    Thank you

    John

    I thought about it, I don't know why, but some parts with part 'FPGA to receive channel CAN' in their own lines fixed.  Now CAN receive is as fast as can be, never drop frames or overflowing the FIFO.  He also compiled FPGA Bitfile 30% faster and was about 50% less use of the device.  Weird...

    If you're curious, here's the new VI:

    John

  • How to DIVIDE a TRACK STEREO L & R CHANNELS INTO TWO MONO CHANNELS

    Does anyone know if this is possible: how to DIVIDE a TRACK STEREO L & R CHANNELS INTO TWO MONO CHANNELS?  There must be a way, but I can't find how.

    I recorded a podcast - me and a guest, with each microphone goes to its own mono channel. When I opened it in hearing he mixes in a stereo channel.

    Thanks in advance for any help.

    Best,

    Shawn

    Once you have opened the file in the waveform editing view go to menu Edit "excerpt from the channels to mono files.

  • Cannot acquire two channels?

    I'm missing something... I can't acquire mutiple channels. It will work if I delete one of the channels.

    glskinner wrote:

    If I delete the other creation of channel and create another 'read' inside my time, loop that connects to my first creation of channel... How to stipulate that this new channel number 'read' is?

    Not quite.

    Create the task with two channels and then your read reads and returns the data from these two strings in an array of waveforms.  Just hint about the desired waveform.  (Or their separate plots on a graph chart)

  • I'm using Labview TDS3000 Tektronix pilot measures the delay between pulses on two different channels

    I use the driver for Tektronix TDS3000 Labview to configure an TDS3034B oscilloscope and I try to measure the gap between the falling edge of a pulse on channel 1 and the edge failling from an impulse on channel 2. It seems that the TDS3034 can measure this in in-house by the use of the measurement on the front panel key, but how do I retreave using your labview driver?

    Hi Tori

    I am now in place and running, I already had the TDS3034B to measure the delay between the pulse on channel 1 and the pulse on two channels, as well as the pulse width tuned to channel 2. This was done by saving the settings on the scope on a diskette and cutting and sticking them in a modified version of the TDS3000 auto setup vi. I created from a simple VI which allowed me to manually enter orders for tektronix and found that the command "measure: meas1: data? went around.

    Thanks for all your support on this issue.

  • Two video channels

    Hello! I do a two-channel video and I was wondering if there is an effect that I can use to standardize the size of both screens on my video, otherwise the process of fiddling and the displacement of each clip in my 40 minute video will take another 40 hours and still not be perfect. Any thoughts? Thank you!!

    Make a clip as you wish, copy and then select all others and "paste attributes" that should make them all the same.

  • How to make two separate channels of spot color?

    I have an image of a yellow pencil and tap the pencil. I want to make a Duotone in yellow and black, the type on the pencil is in black. I did spot two channels, one of the yellow pencil and the second black type. It appears without any detail of the solid color pencil and I want to show him the details. Any suggestions please?

    Without actually seeing, looks like you need an image in grayscale of the pencil with black text on a top layer. Then create a playlist for the yellow areas, save the selection and change alpha to a channel stain yellow.

  • simple DMA FIFO reading two analog channels

    Hello

    I have a question on a method of data transfer between two analog inputs for a simple DMA FIFO in FPGA. The code is described here: http://decibel.ni.com/content/docs/DOC-6303. If I use this method, and I got out in a graph of my host VI, the calendar in the graph reflects the same schedule as the signals that have been entered? Or will they be phase shift between two signals?

    Thank you

    Grant

    Grant:

    Because it is not all information of timing with the signals in the FIFO, there will be no lag phase on the chart.

    Hope that helps. I would like to know if I forgot something, or who does not explain very well.

    Thank you!

  • How fast can get a TCP read?

    LV 2009 + WIN 7 with 6 GB of Ram.

    I acquire two analog channels as a word of 16 bits each and adding a CRLF at the end example: 1234 567 \r\n

    These data are acquired to 50ms intervals and sent over a link WiFi for my notebook running code LV.

    I know not how fast the "TCP - Read" function can work and which mode (it has four options) to choose if I do not miss any incoming data...

    Now I get some data in French - initially rather quickly and after a few seconds, it slows down the consdierably. I'm running the TCP-read inside a timed loop and I tried various intervals from 10 ms to 500ms. The largest value works OK, but I need the fastest possible. Tips how to handle this?

    My code is attached. (The passage DIO works very well)

    Even if the passage DIO works, it doesn't make sense to use a sequence structure.  It would be better to change the Standard mode and the 100ms Timeout value instead of "wait for next"millisecond"Multiple" as leading to uneven wait times.

    TCP Read should run very quickly, subject to any waiting period that you set.  You should never lose data in any mode, although there is a possibility to receive a partial when you use Standard mode or immediate (unlikely in your case since you read so little data).  The operating system will be buffering of data not read for you.  If you want the fastest possible exchange, divide your code in two while loops, one for EID and the other for the series.  Serial communication can be simply a normal life while loop, with the reading of TCP dictate the timing.  Set a long timeout in buffer mode and the loop will run as quickly as it receives data.

    Also, when the loop ends, you must close TCP connections, not just one of them.

  • Can I acquire at the same time HAVE two cards of different acquisition installed on the same computer

    Here's my question:

    I have two different cards installed in a PC. Specifically, PCI-6224 and PCI-6254. I need to acquire 50 analog inputs (real time). Can I use two cards to do? I mean I can synchronize these two cards and acquire simultaneously several channels at the same time?

    Thank you

    Alessandro

    Yes. You can use a RTSI cable between them. See the examples of the expedition. If you are using LabVIEW, look at several Synch - Analog Input - Cont Acquisition devices.

  • multi channels data acquisition, a single frequency, counter a pulse, two voltage inputs, a power meter (by USB) and an analog output spontaneous and recording

    Hello

    I have a power meter which provide the USB driver and a Labview program to get the data and NI USB-6221. The project I am currently working on the needs of:

    1 acquire two signals (inputs of simple tension), pressure frequency KHz

    2. acquire a flow signal, the output signal is 0 to 5V pulse, each pulse means 0.4 ml volume. So I use a voltage inflows to count impulses in certain period of time (in this case, 1 S) for water flow. ; KHz sampling frequency and the 1 Hz update rate

    3. acquire a signal of engine speed. The output signal is pulse square wave whose frequency is related to the speed. I use a REIT port to measure the frequency. Sampling rate: Auto

    4 give output voltage sine or square wave, I use AO do that.output rate: Auto

    5 acquiring by VISA electricity meter data.  Data update rate: every 50ms

    Currently, all the 5 tasks work well separately. But when I put them together, some signals are beginning to hang, for example, pressure signals sometimes give nothing.

    Another problem is the data record. I programmed the VI in such a way that whenever I press the button 'save start', he begins to record data and save them in a .cvs file. For some reason, I always get only the data in the first table. Coult someone help me? I download my code as follows

    Hello

    What I meant by open, write, close.  For any type of file you are using.

    Open the file, which produces a reference, then put the mention in a registry to offset.

    Write data, using the function write (for this type of file) and the reference.

    When you are finished, close the file reference.

    Writing in the spreadsheet opens, written, close all at once.  It is very good for this type of application.

    ***

    The issue of the loop is more general.  I would like to say first of all, I want to say that since each loop works on its own, it is own VI, and that this program has put all this into a single VI, which has a method to solve the problem is to disable all the loops and allow them one at a time to see if there is a culprit responsible for.

    Using multiple loops executes the code at the same time, and some loops would be cycle faster than others, especially if some of them are loops just as they are.

    Communication between the loops is a test to the address if necessary.

    Running all these signals through different loops DAQ must also be examined.  Don't know what questions are for read and write somewhat randomly in the channels.

  • How to control two channels of simultaneous functions AFG 3200 B generator?

    The AFD 3200 B function generator has two channels. I want to use both channels generations some vague simultaneous sin. I downloaded the labview driver: Tektronix AFG 3000 Series.

    I did three things:

    (1) try to connect to two channels in VI.

    However, all the screws of example do not support the connection of the name of two channels simultaneously.

    (2) run only two signals generating VI with another name for channel at the same time.

    However, a single channel runs after the other.

    Do you have any suggestions?

    Thank you!

    Wu Yue

    Hey Wu,.

    You need two sine waves to be completely synchronized (aka having the same exact phase)?

    If they must be synchronized, then the AFG should on the two output channels at the same time, but you will probably need to configure serial in your program.

    If they do not need to be synchronized, then is there a reason why you would not be able to simply divided between the output signal two BNC? If this isn't an option, then you will probably need to make some kind of trigger to get both channels to start at the same time.

    Lars L

  • Need help to set up an acquisition of two channels using NI5154

    Hello experts NOR:

    I'm setting up a scanner high speed data acquisition NI5154. I have two data channels need to be measured. In fact only the waveforms in the channel 1 must be recorded and channel 0 is used for counting digital pulses.

    My goal is like this: once started, the digitizer should count the digital pulses in channel 0 for some time until a start trigger happened in the channel PFI_0. After receipt of the beginning in the channel PFI_0 relaxation the digitizer should switch to channel 1 and start captured signals and save them to the disc.  After a well-defined time, stop digitier the acquisition in channel 1 and then switch to channel 0 and repeat as cycles.

    my questions are: what the best way to count the Digital pulse channel 0 ? The only way I know is the source of reference on channel 0 command and then get the number of "Done Records" from the property node.  After the acquisition of the digitizer will be waiting for the trigger to start in the channel PFI_0, no pulse in the channel 0 will be counted. If I let the impulses in channel 0 not counted in the first cycle, at the end of each cycle how can I switch from channel 1 channel 0 and saitch return after receiving the trigger from the beginning? It seems that I have to configure the trigger repeatly system.


  • How to abort Continuous Acquisition (which is set to acquire a constant number of samples per channel each iteration)?

    Hi all

    I would like to continuously acquire an input channel analog and, if necessary, be able to stop the acquisition as quickly as possible.

    I use a card NI USB-6289. I implemented a DAQmx (voltage) analog input task, set the clock sampling DAQmx 'continuous samples' and the rate required (IE 1000, which is 1 kHz). For the acquisition, I used a while loop with inside the DAQmx Read with Terminal 'number of samples per channel', wired (IE 1000). The while loop waits until 1000 samples are acquired and therefore continuously reads the channel in uniform batches of 1000 samples every second ticking. The while loop can be easily interrupted when the DAQmx has completed the acquisition of the lot being 1000 samples, but it takes the DAQmx finish their current task.

    My problem is how to stop the loop while the DAQmx Read lies in the middle to get 1000 samples WITHOUT delay all 1000 samples are received? Is it possible to interrupt the DAQmx Read?

    I could reduce "the number of samples per second", increasing the responsiveness of the while loop, but this is not the solution I prefer. I tried to destroy the task (outside the while loop), but that does not stop immediately the acquisition, Read DAQmx still finish acquire 1000 samples. I've included an example Subvi. When I was using a PCI card, I used a timed while loop with inside the DAQmx Read with Terminal 'number of samples per channel' wired-1 (= which means ' read everything in the buffer "). In this case, it was easy to stop the acquisition at any time: the timed, while the loop is abandoned and the acquisition has ceased immediately. But it does not work with an NI USB-6289 map (see thread http://forums.ni.com/ni/board/message?board.id=170&message.id=386509&query.id=438879#M386509) because of the different way the data are transferred to the PC.

    Thank you very much for your help!

    Have a great day,

    LucaQ

    Hi LucaQ,

    Your solutions are decrease of the number of samples, or record the time you want to stop and remove samples that have been acquired beyond this time. There is no other way to stop the actual reading out of the hardware store.

    Flash

Maybe you are looking for