Counter using PCI-6602 for multi output

Hi guys,
currently I tried to control a linearmotor using PCI-6052E and PCI-6602.
The questions is, how to use PCI-6602 to be a counter which will be converted to several output (multioutput):
(1) converted to position >> 1count = ...[mm] --> position measurement
(2) converted to voltage >> 1count = ...[mV] or [V] --> voltage measurement
(3) converted to current >> 1count = ...[mA] or [A] --> current measurement
(4) converted to velocity >> 1count = ...[mm/s] --> velocity measurement
(5) converted to acceleration >> 1count = ...[mm/s^2] --> acceleration measurement
(6) converted to force >> 1count = ...[N] or [kg.mm/s^2] --> force/load measurement
(7) converted to frequency >> 1count=...[Hz] --> frequency measurement
(i) Please assist me how to connect the driver's encoder (Ch. A A/ B B/ Z Z/) with PCI-6602, so I can get all informations above (7 measurements). What/which port of PCI-6602 connect to where from the driver.
(ii) Please assist me how to connect the feedback signal to the PC. What/which port of PCI-6602 connect to PC.
(iii) How to test those 7 measurements above using Measuremant and Automation Explorer (MAX) ver.4.4.1?
Thank you for your kindly help and assistance.
Best wishes,
hendro

Dear Jochen,
(1) Principally, I'd like to use PCI-6602 to be a motion encoder also be a counter (Is it possible? Due to the manual, it is possible). I expect to have all information, such as position, time, velocity, etc. from that motion encoder (or at least the position and time). It is also expected of using PCI-6602 to do all measurements that I mentioned before . My meaning is, after having a signal from the counter, that 'count' will be converted to desire units under other programs. So, in this case, PCI-6602 is only used to get the 'count'.
Simplified, the voltage command will send to the system (linear motor) through PCI-6052E (-10V to 10V). The actual position or other actual information will be catched (read) by using PCI-6602 (as a motion encoder, also as a counter). Then, this actual position will be used as a feedback, that will be compared to desired position.
Is that also possible to use PCI-6602 be a motion controller + a counter + a frequency measurement in a same time parallely?
I don't decide yet (I don't know) which acquisition rate will be needed/required, higher is better.
(2) I'd like to apply an adaptive robust controller (yes, it is a closed loop system) under matlab with their feature called Real-Time-Workshop instead of using LV.
(3) Power drive for the linear system will be driven by AC servo drive.
Thanks for your help before,
Warmly regards,
hendro

