Independent A/D sampling

I need to be able to sample up to 8 analog channels independently. For instance I need to start up a conversion in one VI and then in another VI start up another conversion on another channel. I thought maybe the PCI-6143 should be able to do that, but when I tried it with a simulated device I get the following error:
   Error -50103 occurred at DAQmx Read (Analog Wfm 1Chan NSamp).vi:2
   Possible reason(s):
   The specified resource is reserved.
   The operation could not be completed as specified.
If it can be done are there any examples that show how to do it?

Hi GS,
The PCI-6143 is a Simultaneous Sampling Multifunction DAQ, that is there is a dedicated A/D converter for each analog channel. However, you can't program more than one task for the same action, in this case analog read. This is why probably you are getting the 50103 error.
What you can do is create one task that can read all the channels, then you can make any processing/conversion on each channel separately.
I recommend checking the " Cont Acq&Graph Voltage - Write to data File (TDMS).vi"  under  Help>>Find examples in LabVIEW.
To specify a range of physical channels, use a colon between two channel numbers or two physical channel names(Dev0/ai0:4)
It is worth mentioning also that due to the architecture of the hardware, you must sample all channels at the same rate. So you cannot set up multiple acquisitions acquiring at different rates. The workaround is to sample all channels at the rate that the fastest channel requires. You can always ignore/average the extra samples on the slower channels.
Bueller

