Vbnet counter input channel read

VB2005 Counter Input DAQmx Single Reading
I have been tasked with upgrading a previous vb6 application using DAQ Legacy
to .net using pre-existing components.
6052E and 6601. I am a vb.net programmer, not an engineer,
nor did I write the original application.
- lots of deciphering and figuring out terms that I am very
unfamiliar with.
6052e = Dev1
6601 = Dev2
Encodertype = x4
zIndexEnable = false
EncoderPhase = AHighBHigh
PulsesPerRev = 60
SampleClockSource = “/Dev2/PFI39”
Rate = 1000
Samples = 25
Taken pretty much straight from the example -
myTask.CIChannels.CreateAngularEncoderChannel(counterComboBox.Text,
encoderType, zIndexEnable, zIndexValue, encoderPhase, pulsePerRev, _
                0.0, CIAngularEncoderUnits.Ticks)
myTask.Timing.ConfigureSampleClock(sampleClkSourceTextBox.Text, _
Convert.ToDouble(rateTextBox.Text), SampleClockActiveEdge.Rising, _
SampleQuantityMode.ContinuousSamples, 25)
I have installed DAQmx 8.5 and have been reading the help
and scanning the samples to try and figure these things out.
Specifically MeasAngularPositionBufferedCont_ExtClk, after calling
and getting help, I was finally able to get this sample to work.
In my application, I have my own counter object that I
instantiate and each of the four has its own task, CIChannel and reader. When a
channel is selected, the task is configured, the channel added, the task timing
configured and the task started, when the object is unselected, I dispose of
the task and channel. In my gui I have a timer event and if that channel has
been selected, then I call its getcurrentvalue method, which calls the reader
to get value asynchronously and pumps it to a textbox. This same type of scheme
worked for me with the AIChannels, but trying to get counter angular position,
all I am able to get is error -200284 pretty consistently.
I have matched all my criteria to the working sample, but am
unable to get a value returned. Better yet, after I start my app, even if I don’t
enable one of my channel objects, I can no longer run the sample application.
I have found that after I run my application I can use the
original application (which is using the DAQ Legacy) and initiate a read and
then close the original application and everything is reset aka I can
successfully run the sample application again.
QUESTIONS:
Is there a way to test the start trigger to determine that it
is configured correctly?
I have the task set up for external timing and the clock
works on the sample how can I verify this is working in code?
Any idea of why I would have to go into the original
application in order to get the sample to work again?
Any know of other vb code examples that might relate that
you could point me to?
Thanks for any help
CMWell, time to get back to the frustration...

Hi,
Is there a way to test the start trigger to determine that it is configured correctly? - Where are you using a start trigger? - I didn't see a mention of it in your description. When troubleshooting triggers I ussually end up checking 3 things. First, I confirm that my physical trigger source is outputting a TTL signal. Second, in Max I do count events on the PFI line I have the signal connected to in order to confirm my connections. Third, I try a simple example - if it will trigger in the example, then it will trigger in my code as long as the call is made with the same settings and configurations.
I have the task set up for external timing and the clock works on the sample how can I verify this is working in code? I would start with the first two steps from above. In your case, PFI39 is an actual enoder signal if I recall correctly. With the error that you receive, -200284, one of the causes of that is when there is not external clock signal (do a quick search on ni.com for "200284" and check out the first link) - is your encoder moving when you take these readings? If there is no clock signal present, then the task will not latch in values. One good way to work around this is to use another one of your counters to generate a pulse train and use that output as a clock signal instead of PFI 39. Also, if you just want to grab single values, you don't have to do a buffered acquisition - you can figure timing for "on demand" and not have to woory about clocked values. Either method should work.
Any idea of why I would have to go into the original application in order to get the sample to work again? That ones a little tougher. If somehow you are leaving the task in an undefined state (not stopping and clearing) it can cause some issues with the next iteration. You may want to try reseting the device at the beginning of your program.
 Any know of other vb code examples that might relate that you could point me to? I think you're already looking at a good shipping example, you may want to try modifying that before trying different setups in your application.