Similar Messages

  • How to use counter using PCI 6259

    Hello, users,
    I have a PCI 6259 board and use Labview 7.1.
    I'd like to repetitively count the photon signals at 10ms integration time. I want cumulative counts in every 1 sec (1000ms) (or 1 min (60000ms)) And I want to save counts into txt.file which is open in excel program.
    I am a beginner to use counter using PCI 6259 board.
    1. Could you explain default NI-DAQmx counter terminals, i.e., CTR 0 SRC, CTR 0 GATE, CTR 0 AUX, and CTR 0 OUT?
    2. How do I use them or how can I connect to count TTL pulse using PCI 6259?
    3. As I mention my purpose above, which example is the first step to start working my purpose?
    4. If you know good example, could you tell me about that?
    5. If anyone has labview example which is similar to my aim, could you give me some tips or your examples?
    Any hint, comment or advice would be appreciated.
    Thank you so much for your response.
    Leek2

    I have never used the PCI 6259 but have used counters many times with labview, the coding should be the same independent of the board.  What you want to do is finite buffered edge counting using a internal clock.  The best way to do this is to look at the examples programs and use the express vi to get started, then you can use this code to customize your program exactly as you need.
    To address your questions:
    1. CTR0 means "counter 0" the name of the physical resource sometimes listed at GPCTR0.  Each counter has 4 connections to the outside world:
    source "src"(for counting input TTL signals),
    gate (for synchronizing to external clocks and edges),
    out (for pulse-train out operations)
    and aux (specialty operations such as up/down counting and encoding)
    2.For event counting with internal clocking you will only use the src this is the input from the signal you wish to count (ie PMT discriminator for photon counting).
    3,4,5. Look at the count edge examples, there isn't one that does exactly what you want but I have done this with a 6602 (it has e counters) where I use one set of counters to set up a finite pulse train in your case 1000Hz with 1000 pulses, and another counter to edge count on an external pulse, with the source of this pulse routed from the out of the other counter.  Then you can start the task and read when 1000 samples are in the buffer (about 1 second later).
    Hope this helps,
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Triggering the reading of counter totals (PCI 6602)

    Hi,
    thanks for reading these lines,
    for a special application I need to read the totals of multiple counters
    simoltanouesly. The inputs of the counters are connected to quadrature encoders.
    Is there a way to reroute the gate to another input pin?
    Thanks for taking the time to support me.
    live long and prosper
    Michael

    Dear Jochen,
    (1) Principally, I'd like to use PCI-6602 to be a motion encoder also be a counter (Is it possible? Due to the manual, it is possible). I expect to have all information, such as position, time, velocity, etc. from that motion encoder (or at least the position and time). It is also expected of using PCI-6602 to do all measurements that I mentioned before . My meaning is, after having a signal from the counter, that 'count' will be converted to desire units under other programs. So, in this case, PCI-6602 is only used to get the 'count'.
    Simplified, the voltage command will send to the system (linear motor) through PCI-6052E (-10V to 10V). The actual position or other actual information will be catched (read) by using PCI-6602 (as a motion encoder, also as a counter). Then, this actual position will be used as a feedback, that will be compared to desired position.
    Is that also possible to use PCI-6602 be a motion controller + a counter + a frequency measurement in a same time parallely?
    I don't decide yet (I don't know) which acquisition rate will be needed/required, higher is better.
    (2) I'd like to apply an adaptive robust controller (yes, it is a closed loop system) under matlab with their feature called Real-Time-Workshop instead of using LV.
    (3) Power drive for the linear system will be driven by AC servo drive.
    Thanks for your help before,
    Warmly regards,
    hendro

  • Use PCI-6602 to produce synchronous different TTL singals

    I am using PCI-6602,if I want to use two line to producing two different TTL singals,and the two TTL singals must write to lines synchronously.How can I get it,Thank you !!

    Hi,
    You can generate two pulse trains, one on each counter. If this is what you need, you can do that easly with pulse generation VIs - you can look at the LabVIEW shipping examples - in particular, look at Generate Pulse Train (NI-TIO).vi
    Regards,
    RamziH.

  • How to use a dictionary for multi languages when displaying mess

    how to use a dictionary for multi languages when displaying messages??

    1st you have to define new messages in the dictionary:-
    1.     We have to open the application.
    2.     Functional administrator responsibility.
    3.     Core services.
    4.     Messages.
    •     Create message button.
    •     Now fill the name of the message that we want to call it from our code in the Code field.
    •     Fill the application name with short name of the application.
    •     Choose the language.
    •     Set the text you want to be displayed.
    2nd, Now in the CO in the in the process form request you will code throw new OAException ("application short name","Code").
    Now run and see the result.
    3rd we want to use Arabic messages, use the same one you have created for saving as an example but you choose duplicate and set the language Arabic.
    •     Run the page.
    •     Choose preferences.
    •     Current Session language = Arabic.
    Now you can see the result.

  • Count digital events on a Counter with pci-6602 with callback on CVI

    Hi,
    I'm using a PCI-6602 card with CVI 8.5 and I need to trig on event.
    On every pulse I received, I need to do some actions like increasing a counter, send a message on Rs232 etc.. I don't want to do any loop checking that the counter value has changed. I would like to use a callback to execute this code only on the edge or counter value event.
    My problem is that I don't know which function can do this. Is there any way to get an event on a pci-6602? 
     Thanks 
    James 
    Solved!
    Go to Solution.

    Hello.
    It's completely possible to create a callback that will allow you to do what you want when a edge will occur on an external signal you define.
    To do this, you can for exemple create a counting edges task that will use one of the 6602 counters,and the set your external signal to be the source of your sample clock.You'll then be able to register a callback with the function DAQmxRegisterSignalEvent, and your callback will be called each time an edge will occur on your specified sample clock source.
    Here's 2 links that explain the events in DAQmx and how to handle them in CVI. The example ReadDigChan-ChangeDetectionEvent.pr that ships with DAQmx examples (Hardware Input and Output<<DAQmx<<Digital measurements) can be very useful to understand how to do. This example creates a signal event callback to detect change detection for digital inputs.
    Regards.

  • Resistance measurement using PCI-6602

    Hello,
    I would like to measure the resistance between 2 points using my PCI-6602 counter/timer card while using LabVIEW. The resistance values to be measured will vary between 10 ohms and 1000 ohms approximately.
    I found three examples in LabVIEW example finder for measuring resistance but am not sure which one to use. Moreover, which pins of the PCI-6602 would be used for measuring the resistance?
    Please advise me how I could use this PCI-6602 card for measuring resistance values and what the pin configuration would be.
    Thank you,
    Viktoriya.

    As you have written, the PCI-6602 is a counter/timer board. It has no analog input and is not suited for analog measurements !

  • Using iDrum as a multi-output instrument

    Hi all-
    Maybe someone else uses iDrum as a drum sequencer/scratch drum instrument like me.
    I can't seem to instantiate iDrum as a multi output instrument...only stereo.
    I know how to do this well in PT, but it has eluded me so far in L8.
    I am:
    Creating a new instrument track, selectin the i/o as iDrum and there is no multi output option as there is in ultrabeat.
    It is probably something simple...usually is
    any help appreciated greatly!!

    AFAIK, there is no multi-output support for iDrum with Logic 8, although you could select a multi-channel option in LP7.
    What you can do is bounce pattern/song to separate .aiff files from the iDrum menu and reimport them on to audio tracks.

  • Use PCI-6602 Counters from different threads

    Hello,
    I have read that DaqMX is thread safe. So is it possible to use several Counters form the PCI-6602 form different threads at the same time?
    Thanks
    farmer

    Hi Farmer,
    the DAQ driver is thread safe, that means, that the driver manages the
    data flow to your application and no data gets lost in case of
    simultaneously tasks in an multichannel acquisition for example. So the
    mechanism of how to deploy the data from different channels in your
    application threads will be managed by the driver.
    It's possible to create parallel threads where an data aquisition with
    different channels is running. The new DAQmx driver is a multithreaded
    driver, it improves the performance and programming simultaneously is
    much easier.
    Have a look on the following link for further information to that,
    http://digital.ni.com/public.nsf/allkb/E1C8492854855FA98625689E0072E832?OpenDocument
    regards,
    Nikolai

  • How to use airplay speakers in multi-output device without crackling audio?

    Hi,
    I would like to mirror the audio output from my mac mini to the built-in output and an airplay speaker.
    Therefore I added a Multi-Output Device containing  the Built-in- and Airplay output, as soon as I activate the airplay speaker the sound is mirrored but unfortunately always with a crackling sound coming of the speakers set as "slave Device"... only the Device set as "Master Device" has clear sound, doesn't matter if it's the airplay speaker or the speaker (or headphone) directly connected to the built-in output.
    I've tested this with a mac mini and an mac book air as audio source, same problem. Both were running Mac OS V. 10.9.2.
    Does anyone have an idea what I'm doing wrong?
    Greets
    Chris

    I'm using a 2011 Macbook Pro running Mavericks and current Apple TV (MD199HK/A 3rd generation) when trying to output audio to both Apple TV and built-in output simultaneously I suffer crackling and popping. I have this issue once I use Audio MIDI Setup (under utilities) to create a Multi-Output Devise. Once I use this multi-output devise made up of Apple TV and Built-In Output to get my music to both output devises at once BUT I get crackling sound on either Spotify or iTunes.
    I've worked around this issue by using AirParrot. I select Apple TV in AirParrot with Audio enabled. The Apple TV then takes all audio output, then I select the 'Multi-Output Devise created in 'Audio MIDI Setup' and I have playback through Apple TV and Built-In Output without any crackling or popping.
    Only minor outstanding issue is that whatever scenario I then run Audio Midi Setup in terms of setting various devises as Master Clock and resampling of sub devise I can't perfect the sync between Apple TV audio output and my local Macbook Pro, but close enough with the slightest hint of echo. Plenty of forums discussing Word Clock sync which is out of my league. Un-ticking drift correction on the 'AirParrot' audio output has them close enough, depends on how easily you can hear your apple TV output from the room where your Macbook Pro is and vice versa.

  • Logic 10.0.2 Bypass Bug For Multi Output Instruments

    It appears the 10.0.2 update causes Logic to crash when bypassing multi-output Instruments.
    -SD

    The current 10.0.3 release appears to have corrected this issue.  Thanks Logic team for the fast fix.
    -SD

  • Distortion using USB port for audio output

    I did some research in the Mac Mini community regarding the problem I'm experiencing but most of the posts were several years old so I thought I would start a new thread.
    I am using one of the USB ports on my 2011 Mac Mini (2.3GHz, i5) to feed a High Resolution Technologies Streamer II USB DAC which then connects to my audio systems integrated amplifier. The issue I'm experiencing is that I am getting distortion when I first open iTunes and start a music track playing. I can hear the music but it is overlayed with this static like distortion. It seems to happen specifically when I first wake the computer from sleep and open iTunes and try to play a track. If I close and reopen iTunes and start a track playing again the distorion usually goes away and all tracks after the initial distortion play fine. I've done troubleshooting with regards to the HRT USB DAC and made sure the Streamer II is operating on its own USB Bus and I've tried a powered USB Hub to feed only the Streamer II but the distortion continues. So aside from the obvious hardware malfunction possibilities I was wondering if anyone else has experienced this problem. Thank you,

    well i dont have the cable yet i just was wondering if that would work. Yes it has bluetooth but i was told you cant use the bluetooth for a modem. Dont know why the phone has the option. How would i set up that option?

  • Ramping a pulse signal using PCI-6602 card

    I'm controlling a stepper motor and need a continuous pulse output with variable frequency. I need to accelerate and decelerate teh motor (It can't start immediately at a high frequency but needs to be ramped up to it). I can't have any hiccups in the signal or the motor can stall. It seemed I had my own ramp program written (which gradually increased the frequency value sent to the counter) to solve this problem, but when I switched to Office2000 I started getting hiccups in my signal. I also have a PCI 1200 card and could use A/O but I think using the counter signals would be better. If I'm wrong let me know. Once I have the motor up to speed I am reading in a pulse signal to analyze with FFT.
    thanks for y
    our help.

    A few thoughts & musings, hope some of them are useful:
    1. The sequence for setting a new frequency should be to first load up the new pulse specs (use 1 & 2, not 3 & 4), then issue the "switch cycle" command to 'Counter Control.vi' You can look at NI's example program called 'Pulse Width Modulator' to verify syntax.
    2. If your frequencies are low enough and your loop time is fast enough, you may be trying to update the pulse specs before the previous specs have completed a full cycle. This has traditionally been a no-no, though I'm not 100% sure that it remains one with the latest NI-DAQ drivers.
    3. No ideas about the possible interaction with MS Windows and/or Office 2000. Haven't used either.
    4. (My own latest installment in a multi-year running gripe at NI): Wh
    en oh when will we be granted the ability to perform buffered counter OUTPUT operations? Just as in the analog world, one can acquire a signal with AI and then reproduce it with AO, it would be REALLY REALLY handy in the counter world to measure with buffered semi-periods and then reproduce the same pulse train with a buffered output.

  • PCI Card for Analog output in the range of 10mv

    dear ni,
                    I want to know about the PCI card that can be generate analog output in the range of maximum 10mv. i  am going to use for caliberation of loadcell, strain gauges devices.
    could you tell me on which PCI card will support this type of application.
    Regards,
    Balaji DP

    Try:  http://www.ni.com/dataacquisition/
    These have analog output voltages < 10V:   http://sine.ni.com/nifn/cds/view/main/p/sn/n12:7604,n3:7853/lang/en/nid/1036/ap/daq
    You need something with a high bit count to get good resolution at 10 mV, such as the PCI-6010 which has a 16 bit D/A.   
    Here are the minimum voltage specs for the 6010:
    Minimum Voltage Range
    -0.2..0.2 V
          Range Accuracy
    283 µV
          Range Sensitivity
    6.4 µV
    Message Edited by vt92 on 11-18-2009 07:56 AM
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

  • Using Audio Sync for Multi-Cam Edits Premiere Pro CC

    Hello everyone - I wanted to share some issues I've come across while using Audio to sync multiple camera angles....
    For my music video shoot I have two cameras and an external recorder where I capture the audio and then edit in GarageBand or Adobe Audition. The problem I've discovered is that when I sync the clips using audio it will degrade the quality of my finalized audio clip.
    Basically, something is happening to the audio clip quality once Premiere completed the synchronization process. I've rendered the video, exported the video etc... But there is still audio quality degradation.
    I've compared this with Final Cut Pro X and the Audio in FCP X remains unchanged and is not altered in any way.
    Has anyone else experienced this issue?

    Update: I just happened happened to have a pair of ath m50s lying around.... put them on and I can see that in the multi cam sequence, I can hear only out of the left ear... once I drag and drop something to my timeline the audio's good again...
    Sorry for this question... operator???
    I shoot tech videos on YouTube and I edit my own videos, so I guess I am the operator & observer here...
    Am shooting a tutorial...
    Cam 1 - My Camcorder that shoots the phone
    Cam 2 - Actually a screen recorder that records the steps on screen & audio from webcam
    Audio - Blue Spark Digital recording to audacity
    Now if I merge Cam 1 & Audio or Cam 2 & Audio alls fine... I can check the audio meters and everythings the same as before
    But if I create a multicamera sequence then the audio output is about 20% lower (and no Premiere's not using the audio source from Cam1 or 2 here since they are too low and am 100% sure its not either of those)
    I guess am messing up something but am unable to identify what..
    Syncronize Point - Audio
    Track Channel - 1
    Sequence Preset - Automatic
    Audio Sequence Settings - Camera 1
    Audio Channels Preset - Automatic (or Mono since my Blue Spark records in mono)
    Camera Names - Enumerate Cameras
    Any Idea where am messing up?
    Ash
    Message was edited by: C4ETech

Maybe you are looking for

  • Flash paper not resizing in IE

    I am loading my flashpaper in a movie clip using the standard code ( http://www.adobe.com/devnet/flashpaper/articles/import_flpaper2_03.html). The flashpaper is located on a different subdomain than the swf doing the loading, so I added "System.secur

  • Trying to get pictures off of iPhone 5 with unresponsive screen

    My iPhone 5 screen is not cracked but the touch screen is not responding. I want to get pictures off of it. How may I do so?

  • WLST Script to modify a XQuery Resource

    I am attempting to write a WLST Script for OSB 11.1.1.4 to the modify the contents of an XQuery Transformation. I have searched the Oracle Docs and various other internet sites and not found any means of using WLST to achieve this goal. Does anyone h

  • Sound card problems but with yet another sound card

    hello, I got the MSI K8T Neo FIS2R just a few weeks ago and it really does kick arse but with only one not so big problem. I have this Hercules Muse DVD 5.1 that works perfectly fine with my previous config (Athlon XP 1800+, ECS K7S5A). But with the

  • IBooks support for auxiliary content and linking?

    I have a couple of questions for the iPad/iBooks owners out there that I hope can answer them for me. I'm in Canada, so I won't be getting an iPad for at least another month or more (also waiting for the 3G), and I don't have any readily available ac