Similar Messages

  • Intermitent Pops:  Changing sample rate doesn't help

    I am capturing to an aluminum powerbook using FCE 2.0.4 from a Canon zr45. I am capturing many hours of footage. I've started noticing every minute or so a loud pop on the audio. It is one frame long and it maxes out the audio levels. Using the suggestion from Apple Help, I switched the audio capture from 48 KHz to 32 KHz (the latter being possibly the original rate of recording). I still have the same intermitent pops on the audio (independent of the sample rate in simple setup). Does anyone have any suggestions of what I might do to fix this problem? Thanks very much in advance!
    Al Powerbook   Mac OS X (10.4.6)  

    Thank you very much for responding to my query.
    I think your questions have helped, if not solve the problem, at least pinpoint it.
    Yes, the pop appears at the same place each time. Yes it is on the quicktime file. And yes, it turns out it is on the original tape! Its faint and not noticeable on the camcorder speaker so I never noticed it before, but when I listened to the tape carefully at the point where it shows up on the FCE file I can hear it faintly on the tape now. I'm guessing it is electronic in nature, as the camcorder was tripod mounted always and the pop lasts for one frame. At least it wasn't a FCE issue. There might well be a way to automatically filter this using an audio filter.
    Thanks again!

  • LabVIEW pauses during acquisition

    To avoid burying the lead, I'm going to state the problem I'm having straight off. The program I'm written pauses exactly every 10 seconds while running, always on a time where the seconds are around 3.6 (see below, as low as 3.4 and as high as 3.8). the pause is very short, easy to miss. I only noticed it because we recorded over the pause a few times and the data columns got swapped. 
    The timing of the pause appears to be independant of the sample rate. I've gone as high as 200k and was able to repeat it as low as 50k. Below 50k I cannot reproduce the error reliably. Once the error does occur it happens exactly every 10 seconds (down to the millisecond). For example, on one run I get the error at 11:06:13.681, it will occur again at 11:06:23.681, at xxxx:33.681, xxxx:43.681, etc...
    Program explanation: Currently the software acquires data from some 9 sensors at 100 kHz, 3 sensors at 1000 Hz, controls 4 relays, and outputs a TTL signal on demand. Initially the software just monitors the sensors and writes the data to a plot. When I hit the "fire" button the software shuts of the plots and records the data to several TTL files, one for each rate. I had some problems early on with errors when trying to plot data at the same time as I was recording it. In my research on this timing issue I believe it is being caused by having the "write to measurement file" in the while loop. Not really certain of how to pull them out and stream the data to the file yet, but that's next on my list. Anyway, the program still has some evolving to do as the test program moves forward. 
    Initially it was written using the "DAQ assistants." Again, in my research I learned that I really want to use the DAQmx functionality. I went ahead and swapped most of them over to DAQmx. As of this writing the things that are active while I'm not recording (have not hit the fire button) do not have any DAQ assistants. I'll be changing the assistants under the lower case structure to DAQmx in the near future, I'm going to figure out how to move it outside the while loop first while I know it works.
    Does the software work at this point? Yes, it is currently being used and recording data in a satisfactory manner. However, I know that I have to move forward with it and create additional functionality, possibly record at higher speeds, so I want to resolve these bugs.
    Possible causes:
    1) Buffer overun. Perhaps increasing the buffer size will solve the problem.
    2) PC Memory. I know win7 is a memory hog. The laptop only has 6 GB of ram, all it has on it is labview and office. 
    3) The DAQ assistants under the case structure are causing problems? Could it also be that I originally did this with DAQ assistants and swapped them to DAQmx with the right-click "Convert to DAQmx?"
    4) I'm plotting an excessive number of points on the chart and that's causing the issue, maybe a redraw issue? 
    I'm using a cDAQ-9188 with 3 9222, a 9221, two 9481s, and a 9402. and running LabVIEW on an Inspiron N5110 with a core I7 and 6 GB of ram and 64 bit windows 7.
    Attachments:
    DAQ_R6.zip ‏211 KB

    Thanks for the response. You make a number of suggestions that I will incorporate into my next revisions. Let me add a bit of detail that I didn't think about on the first post.
    The reason I don't append to the file is because I only write one file for each event. LabVIEW is stopped completely between each event while the hardware is reset/moved and a new filename consistent with the test setup naming scheme is input. 
    Channels swapping, sorry, I should have explained that. Each of the 9 high speed sensors goes into its own column in the resulting file. On occasion the columns get swapped around, for example, column 7 might be in the column 5 position, with 5 pushed to 6, 6 pushed to 7, etc... The way the sensors are arranged it would be physically impossible for the measurements to take place in the recorded order. We duplicated the same setup multiple times to verify the problem and duplicate the error. That's when I noticed that pause.
    Good tip on the producer/consumer pattern, that is the way I will proceed. However, I believe the pause bug is independant of the file access and creation. When I just run the VI without hitting "fire" the files are not created. They are only created when I hit the fire button and the case structure turns from false to true. In fact, I went ahead and deleted all the content in the "true" field of that case structure. This took out 100% of the DAQ assistants and left me with only the DAQmx components (attached). The pause bug was still present.
    I don't know if I have access to the 2012/2013 project templates. I'll check into that. I'm not sure that I want to do continuous logging though, the event I'm measuring is only about 25 ms and it happens sometime between 0 and 2 seconds after I initiate the firing sequence, I have to record about 2 seconds of data to be sure to get it. Once the event occurs the hardware has to be reset and I like to stop the software as well so I get a new filename associated with the test naming scheme.
    What about that DAQmx write on the right side, it controls the 9481 relays. Is it sending data to the relays on every iteration of the while loop? Could that be a component of the problem?
    Again, thank you for the response. Your suggestions give me a number of directions to look in for my future iterations. 
    Attachments:
    DAQ_R6_1-2-2014 - no DAQassistant.vi ‏61 KB

  • Excessive noise with PCI6143 and hi impedance input

    I have a PCI6143 installed in a Windows XP computer for evaluation right now. The test I'm evaluating for is reading up to 5 DC signals from battery cells at up to 1Ks/s. For calibration and verification purposes I need to use a voltage calibrator on the inputs. When I read the cells there is no problems. When I use a calibrator I get a significant noise in the signal. It only affects the channel the calibrator is hooked up to and not the rest and it's only at sample rates of 100s/s or higher. The noise is not AC. The pattern is usually 10 samples at the right voltage and 5 at 0.5V less. It doesn't seem to change this pattern for sample rates up to 100ks/s.
    Is there a problem with the input impedance mismatch here? I've used different calibrators and power supplies with the same results. I've checked their outputs on desktop DAQ devices at 100ks/s and there is no appreciable noise.
    Any thoughts or possible solutions?
    Thanks

    Otis,
    By 'calibrator' I mean a precision voltage source. Since we can't use the actual battery cells for the test run we normally use a source like this to check the voltage readings each day prior to testing. The output impedance of the calibrator is <10 milliohms, which is pretty close to what the cells are. When I use another power supply to check the voltages with a higher output impedance (1kohms) I still get the problem. The PCI-6143 is used to measure the voltages of the cells during the test. It measures the cells perfectly but we need to verify that once per day with a precision source during a test run (customer requirement).
    Yes the cycle is pretty much independent of the sample speed above 100 samples per second. It always seems to be 10 samples correct with 5 samples low. Below 100 S/s it doesn't seem to be there at all.
    It happens on any channel the calibrator is attached to. I have tried it alone on each channel and simultaneously with as many as 6 cells each on various channels and it still happens.
    Another thing is that if I do the same test using a benchtop DAQ (i.e. Nicolet Vision Xe) it doesn't happen. We are trying to move toward simpler test setups and having a card in the computer is easier than hauling around an external device with its keyboard and mouse and something to set it on along with all the data collection headaches. Plus the internal card is much cheaper and easier to use for most of our testing.
    Thanks,
    Jack

  • Different between Independent Multiple Sample, and Dependent

    Hi Craig and QM gurus,
    What is the different between Independent Multiple Sample, and Dependent Multiple Sample?
    I read the SAP library and am still confusing.
    thanks

    hi
    In very simple terms...
    In case when you are using a sampling scheme .....You will find the acceptence Number & rejection Number(C1 &D1)
    When after sampling & maintaining C1 & D1 still you can not reach to a conclustion then you can also maintain next level C2 & D2
    Dependent multiple samepling : C2 & d2 are depend upon C1 & D1.
    Ex:
    C1: 1   & D1:3
    you have found 2 sample rejecet..you can not reach to conclution then maintain C2 & D2 for next level of sampling.
    Independent:when first level is not depend upon second level.
    I hope this is clear.
    Regards
    Sujit

  • Multiple Dependent and Independent Samples

    Hi,
    Can anybody explain about Multiple Dependent Samples and Multiple Independent Samples with proper Examples?
    Regards,
    Raj

    dear Raj
    Multiple Dependant Samples,
    Suppose you have sampling scheme in which the lot size is 10, sample size is 5. acceptance number is 1 and rejection number 4.
    Now during RR you found that 2 values are ok and 3 values are not ok. So the system is in confusion because it requires 4 to reject. So system proposes you another sampling plan by which you can further do testing and record the results. The defects get cumulated and is then valuated. you can do this 7 times. For this you need to maintain c1,d1,c2,d2 ,c3,d3 for the same sample size
    Hope this helps
    Regards
    gajesh

  • Repeated and lost samples with NI-CAN

    I am using LabVIEW 2009 SP1 with NI-CAN 2.7 and a series 2 CAN card on a PXI system running LabVIEW RT.
    I sync'ed my DAQmx AI measurement with a NI-CAN task using the "CAN Sync Start with DAQmx". The Start is now sync'ed.
    As for the samples, I created a test environment: A microcontroller sends a signal via CAN. The signal contains a value that is incremented by 1 with each new CAN message. My PXI measurement programm samples these CAN signal values alongside with DAQmx (5 KHz sample rate, reading 1000 CAN and DAQmx AI values in a while loop). The plot below shows, that sometimes the current value is not sampled, instead the last value is resampled up to 16 times, i. e. the value does stay the same as the last value where it should increment. I made sure, that the source of this effect is not the microcontroller using a third party CAN logging tool.
    The picture below shows the CAN init procedure:
    Does anyone know why I get these repeated CAN signal values?

    I ran a new measurement for approx. 2 minutes and got 2 independent measurement data files:
    the attached VI from above was slightly changed, so that the check loop now saves all received CAN data to a file
    I started Vector CANalyzer on a separate Laptop that is also connected to the CAN wire, but only listening and logging in passive mode (i. e. no ACK is send so that there is no interference with the ongoing communication between PXI and the sending microcontroller)
    I attached both measurement files in CSV format. You will see, that the timestamp dt from CANalyzer does not show any message holes. As for the PXI, I see ~5x repeating values.
    Note: The CANalyzer timestamps are given in 10 us units. The PXI data just contains the incremented signal without timestamps.
    Attachments:
    testcan_measurement_data.zip ‏4167 KB

  • How to acquire data from 2 chs of the same DAQ card at different sampling rate

    I am using single DAQ card (either 6013 or 6014) in my system i want to acquire data from 2 (or more) channels with following requirements
    1. sampling rate of each channel should be independant of each other (say one is 20 Hz and other is 15 kHz)
    2. data from all the channels should be acquired simultaneously.
    3. coding must be done using DAQmx VIs
    I have tried out following things
    1. I created separate task for each channel: i found out that two tasks can not run simultaneously even though the channels are different
    2. I tried out single task with two channels included in it. and i used 'channels to Read' property to determine from which ch. i want to acquire data: this method works fine if the sampling rates are same. but if i change the sampling rate of one channel it gets reflected in other channels as well.
    can somebody help me out to solve this problem.
    i will appreciate if somebody can post the sample code as my deadline is approaching
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

    Hi Dennis Knutson
    Thanks for your suggestion.
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

  • I have a Flash Sample to rotate images and text but I not find a way to display special characters

    Hello everyone.
    I bought a very nice Flash application that rotate images, and text of any color and size. It use an XML input file.
    I've posted here, a complete copy, so any of you can download, view and use it freely.
    I would appreciate if any of you know how to do, so that the text displayed, including the characters I use in my language (Spanish), such as á, é, í, ó, ú, ñ, and other special characters.
    In fact, I could not find a way to do it, because I'm not expert Flash, and less in ActionScript.
    If any of you would help me on that, I thank you implement the appropriate adjustments and compressed into a. zip file, and let me know where to download it, or if you prefer you can send it to my email: [email protected]
    After all compressed in .zip format is a very small file: 430K.
    Click here to download the complete sample.
    Thanks.
    =====================================
    Translated using http://translate.google.es
    =====================================

    Hello Rinus,
    If I understood your last post correctly, then problem 2 is resolved, right?
    Regarding problem 3:
    I'm not asking you to share exact VIs.
    I just want to see a very simple VI that explains the concept of what you're trying to do, what should happen (this can be in words that refer to the front panel elements) and what you've tried.
    The terminology you're using isn't clear to me without an extra explanation.
    This could even be only a Front Panel with a few buttons on where you just describe what should happen with specific controls/indicators.
    Based on the first post it is not clear to me what you mean with:
    - A "button element":
      Are you talking about a control, an indicator, a cluster that contains multiple control?
    - The structure:
      Is this an event structure, case structure, for loop, ...?
    Is it seems like you want to programmatically control Front Panel objects, which on itself is no problem at all independent of how many objects you want to control.
    Please share with me simple example of what goes wrong and explain which things should happen on that specific Front Panel.
    This will allow me to help you and also allow me to guide you along the right path.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Why do I have a rate-independent delay in my PID Loop?

    I am preparing to use an ETS Realtime target to do some fast PID loops. I have a 3 GHz P4 machine with a PCI-6259 DAQ card, ruuning LabVIEW 7.1RT with NI-DAQ 7.3 for the PCI-6259 board. For starters I decided to just do some speed tests, with the AO putting out exactly the value measured by the AI, with no PID calculations. I would expect the output to be an exact duplicate of the input, but jagged and with a small delay of approximately 1 loop time. What I see on the scope is that there is a fixed 0.1 msec delay between the input and output that is independent of the loop rate. I can run the loop up to 100 kHz rate. With this fast loop rate the output is a faithful replication of the input, but shifted by 0.1 msec. This delay will cause big problems in a real PID loop, since this is several sample periods. At first I thought that there was a buffer that was delaying the samples, but if that were the case the delay would be proportional to the sampling time and not independent of it. The delay is not in the loop itself, which can operate up to 10 times faster than the observed delay. I have attached the vi and configuration sub-vis. Please tell me what I am overlooking here.
    Thanks,
    Rich
    Attachments:
    Speed_test.zip ‏51 KB

    I am looking to run a very similar application with the same card, a similar computer, and do PID control. I'm amazed you were able to get a loop rate of 100 kHz even if it wasn't doing anything real! NI quotes 1 kHz max loop rates in most of its documentation, though I suspect most of it is quite old. I'm interested in what rate you were finally able to achieve with the PID control. I would also be interested in seeing the PID/DAQ communication part of your could if you are able/willing to share it. I was hoping to get 4-5 kHz with at least one channel and hopefully more.
    Thanks,
    Aaron

  • Error while running C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\samples\explorer\build.bat

    Hello
    I am a flex beginner, when i run the  C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\samples\explorer\build.bat file the following error is displayed
    Loading Configuration file C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\flex-config.xml
    C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\samples\explorer\loaderPanel.mxml
    Error :-1
    Please help me to run the bat file, as it will help me to learn flex independently.
    error message is attached as bmp.
    Thanks in advance.

    Hi,
    Take a look at this report: https://bugs.adobe.com/jira/browse/FB-11626 It might be of help.
    With best regards,
    Barna Biro
    Blog: http://blog.wisebisoft.com

  • ITunes no longer plays 3rd-party site music samples (eMusic, etc)

    After downloading the latest iTunes upgrade, it no longer plays music samples from sites like eMusic or any independent vendors. Never had a problem before. I would click on a sample icon and the clip would play automatically in iTunes. It's still set as my default internet player, but sound clips are saved to my desktop instead of opening in iTunes now. Any ideas?

    There has to be a solution. Isn't anyone else having this problem? I would think it's a big one, because there has to be others like me who only download music from eMusic or third-party sites, never iTunes which is way over-priced. If this problem isn't fixed, adios iTunes.

  • How to implement an independent static stub client ? Please, help

    Hi everybody!
    I'm using the jwsdp1.2 and i got the static stub tutorial client to test my webservice. It works fine! However, i tried to compile the client code separately and it didn't worked. The jvm can't find the webservice class. So, the questions are:
    - How to implement an independent static stub whithout the ant help?
    - How can the client get the endpoint to create the proxy?
    - Must I use any javax.xml.rpc interface (call or service maybe) to do the job?
    - Could anybody show me some sample code?
    Well, that's it. I'm waiting for some answer. Please, help me.
    Tks in advance,
    Rodrigo.

    Can you explain what you mean by "independent static stub" ?
    JWSDP Tutorial explains all the steps required to create a static stubs client and invoke the service. In addition, https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html#Scenario2 explains the detailed steps to achieve the same from command line.
    Hope that helps.
    Post your JAX-RPC related questions to [email protected] for a quicker resolution.
    Send an email to [email protected] to subscribe to the alias.
    Send an mail to [email protected] for a complete list of help commands.
    -Arun

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

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

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

  • Connecting SAP with an independent SQL database

    Dear all,
    I need to connect SAP with an independent MSSQL database.
    My requirement is to transfer a set of records from my Ztable to a table in SQL database.
    I have maintained the settings in DBCO transaction. I maintained DBMS as 'MSS' in DBCO.
    send some sample code of how to establish the connection. Is it possible to write data in to SQL database.
    How to edit the file tnsnames.ora in application server directories. I heard that for connecting to an oracle database we need to edit this , is it necessary to edit this tnsnames.ora even for connecting with SQL database?
    Thanks in advance.
    Lakshman

    This is not possible.
    My suggestion is that you create shell scripts on the unix side that copy the data to the other database.
    ARD runs it's own private copy of PostGgreSQL inside the package so it won't interfer with any other SQL databases on the network or even on the machine.