Hope this helps, please don't hesitate to post back to this thread with additional questions,
Andrew S
National Instruments 
Getting Started with NI-DAQmx
Measurement Fundamentals

Similar Messages

  • Can DAQmxRegisterEveryNSamplesEvent function be used for the Counter Input Channels

    Hi, All,
    I have an application to count the digitial pulse number. I want to know the time of the coming pulses which start from 1 and increased 4 later, like 1, 5, 9, 13..... The time interval between each pulse is not a fixed value. So I tried to use  DAQmxRegisterEveryNSamplesEvent and DAQmxCreateCICountEdgesChan functions. But afterI called the DAQmxStartTask function, it always failed.  The board I used is the NI-PCIe-6320. Here is part of my code.
    DAQmxErrChk (DAQmxCreateTask("",&m_taskhandle));
    DAQmxErrChk (DAQmxCreateCICountEdgesChan(m_taskhandle,"Dev1/ctr0","",DAQmx_Val_Rising, 0, DAQmx_Val_CountUp));
    DAQmxErrChk(DAQmxRegisterEveryNSamplesEvent(m_taskhandle, DAQmx_Val_Acquired_Into_Buffer, 4, 0, EveryNSamplesCallback, this) );
    DAQmxErrChk (DAQmxStartTask(m_taskhandle));
    I don't know the reason. Can Anyone give me some help. Thanks.
    Yang
    Solved!
    Go to Solution.

    Hi, John,
    What's I what to do is that I have an external digital signal, when the signal goes from low to high, I need do some operations. So I just want to know the time when the digital signal goes from low to high.  The frequency of the digital signal is from 0 - 20000Hz. My first plan is to use a counter to count the pulse rising edges. When the number of edge increases one, I do the designed operations. In this method, I can't guarantee I can catch each pulse rising point. Because sometimes the counter will increase more than one in the on-demand mode. For example, the previous content of the counter is xxxx4, but the next reading the content may become xxxx6.
    After I learned some ANSI C  codes, I found that the ChangeDetectionEvent can help me found time when the signal goes from low to high. So I wrote the following code: (I set the digital signal to P0.0)
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateDIChan(taskHandle,"Dev1/port0/line0","",DAQmx_Val_ChanPerLine));
    DAQmxErrChk (DAQmxCfgChangeDetectionTiming(taskHandle,"Dev1/port0/line0","",DAQmx_Val_ContSamps, 1));
    DAQmxErrChk (DAQmxRegisterSignalEvent (taskHandle, DAQmx_Val_ChangeDetectionEvent, 0, Callback , dialog));
    DAQmxErrChk (DAQmxStartTask(taskHandle));
    int32 CVICALLBACK Callback (TaskHandle taskHandle, int32 signalID, void *callbackData){
    CNIPCIE6320Dlg* dialog = static_cast<CNIPCIE6320Dlg*>(callbackData);
    dialog->m_event_num++;  // Here is to calculate how many events has been triggered
    return 0;
    Yesterday I used this method to get the pulse rising time. I found the m_event_num is close to the ground truth (In the simulation, I know how may rising pulse I generated).  In one two hours test, the offset is almost 400 pulses. But today I did the same tests again. I found the m_event_num got a big difference from the ground truth. The voltage of the whole system today maybe smaller than yesterday, because today the power is from an invertor while yesterday the power is from the electricity supply. So will the lower voltage supply will causing some event missing. Or if PC system became busy will ignore some callings of the event callback function? That's two possible reason will affact the final result. I am not sure. Do you have any experience about this problem.  Or do you have some better suggestion to get the pulse rising time. Thanks again.
    Regards,
    Yang 

  • Encoder position WITHOUT counter input

    Question:
    I have three incremental encoders connected to my M-Series DAQ board (PCI-6229) that has TWO Counter input channels.  I am measuring the position of each encoder.  How do I measure the position of the third encoder if I have used-up both counter inputs?  Is there a manual way to accomplish this using my older version of Labview (version 7 express)?  Any help is appreciated.
    -Clarkam1 

    clarkam1 wrote:
    Ben,
    I'm on an extremely small budget and can only use the items available to me at present time.  That being said, is there no way to use one counter for multiple encoders?  Or could an external device be used to count which the DAQ board would read?  I appreciate your timely responses.  I'm trying to explore all other options.
    So do you work for free?
    If you are determined to get all three counters going with that device, you have a big challenge ahead of you. I'll try to explain. At teh input of your counters you have signal conditioning that feeds the counter itself. To do the same thing using analog input channels (since all of the counters are already used) you will have to develop code that simulates the signal conditioning, converts the analog to digital (this may sound easy but if you need to implement over-sampling its not) and then do the work of the counter, again in software.
    If my customer was forcing this on me I would first review the behavour of the hardware and use it to establish the requirements of my code. So if you do not have an EE background, you will first have to learn the hardware so you can write software that does the same thing.
    So if you work for free then you may want to chase down the examples that NI ships for their FPGA targets that implement serial protocols and the like. You may be able to harvest some code and examples from there. If you don't work for free, then you really have to decide if you want to re-invent in software what you can purchase.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • FP-CTR-500 don't read external count inputs

    I have 4 frequency signal inputs (0-10 KHz) connected to ports 2,3,4,5 of one FP-CTR-500, but I can't read any change on counting values, using FieldPoint Explorer. The module is OK, all the LEDs are green, including those four inputs, the firmware version of FP-1600 is 4.11 and software version of FieldPoint Explorer is 3.0.0 I can view a fix value of 53xx counts on each input, after a power up sequence (the external frequency is 8.2 KHz aprox.). What can I do?

    There are several reasons that you may be having problems with the count. First, if the channel LED is always on, then the signal wired into the FP-CTR-500 may not be going low enough (below 6 volts) for the module to see the falling and rising edges. Second, if the inputs have been configured with the 200 Hz low pass filter setting, you may be filtering out your signal. Third, if you have configured the count channels for internal count inputs (1 kHz Reference or 32 kHz Reference) or previous count channel, then the module is not looking at your actual wired signals. Fourth, If you have enabled the Gate Inputs (channels 8-11) for any of the counters, then the count will not increment while the gate is low. Fifth, if the channel is configured for Reset On Read fu
    nctionality, every time the FP-1600 polls the FP-CTR-500, the channel will reset itself.
    Regards,
    Aaron

  • Difficulty getting Sound input configure and sound input to read more than 2 channels

    I need multichannel audio input for my project. I can't seem to read more than 2 channels of my audio interface.
    The interface Im using is an Alesis Multimix8 USB 2 mixer and and audio interface. This supports 10 channels in and 2 out. With other software I can read all input channels simultaneously without any difficulty. When I specify the sound input configure and sound input read, to read more than 2 channels any extra channel is a blank signal. Im using Labview 8.5 here.
    Solved!
    Go to Solution.

    Take a look here
    http://forums.ni.com/t5/LabVIEW/Play-waveform-express-vi-list-devices-on-front-panel/td-p/1559336
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Displaying multiple analog input channels using DAQmx READ commands.

    I am using a NI USB-6009 module in a hydraulic load test stand.  I want to read multiple analog voltage inputs and display them on my front panel.  Using DAQmx commands or DAQ assistant, LabVIEW will only let you have one READ command for the analog inputs.  Can someone point me to an example or give me some ideas on being able to display at least 3 analog inputs?  Thanks.

    With the DAQ Assistant, when you get a list of 'Supported Physical Channels', look at the bottom of the window. It says "<Ctrl> or <Shift> click to select multiple channels. When you use the DAQmx Create Channel and have a physcial channel control/constant, click the little arrow on the right side of the control/constant, select browse and use the same <Ctrl> or <Shift> click technique. If you want to enter the channels manually, the format is Dev1/ai0:2 for consecutive or Dev1/ai0,Dev1ai3 non-consecutive channels.

  • VI only reading one input channel

    Hi,
    I’m trying to read 8 signals from 8 different microphones. I’ve got a PCI 6229 device which is connected to the BNC terminal BNC-2090A.
    However, when I run my VI, it only reads the input from AI1 (the second input channel). I know that there’s nothing wrong with my microphones, because they did input values from that particular channel.
    I’m wondering whether there’s something wrong with my VI or with the hardware.
    Thank you for any help in advance.
    Ruf

    Thanks for the quick reply JB.
    Here's my VI, let me know if you need more clarification on it, as parts of it might be a bit unclear. The top part of the block diagram, starting from the Input Channels is where I start reading the inputs.
    Many thanks,
    Ruf.
    Attachments:
    try_6.vi ‏137 KB

  • Route multiple 6602 counter inputs to one counter output...

    Hi!
    I´d like to route 4 different ttl signals, that are read by 4 different counter inputs to one single output channel (e.g. the output of one of the counters used) using pulse train generation with a divider of 4. Note that only one of the four inputs is active at the same time, to prevent overlay.
    How can I do that with Traditional-DAQ?
    Setup would look like this on the SCB-68
    TTL1 ----o in0 (ct0)----o out0 TTL(1..4)/4 [Hz]
    |
    TTL2 ----o in1 -- (output of ct2 is redirected ro ct1)
    |
    TTL3 ----o in2 --
    |
    TTL4 ----o in3 (ct3)--
    May it be better to just output each counter input signal at it´s own output and connect these outputs to one free I/O-pin hardwired?
    Best regards
    Zorniki

    In the end I configured a counter for Pulse Train generation and opted to change the duty cycle and frequency via 'DAQmxWriteCtrFreqScalar" (i.e. Pulse Width Modulation)
    I registered a callback for the 'DAQmx_Val_CounterOutputEvent' and then changed the dutycycle and frequency in that callback. 
    Unfortunately, I kept getting  "The pulse generation with previous property settings must complete a
    full cycle before the property can be updated." error messages and, opon further reading, managed to find a doc where National Instruments suggest adding a 'Wait(period)' before executing the 'DAQmxWriteCtrFreqScalar' call.
    The problem with this solution is that it one has to wait a minimum of 2 Periods before the Pulse Train can be modified which is not acceptable for our work.
    So is there an alternative solution which allows us to change the Pulse Train after only 1 Period ? Is there an event we can trap which allows us alter the Pulse Train after every period ? I'm sure PWM must be possible on Daq cards (PCI-6602 or PCI-6281 or PCI-6259)?
    Cheers, Shaun.

  • Custom scale for counter input?

    Hello everyone,
    Is it possible to create a custom scale for a counter input? I saw there is a feature to allow input Custom Scale Name to the Channel Property Node. However, when I tried to create a custom scale to input to the channel, I got this error
    Error -200212 occurred at DAQmx Read (Counter DBL 1Chan 1Samp).vi:1
    Property: CI.MeasType
    Corresponding Value: Count Edges
    Property: CI.AngEncoder.Units
    Corresponding Value: From Custom Scale
    Channel Name: CountEdges
    Task Name: MyCountEdgesTask
    Do you know what is the problem with it? Thank you

    How do you have the channel set up? Can you attache the VI's that you are using? Is this a global virtual channel?
    Tim
    Johnson Controls
    Holland Michigan

  • Multiple input channels with following start task VIs

    Hello everybody
    I have this Vi, trying to acquire two input signals. I get the error 50103 which is because of "Concurrently running two or more analog input or analog output tasks".
    obviously, I should combine them into one task but here is the problem:
    first: I want one of them to be started after the other one. I dont want them to be started atr the same time.. i dont know how to start them sequently on one task..
    second: I want to send the pulse from the analog comparison event of the first input signal to the second one. but i dont know how i can do that when im having both channels in one task.
    thanks..

    Dear  RavensFan
    thank you for your responce
    about the second question:
    once the trigger condition set up has been met an analog comparison event pulse is output from the analog trigger circuitry and is then available to the AI, AO and Counter Circuitry.
    then I need this pulse signal as the source of triggering for acquiring another input singnal I will add to my Vi later . if you look at my VI, i have connected a analog comprison event to the second input channel samle clock,,, i'm not sure if i'm doing the right thing here or not..
    what i was trying to do is that i want this vi to show me the output signal of the analog comparison event which carries the information about the times that my trigger settings has occured..
    actually, in the second inut channel, i wanted to make a graph that shows me the times that my first signal has crossed zero points. (which is obvious in my trigger setting)
    Is there any way i dont have to combine my input signals in one task and get rid of the error?
     

  • PCI-6602 - What to do with unused counter inputs?

    I've got an application where I need to track the position on two quadrature encoders.  I've developed my application with VB6 however, I've been using a sample LabView program called "Meas-Ang-Pos-Buff.vi" for testing purposes.  (I got the example off the NI discussion board).  I'm seeing some very odd results that I can't explain. 
    For testing purposes, I've got one encoder tied to multiple channels on my 6602.  I have the same 'A' signal and the same 'B' signal (from the one encoder) jumpered to multiple encoder channels.  I'm using a onboard pulse generator to generate the latch pulse (connected to the Index/Z of each counter) to ensure there is no skew in my count values.  I'm using an external servo to turn the encoder at a rate equal to my application speed.
    The unexplanable results I'm seeing are below:
    If I'm monitoring counters 0, 1 and 2, I see the following.
    1)  If I have counters 0,1,2 and 3 inputs connected to the same 'A' & 'B' from my encoder, the counts on all 4 channels (0,1,2,3) track perfectly.
    2)  If I disconnect counter 3 and only have counters 0,1, and 2 connected to the encoder, then counter 0 and 2 track perfectly, but counter 1 looses pulses (only when traveling in one direction, the other direction seems to be fine)
    3)  If I connect counter 3 to ground and have counters 0,1, and 2 connected to the encoder, I get the same result - bad.
    4)  If I connect EVERY counter input (2,3,4,5,6) to ground and only monitor counters 0 and 1, I still get bad results.
    In summary, I ONLY am able to see the same number of counts while monitoring 3 channels IF 7 of the 8 counters are connected together (the 8th being my latch).
    This happened to me in the past on a previous setup that did the same thing, but I was able to fix it by moving from counter 1 to counter 4.  At that time, I chalked it up to a bad counter 1, but I think there is a bigger issue since it is happening again.
    Please any advice would be appreciated.

    Thanks for the response.  This one has really got me confused and any help is greatly appreciated.
    To answer your questions, no I have not modified the sample program and I'm using NI DAQ v8.5.
    I've decided to break the problem down to see if I could find a pattern, but no such luck.  Here is the testing that I've done.
    I'm making the following connections while using the sample program I mentioned earlier:
    Counter 0...............PFI_39 (term 02) - Channel_A(0).................PFI_37 (term 40) - Channel_B(0)
    Counter 1...............PFI_35 (term 07) - Channel_A(1).................PFI_33 (term 06) - Channel_B(1)
    Counter 2...............PFI_31 (term 34) - Channel_A(2).................PFI_29 (term 66) - Channel_B(2)
    Counter 3...............PFI_27 (term 31) - Channel_A(3).................PFI_25 (term 63) - Channel_B(3)
    Note:  I connect the "Z" channel for gating purposes in my VB application, but this isn't required in the LabView sample program since the gating appears to be done internally.
    My testing results:
    1.  If I jumper my one encoder to channels 0,1,2, & 3 at the same time, everything works great.  Each channel reports the same number of counts regardless of whether I'm turning the encoder in the positive or negative direction.
    2.  If I disconnect channel 3 and only have 0,1 & 2 connected, then 0 & 2 track perfectly, but channel 1 looses counts in the negative direction.
    3.  If I only connect channels 0 & 1, then channel 0 counts perfectly in both the pos and neg direction, but channel 1 looses counts in the negative direction.
    4.  If I connect any channel by itself (0,1,2 or 3), each one counts perfectly.
    5.  If I connect channels 0 & 4, everything seems to be fine.
    Like I said in my previous e-mail, if this hadn't already happened to me in a previous application, then I would chalk it up to a bad board.  If I didn't get good results on each individual channel then I would chalk it up to a bad encoder pulse train.  However, it definitely seems to have something to do with connecting multiple counters at the same time in a Motion Encoder Application.  I have read the 6602 User Manual backwards and forwards looking for a nugget of explanation, but have found none.  There was a section entitled "Counter Input Selections" on page 4-12 (table 4-2) that might offer some explanation, but neither me or my colleagues could understand what was being described.  Any help deciphering that would be appreciated.
    As of now, I'm going to proceed with my application, using channels 0 &4 (just as I've done in the past), however I don't feel comfortable not having an explanation for the 6602's behavior.  Any insight would be greatly appreciated.

  • 4 counter input & 6 signal input HELP

    Hello Friends,
    I have a little problem, would be great if someone can help me.
    I am using the counter inputs on my Data Acq. Harware to measure the pulse width of my input sigal.
    Since the hardware has only 4 counter inputs I can connect 4 channels, but I want to measure pulse width for 6 channels.
    Is there a way to use the available 4 counters and measure all of the 6 channels?
    Thank you
    Regards,
    Raj
    Solved!
    Go to Solution.

    In my (very basic) example, you could just increase the timeout to ~10+ seconds to ensure you acquire the pulse.  If it's possible that the pulse isn't present within the ~10+ second timeout you would also need to handle the timeout error so it doesn't wrap back around through the shift register and prevent the future reads from executing.
    The downside to this of course is that it could take up to ~60+ seconds to acquire from all 6 channels in the worst case scenario.  The example was really just intended to show how one might use a single counter to acquire from multiple channels in succession.
    The better way to do it with counters would be to run (up to) 4 counter tasks in parallel.  The first 2 tasks to finish with their original acquisition should then measure a second channel.  This could still take ~20 seconds if none of the signals are connected however.
    If you want to trade a lower measurement resolution (and more memory usage) for a lower upper-bound on measurement time you could instead acquire a 10 second window of time using clocked digital inputs and use software to determine the pulse duration by parsing the acquired array.
    Best Regards,
    John Passiak

  • Processing counter input into an analog output

    Greetings to all --
    I've set up a PCI6070E card to do digital input through its "counter 0" channel and output through its "AO 0" channel.
    I'm brand-new to Labview, however, and having trouble figuring out how to design my program.  In short, this is what I want to do:
    1. Count the number of pulses, let's call it P, that arrive at the counter in a given time increment.  (Ideally, this time will be adjustable from 1 microsec to 1 sec.  In reality, I may have to settle for some number of milliseconds or more, as Labview doesn't seem to like to do loops at more than 1khz.  But that's an issue for another day.)
    2. Perfrom a mathematical operation to turn P number of counts into some number N between -10 and 10
    3. Set the analog output to read N volts
    4. Reset counter to zero and start over at (1.) again.
    I can make labview count pulses in, and I can send voltage signals out, and I can use the front panel to get the inputs I need from the user for the mathematical operation,  However, I'm having trouble with counting how mant pulses hit in a given time increment, and then resetting my digital counter to zero.
    Can anyone point me at the right function names or help files, or suggest a rough program flow?  I appreciate it.
    Chad
    [email protected]

    Chad,
    The only way you can perform this type of operation with your device is in software.  See the knowledge base entries below for more details. 
    HW resetting Counter on an STC Device:
    http://digital.ni.com/public.nsf/websearch/55AF6CA​DD87F6F7786256B89005B8AFD?OpenDocument
    How To Reset in Software:
    http://ae.natinst.com/operations/ae/public.nsf/web​/searchinternal/65e3dbc715998c3286256e900075b7f8?O​...
    Regards,
    L. Allen

  • I can't seem to get GB to recognize my Behringer X1222 USB Mixer. It will record, but shouldn't I be able to see and/or select which input channel(s) that I will record from? Can I record more than one channel at a time, and record multi tracks?

    I can't seem to get GarageBand to recognize my Behringer X1222 USB Mixer. It will record, but only on the generic "USB Input, without seeing or letting me select the input channel from the mixer. Can't find any drivers from Behringer. How do I getGB to "see" the mixer? Thanks, I'm a newbie to Macs in genreal, and recording...

    viiram wrote:
    It will record, but only on the generic "USB Input, without seeing or letting me select the input channel from the mixer.
    the x1222 includes a 2 channel audio interface, 2 channels are all you can get from it.
    the most you can do is record to 2 tracks at a time; skim this tute to see how:
    http://www.bulletsandbones.com/GB/Tutorials.html#allaboutrecording2tracks
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Simple Channel Read and File I/O Problem

    Hello
         I am having a simple problem with reading in two channels from a usb-6259.  I have 2 channels, reading in voltages, and I am wanting to read them in at 400K Hz.  I have used the DAQ assistant and the Write To Measurement File VI.  It is just a direct connection between the two.  I have the DAQ assist set up for taking in N Samples, which is set to 8M because I want to take in 20 seconds worth of data at 400K Hz.  Now the problem lies with the fact that I am getting a Out of Memory error.  This pretty much confuses me because the file that I will get is 220MB (I know this because I put a wait and got none continuous data for a total of 20 seconds worth of data at 400K Hz), and I have 2 GB of RAM, in whic i usually have 1.3GB free when I start the simulation.  So, now on to my actual question.  How is this system running out of memory?  How else can I program this to make this work?  Any feedback on this would be great.  Thank you.
    Michael B
    Labview 8.5

    Hello Michael B,
    The DAQ assistant creates a lot of over head and this may be the reason why you are running out of memory. If you keep the Task Manager open while you are running the task, you'll be able to see that the memory keeps being used up by the data acquisition process. I would suggest not using the DAQ assistant and to use the lower level DAQmx VIs.
    A good place to start would be Help -> Find Examples. Within Find Examples select Hardware Input and Output -> DAQmx -> Analog Measurements -> Voltage -> Acq&Graph Voltage Int Clk.vi. Go to the Block Diagram of the VI and change the "time out" to a much larger value. You can select two channels at the same time by using a comma (eg: Dev2/ai0, Dev2/ai1). Hope this helps.

