Configurin​g 6023E AI

Hi, I'm using a PCI 6023E board with LabWindows /CVI 6, DAQ 6.9.1 and MAX 2.1.3.15. I need to acquire uniploar signal, range 0/10V RSE.
The fonction (AI_Configure (1, 0, 1, 10, 1, 0) returns an invalidValueError, which not appears if I

The NI 6023E is a Low-cost E Series board which supports several bipolar ranges, but no unipolar ranges.  Therefore, if you provide a non-zero value to the 5th parameter of AI_Configure to set the polarity to unipolar, then an error will be returned.
You can use : (AI_Configure (1, 0, 1, 10, 0, 0) instead and acquire your signal with a range of -10 to 10 V.
You can still acquire a signal ranging from 0 V to 10 V in RSE mode, but the precision as good as it would be with a board which supports a unipolar range of 0 to 10 V.
I hope this answers all of your question.
Jason

Similar Messages

  • How can I create software start and stop trigger in LabView using 6023E series DAQ card? I don't want to use the external trigger.

    I am using 6023E DAQ card to collect the signals, such as AE, Force, Torque from the machine. I want to collect only some part of signal for example between start triger and stop trigger. I'd like to know how I can creat those triggers in LabView from one of the channels that I am acquiring at the same time. I found one or two library file that is only for start trigger. I know that this is availabe in some of DIAdem functions. Please let me know if you have done some example for this requirement.

    If you are wanting to create a software trigger based on an analog input voltage in LabVIEW, there are several options. One suggestion would be to compare the voltage values from one input channel to a number within a loop. If the input voltage crosses that threshold (is greater than the number), have a case statement that will acquire data from the other channels. This would simulate a software start trigger in LabVIEW.

  • Using the 6023E in LV 7.1, how can I get timing between two events to microsecond precision?

    I am a student and I have only been using LV for a few weeks so cut me some slack. I know similar questions have been on the forum 10 times but I am still having problems. I am sending a signal to a PIC microcontroller that controls the signal generation of a 40KHz acoustic ranging circuit. The output of the hardware goes high when an echo is detected. I need LV to start/restart a clock every time a signal is sent to the microcontroller and stop the clock when an echo is detected. It will use the time to computer the range. I am using the 6023E board and LV 7.1 and I know everything on my hardware is working correctly. I have a digital output going to the microcontroller and an analog input with a VI for detecting a voltage threshold listening for when an echo is received. I have looked through some other forum questions and examples and have come up with three different approaches. Originally I was trying to use the ms tick count VI but I've already read up on why that deos not work.
    The first VI posted below (ALIS2wavd) uses a timed loop. I can't seem to get the timed loop to run correctly with a 1 MHz clock. I am currently trying to use the DAQMx Create Timing Source.vi. Basically, the timed loop should run at 1 MHz and I would use the loop count to see how many times it runs before a signal is received. I also use the loop count to control how long I send the signal to the microcontroller, and how long to wait for an echo before starting over. In all of my VI's, the goal is to send a signal to the microcontroller for about .1ms and listen for an echo for 1-2ms.
    The second VI posted uses a VI for timing that I found on devzone. The timing VI that I found is also below. This really looks like a mess right now, sorry. You may want to look at the timing VI first. It uses counters to get a pre and post count and subtract to find the total time elapsed. I have the DAQmx read.vi's in the loop so that it will be subtracting the time of the first pulse from the time of the echo each iteration. At its closest point to working, this VI would return the same number for the range every time, meaning it was counting the same amount of time each iteration. I know the timing VI works accurately so I am guessing that there is a problem with my structure or the way I am using the DAQmx functions.
    In the last VI I am trying to use a counter to do something similar to what the timed loop VI should have been doing. I am setting up an egde count and controlling the transmit and detect time with this count. The value of the count when an echo is detected would be used to determine the elapsed time. Im not sure why this isn't working either.
    NOTE In all of these VIs there is an enable button and a PIC microcontroller frequency test. The VIs won't step into the case structure without both of these as true so you might want to get rid of them if you want to try to test anything. In trying to fix these VIs I may have made little changes that actually made the situation worse so keep that in mind too. Originally I was using just DAQ Assistant VIs to do the input and output but I switched the the DAQmx functions in the loops because I thought the assistant VIs might be causing the problem. Also, I noticed that there is a count events or time.vi on the traditional counter palette. I can't use the traditional functions at the same time as the DAQmx functions so I was wondering if there is an equivalent time counter VI for DAQmx that I just do not have?
    Attachments:
    ALIS2wavd.vi ‏627 KB

    timing VI
    Attachments:
    Time_with_Counters.vi ‏112 KB

  • Using a counter on PCI-6023E DAQ card

    Hi there,
    I'm about to use a 6023 card to measure a periodic pulse signal. I need to count the number of the pulses. But...I've heard that the counters on my card are unusable in that case. Is that correct? Do I have to chage my card? Or can I do it with 6023E?
    Thanks in advance;
    Radek

    Hi DAC,
    The counter on your 6023E board is the DAQ-STC counter/timer. This counter fully supports counting the number of pulses. Depending on your application development environment, if you search the shipping examples you will find examples that perform this function.
    This is so long as your digital pulses are 0-5 V or TTL compatible.
    Other applications supported by your counter are:
    Simple event counting
    Gated-event counting
    Single-period measurement
    Single pulse-width measurement
    Single pulse generation
    Single triggered pulse generation
    Retriggerable single pulse generation
    Continuous pulse-train generation
    Buffered event counting
    Buffered period measurement
    Buffered semi-period measurement
    Buffered pulse-width measurement
    Fre
    quency measurement
    Buffered frequency measurement
    Finite pulse-train generation
    Quadrature encoders
    Hope that helps. Have a good day.
    Ron
    Application Engineering
    National Instruments

  • Sound triggering on PCI-6023E

    I am using a PCI-6023E card. I wish to use a sound signal to trigger the data acquisition. Since it has only external digital triggering, my best guess is to run a sub-VI that reads the microphone channel and then sends a digital output to the external trigger channel. Any better suggestions? Any comments on the brain-drain effects of this on my buffered data (while waiting for the trigger event)?
    thanks

    Hello,
    Depending on the level of the sound signal that you will be receiving, doing an analog input and then in software determining if the level if your signal is high enough would be your best option if the sound signal you are receiving is not a TTL signal. But, as far as then generating a digital output that then triggers the analog input externally doesn't seem to be needed. If you are producing a software signal to trigger something anyway, you may as well just start the analog acquisition in software once your subvi has determined it is time instead of generating a digital output that then hardware triggers the acquisition.
    Regards,
    Steven B.
    National Instruments

  • PCI-6023E DAQ card maximum sampling frequency

    Hello
    I am using PCI-6023E DAQ card in pc-based ETS solution (and writing appilication in LabView 7.1 with RT module). The card has 200kS/s maximum sampling frequency, but it can be set for much higher sampling frequencies and the waveform acquired appears to be correct (i.e. i've tried setting it fo 1MS/s and sampling 400kHz sine, which is obviously above Nyquist frequency for 200kS/s card, but on spectral graph, main peak is at 400kHz). Is the card driver doing some kind of free/coherent sampling?
    Moreover, when sampling frequency is set to 200kS/s, the card seems to be doing same thing - i.e. for 200kS/s and sample block size of 200kS, graph should be updated once in a second, but it's updating slighty slower.
    I'd really appreciate if someone could explain me (or gave me a link to materials) what exactly is happening here? Is driver doing some background work, or maybe it is problem with network latency/unstability ? What is the impact of this effect on real-time aquisition?
    Thanks in advance
    Jan Kienig

    Since the fundemental is 4 times the nyquist, then what you are measuring is an alias of the fundemental. This works well as long as the fundemental is a repetitive signal. Sampling every other peak and every other node looks the same as sampling every peak and node. Tektronix exploited this on their 7S series sampling heads. Another use of this phenomena is the effective demodulation of high frequency signals as long as the bandwidth meets nyquist. As with your card, if the input amplifier supported it, I could extract modulation information from a 500 MHz signal so long as the the bandwith of that modulation did not exceed 100 kHz.
    Parker

  • Sample and hold inputs on 6023e card

    I am using a 6023E card and need to input 2 similiar channels into Labview and see the amplitude and phase differences. I have the program working for simulated inputs but the problem (according to NI) seems to be that the time delay in switching between channels causes the phase numbers to be wrong.
    Has anyone used a sample and hold vi or something like it that will allow both signals to be read with respect to the same reference? I realize that there are better cards that will do this but this is a student lab and we need 16 of them so cost is a big problem.
    Any suggestions would be appreciated.
    Thanks
    Dave

    There are two ways of correcting for the multiplexing delay of your board.
    - You can either use the method I suggested in your previous posting http://exchange.ni.com/servlet/Redirect?id=10455451 or
    - You can re-align your signals so they are "in phase". To do so use the Align Waveforms VIs located in your Analyze>>Waveform Conditioning palette. The output of these VIs will be your time signals resampled so they are aligned. Check-out the example called "Correct for MIO inter-channel delay (continuous).vi". But, as mentioned, this method is "overkill" in your case. I'd recommend you to use the first method which is both faster and more accurate.

  • Continuous DAQ with multiple Channels using 6023E

    I am trying to countinuously aquire data from 8 channels using a 6023E (without loosing data). For some reason it allways gives me error -10092. Meaning the card requires a certain time between each scan.
    If i set the scan rate to something that works, I loose
    data. Does anyone know how to do this right without loosing data whilst using double buffering or is this
    not possible?
    Thanks

    Ok I got somehow further.
    My problem was understanding the relationship between sampling rate and scanning rate.
    with E series the sampling rate is not the max sampling rate for a given channel but the overall sampling rate for A/D conversion. Further more
    in order to avoid error -10092 you have to set the
    scan rate to be slower than the sample rate:
    One way is scanrate=samplerate/(NumberofChannelsUsed+1)
    why this is necessary, i dont know?
    so if you get 2 channels rate divisor 1,2 yields
    SampleRate Channel1= scanrate/1
    SampleRate Channel1= scanrate/2
    ie. samplerate=100000 (10kHz)
    3 channelsUsed -> ScanRate=25000 (25kHz)
    divisors for each channel 1,2,1
    means
    channel1 samplerate=25 kHz
    channel2 samplerate=12,5 kHz
    channel3 samplerate=25 kHz
    w
    ith this i get a what looks like a seamless aquisition from Halfbuffer to Halfbuffer.
    But I am not sure if all i mentioned is correct?

  • Counter Input with Delayed counter Output with board 6023E

    HELLO
    Is possible with board 6023e have two counters working at same time in this case i need a counter to creat a delay and another one to read. If isn´t possible how i can have a delay in microseconds.

    Yes, each one of those boards have two STC counters you can use. Take a look at the User Manual of the boards for more information. When looking at the pin diagram for the boards, the counter pins are GPCTRx_.
    If you are using LabVIEW, CVI, VB or VC++, when you install NI-DAQ, it will install a lot of counter example programs which will show you how to program the counters.
    Brian

  • PCI-6023E & digital output

    Hello,
    I have a PCI-6023E and I want to generate a continous pulse train with a digital output line, and I need to know the maximum frequency for this pulse train that I can generate.
    Thanks a lot for your answer.
    Regards, Anacelia

    Hi Anacelia,
    You should not realy on this answer without verifying with NI first. So here goes.
    Page 347 of the catalog indicates the supported data transfer mode is "programed I/O". This indicates that each line state change must be initiated by an operation of the controlling software. Therefore, the upper frequency limit is determined by how often the code that sets or resets the line runs.
    So, the upper limit is determined by the software and the environment it is running in. If you are woring in Windows environment, and your machine is faster than about 400 Mhz then there are two factors to concider when answering your question. How fast does the code run, and how deterministic is it.
    If determinism is not an issue, you could resonably expect to get
    about one update every 10ms if the code is clean. This would give you 100 update per second or about 50Hz.
    If determinism is required, and you are not running in a Real Time environment, the above estimates should be backed off. Anything above 5-10Hz is going to be questionable.
    Like I said, verify what I have said with NI.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Labview doesn't recoginze the PCI-6023E card

    Hi there,
      I have labview 7 installed in a windows 7 32 bit system. I just have a PCI-6023E card installed and the windows device manager said that device is ready to use. I am trying to install the driver on the CD but NI just fail to recognize that card

    Hi dragondriver,
    AG@Amfax is right, this LabVIEW version is not supported in Windows 7. The oldest supported version is LabVIEW 2009 SP1. Please take a look to this compatibility chart.
    Once you have a compatible LabVIEW installed in the OS, you'll need a compatible driver version. Please refer to this link.
    Best,
    Carmen C.

  • Alternative to PCI-6023E + PCI-6602

    Hello,
    I am already using a system to acquire 16 analog inputs data (at 50Hz) and 100Hz PWM signals (counters) and to send 100Hz PWM signals to external devices. Because it deals with 12 concurrent counters I bought 2 x PCI-6602 counter boards on top of a PCI-6023E for the 16 analog inputs (through a SC2345 box). This works all well.
    I now have to build a simplified and portable solution that has to run on a laptop. I was thinking about a DAQ-6036E or DAQ-6024E (or even DAQ-6062E) and keep a SC2345 but do not know if I will get the same functionalities particularly for the PWM counting (in and out). I have to be able to count the high edge of the square signal at 100Hz while acquiring my analog inputs; also be able to generate those 100Hz signals. Will I be able to connect my counter in and counter out (one of each) to the SC2345 to do that?
    Thanks for your comments,
    Christophe

    Hello Christ0phe,
    Looking at your current specifications and hardware, the best suitable solution for a portable appication with >2 counters would be the Compact RIO Platform.
    As this is an FPGA based platform, you can implement (theoretically) as much counters for PWM generation and reading as you want.
    As you are an existing DAQ user, you will not be able to reuse your existing code.  The cRIO platform uses the NI-RIO driver which is using some different program logic than the NI-DAQmx driver.
    Why is the Compact RIO platform the best solution?
    Well, the cRIO chassis can be powered by a simply DC power supply. Depending which chassis this is between 9 and 30 VDC.
    The cRIO platform also has a dedicated controller inside which will run your LabVIEW code.  The PWM logic itself can run on the FPGA integrated in the cRIO chassis.
    So, the laptop will not be use for any calculation, only for monitoring and control of your application.
    If you want to stay with the NI DAQ plaform I see two other portable solutions:
    The first one is to make the swtich to the PXI platform.
    There is a small chassis (PXI-1033) which has an integrated MXI-interface. Using MXI technology, you can control a PXI chassis from another PC, including a laptop (using ExpressCard, not PCMCIA).
    For the PXI platform you can use identical or similar DAQ boards as you have now, reusing your existing LabVIEW code.
    Drawback of the PXI-1033 is that it can only be powered by 230VAC, you will have to provide a DC-to 230VAC converter yourself to be able to use it in the field.
    For your information. It's becoming harder and harder to find laptops with PCMCIA slots, ExpressCard is the successor available on most new laptops.
    But please have a look at following article concerning laptop compatibility: http://zone.ni.com/devzone/cda/tut/p/id/5035
    A last solution is to use the cDAQ plaform.
    Again a fully portable DAQ solution, but as it uses the same technology as the 'normal' DAQ boards, it only has 2 counters on board.
    As your PWM speeds are quite slow, it may although be possible to use this platform for multiple PWM signal generation and reading.  All will depend on the desired PWM accuracy (resolution) and if they all share the same signal period.
    It is possible to use the 2 on-board counters as a known sample clock to generate and read the PWM pulses using correlated DIO.
    Correlated DIO means that your digital input and output signals are hardware clocked (synchronized with other available clock source). On the cDAQ platform, your I/O modules must be placed in slot 1-4 of the cDAQ chassis to be able to use correlated DIO.  Possible I/O modules are in the C-series 940x range.
    Drawback: all your calculations have to be done on the fly in LabVIEW.  You will need to write code to generate an array
    of digital waveform data, then output it using hardware timed DIO
    synchronized to generate counter clock.  For the readout of the PWM signal, you will have to count (within the LV application) the number of tick (of pulses) of the sample clock during which the PWM signal was 'high' and calculate based on the known timing information the PWM on-time, period (and if needed duty cycle). 
    More info about cDAQ and Correlated DIO:
    NI-DAQmx: Correlated Digital I/O with NI CompactDAQ and LabVIEW
    Can I Use Different Sample Clocks for Correlated DI and DO?
    Some examples exist:
    CompactDAQ - Generating More Than 2 Pulse Trains
    NI-DAQmx: Digital Channel Pulse Width Modulation (PWM)
    This info should already help you make a selection.
    But please contact you local National Instruments office if you need more information.
    Best regards,
    Best regards,
    Joeri
    National Instruments
    Applications Engineering
    http://www.ni.com/ask
    Make our forums great:
    If you like the answer, don't forget to "Kudos!".
    "Accept the Solution" if your question is answered!

  • Can PCI-6023E support hardware Analog trigger

    I try to use the PCI-6023E to do the hardware analog triggering, but it gives me the Error-10403 while I test with the vi example, Aiacquires N Scans Analog Hardware Trig.vi. Is there any way for this board to do the hardware triggering?

    Jack,
    The PCI-6023E DAQ board only supports digital triggering. You can check all the features of this board in the Data Sheet and Specifications on the Catalog page (see link below)
    2002 Catalog - PCI-6023E
    http://sine.ni.com/apps/we/nioc.vp?cid=1063〈=US
    If you need to perform analog triggering, you have three options:
    1) You can simulate it by acquiring continuosly all the signals that you want to monitor including the one that acts as the analog trigger. Compare the value read from this last one with the boundary that is supposed to trigger the acquisition, and when the value read reaches this boundary, you can save or display the data from all your channels.
    2) You could implement an external circuit that will compare the analog trigger signa
    l with the boundary value, and when they coincide, will generate a digital pulse that you can use as a digital trigger. This option optimizes your CPU usage.
    You can find detail information on how to set up the digital trigger in Chapter 4>>Timing Connections of the User Manual linked below.
    6023E/6024E/6025E User Manual
    http://digital.ni.com/manuals.nsf/websearch/0C88F40FFE7F28CD862569AE00574AC1?OpenDocument&node=132100_US
    3) Finally, you could get one of our boards that supports analog triggering. The PCI-MIO-16E-4 board has similar specifications that the PCI-6023E, and it has some additional features as well. See link below for more information.
    2002 Catalog - PCI-MIO-16E-4
    http://sine.ni.com/apps/we/nioc.vp?lang=US&cid=10795
    Good luck with your application,
    Claudia Lorente
    Applications Engineer
    National Instruments

  • PCI 6023E Analog Input with DAQmx

    Hello everybody,
    I have some problems with a PCI 6023E Card. I`m using Lab View 7.1 on Windows 2000.
    When i start the MAX (Devices and.../NI-DAQmx - Devices.../PCI-6023E) and try to open the "Testpanel"
    i get the following message:
    Lab View: An exeption occurred within the external code
    called by a Call Library Node. This might have corrupted
    Lab Views memory. Save any work to a new location and
    restart Lab View.
    VI "BlockatContainerState2.vi" was stopped at node
    0xA10 of Sub VI "DAQmx

    sorry i had a problem thats the rest of the message
    Sub VI "DAQmx Assistant_DAQmx Create AI Channel (sub).vi"
    i get the same message when i try to use the DAQmx Assistant for
    analog Input measurements in Lab View.
    I hope you can help me
    best regards
    Chris

  • Problem when configure polarity on PCI-6023E

    I tried to set the polarity of an analog input channel with AI_configure. When I call AI_Configure with polarity Bipolar(default) anything works fine. but when I change the polarity to unipolar, the status code -10003 is returned, indicating that the value of my parameter is invalid. The PCI-6023E is software configurable, isn't it?
    Attachments:
    AI_configure.txt ‏1 KB

    Stephan;
    The 6023E board can only be configured as bipolar mode.
    Take a look at the board Users Manual to double check that information.
    Regards
    Filipe

Maybe you are looking for

  • Equium A300D - Parralled/Dual Boot OS's

    Hello. Yesterday I bought a A300D laptop and after setting it up I've found its rather slow. For example it will come up with "please wait" before showing you the log-in screen upon boot up. It takes around 2-4minuets at least just to let you log on.

  • Dock won't show

    I have my dock on the "hide" setting, and when i scroll to the bottom of the screen, it jumps up. However, occasionally (and I think it might be related to the uptime of the computer - it might be getting tired) it just won't come up. Suddenly, I wil

  • How do i check the available memory?

    I want to buy the Lion upgrade.  When I go into finder and check the Mac HD it shows i have 48GB available.  When I attempt to buy the Lion SW form the App Store it says I need at least 2 GB of memory to load. Any thoughts???

  • Split an inbound xml message in to multiple o/b idocs

    HI, We have a requirement to split an XML message(Source) into multiple idocs with different order nos and respective item details. We are working on XI 3.0 and we have a restriction not to use the BPM. Could you please let me know whether its possib

  • Adobe needs to develop an api for communicating with HTML Overlays & Indesign Objects

    I'm a front-end developer who has been assigned the task of developing one of our client's DPS every month. While I praise Adobe for saving a dying a industry and giving non-developers simple GUI controls, they need to develop an api for communicatin