Maybe you are looking for

  • How to retrieve a SQL query (in String format) from a PreparedStatement

    Hello all, I am in the process of unit testing an application accessing a Oracle 9i 9.2 RDBMS server with JDBC. My query is: As I have access to PreparedStatement and CallableStatement Java objets but not to the source queries which help create those

  • Install of Photoshop Elements 9 on Win7 x64 fails

    Hi @all, we want to install Photoshop Elements 9 win german Volume license on Win7x64 Enterprise silently on our clients. During testing, the following thing occurs: Install ends clean, seee the  eventlog entries: (I´m sorry for the german language)

  • SLD Business System Mapping Problem

    Hi Experts, i am facing a problem in Quality Environment, we have imported the all ir and id objects in to QA , my problem is the business system showing on integration directory ECCSystem (QA1CLNT400) but  actual Business System want to show on inte

  • Nedd Bapi or FM for LT0G transaction

    Hi all.   Could you pls let me know the BAPI or FM for LT0G transaction. If any one has done BDC for the same pls suggest with ur inputs. I want to choose items & press the return to stock button. Thanks in Advance.

  • Question PSE9 backup - unexpected error

    Following a recent Windows reinstall, several programs like PSE 9 were also lost. This was reinstalled with the help from Adobe customer support. My Album was successfully retrieved from my Backup. However trying a new Full backup I've had about 5 at