Maybe you are looking for

  • 13" and 1440x900 WXGA+

    Hello, The idea about what I am going to ask came from a friend of mine who succesfully replaced his XGA screen for SXGA without any difficulty on his Asus laptop. I want to ask about the compatibility between displays – is there any standardized kin

  • 2nd Gen. iPod nano keeps disconnecting

    My 2nd Generation iPod Nano keeps disconnecting.  It was working fine until I tried to delete everything, which did not work, so I resorted to clicking "Restore".  The problem is that I am trying to sync podcasts only I keep getting a message:  "The

  • Works in SQL Workshop, not in LOV Definition

    I developed a query select distinct b.pointname display_value,a.pointnumber return_value from e_sub08@scadahst_xajardb a, analogpoint@scadahst_xajardb b where a.pointnumber = b.pointnumber in SQL Workshop and I get the dataset that I need when I run

  • Problem with Eraser tool in PSE7

    I have the PSE7 (using in Windows Vista) and have been using it for scrapbooking since early May09.  I've had no real problems with it up until yesterday when my eraser tool stopped working.  The magic eraser will still work, but the regular eraser w

  • Can I transfer music from ipod into itunes?

    I know I'm probably clutching at straws here but thought I'd give it a try and throw the question out there! Stupidly I let my system be rebooted with the original operating system discs without backing up my itunes!! Is there any chance of transferr