Flexmotion6C pulse output

I am trying to get variable length digital pulses out
of the flexmotion6 board using the UMI-Flex6 terminal
block. Yusuf C, suggested I configure the axis to run on open loop stepper mode and tap the Step(CW) and Dir(CCW) lines during a simple move. This should
give a pulse train. And I can change the frequency by changing the velocity of the move.
When trying to configure axis 5 as a stepper
and running the 1-D interactive program under the
MAX program to test the axis, I get the error message "Error 70017
NIMC_StepperOnlyError Occurred in set stepper loop
mode (flex_set_stepper_loop_mode) on Axis 05
This command is valid only on a stepper axis"
I have also considered using the flex_load_DAC
command to load a value into the DA
C directly.
Is it possible to use this cammand with DAC 1
through 6, provided they are not associated with
an axis (ie. the axis is disabled or the DAC channel is
not selected for a particular axis.
Thanks for your help

Ysusf's suggestion should work for you. The error which you are getting indicates that you are trying to change the stepper loop mode on an axis which is set up as a servo. To fix this change the axis configuration to stepper and then hit apply and initialize board.
In order to use the DAC on a channel it must also be configured as a stepper. And then you can do the load DAC. I'm not sure how this is to be a substitute for outputing a pulse train but if does the trick then great!
Regards,
Amaury Rolin
NI Applications Engineer

Similar Messages

  • Single pulse output on USB-6212 PFI

    I am trying to generate a single pulse output on one of the PFI I/O lines on a USB-6212.
    How do I go about creating the task?  The pulse witdh is 100ms.
    Also, how do I trigger from one I/O line to start another I/O pulse?

    Hello johnswan,
    The first thing you need to do is make sure that you have the NI-DAQmx driver installed.  This should've came with your device, but if not you can download it from ni.com/updates.  After the driver is installed it will add examples for LabWindows CVI.  In LabWindows CVI you can go to Help » Find Examples to open the NI Example Finder and then navigate to Hardware Input and Output » DAQmx » Generating Digital Pulses.  There is a DigPulse.prj which will show you how to create a digital pulse with a specific pulse width.  There is also a project called DigPulseTrain-Cont-DigStart.prj that you can look at to see how to implement a digital start trigger.  Take a look at these and let me know if you have any additional questions.
    Regards,

  • Counting 3 pulse outputs on the 9178

    Hello everyone,
    Please note that I am very new to Labview. My issue is related to measuring 3 independent pulse outputs.
    Currently I am using a 9178 chassis. Two pulse outputs are coming from Omega FTB800B Pulse meters (water flow) which should output 20 pulses/gallon of water flow. The third pulse output originates from a wattnode pulse meter.  I am attempting to create a very simple vi (to test all three outputs).
    The wattnode seems to be working perfectly and the pulse outputs seem reasonable (connected to a 9402 card).  
    The two flow meters, on the other hand, are giving me some trouble. I have attempted to run them through both the 9402 card and the two onboard pfi ports.  
    The wattnode works using the daq assistant and selecting edge count. Since the Omega flow meters are not supplying voltage or current (reed switch), I figured this was a good guide to count pulses internally https://decibel.ni.com/content/docs/DOC-9061. Unfortunately I have been unable to measure the pulse outputs using the aforementioned method. 
    I have one USB-6009 unit which does not seem to have a problem measuring flow from either meter (one at a time due to the internal counter limitation).
    Please see the attached vi examples
    Thanks 
    Attachments:
    WaterMeter.vi ‏23 KB
    Wattnode_VI.vi ‏52 KB
    USB-6009.vi ‏49 KB

    Thanks for the reply Nick-A!
    I believe the WaterMeter VI originated from the example finder section of Labview. There seem to be a few additional prorams which help display pulses counted by the edge counter; but, the counter portion of the code appears almost identitcal to the WaterMeter VI.
    I tried utilizing the usb 6009 vi format (DAQ assistant) through the 9402 card. For some reason, I do not even measure pulse readings while running the project in the DAQ assistant properties window. Both flow meters produce the same results when connected to the aforementioned card (I have connected the flow meters to each of the 4 BNC ports). Please correct me if I am wrong, but shouldn't pulse count appear through the DAQ assistant (even if there is no other coding)?
    Thanks,
    Daniel

  • Frequency divider + narrow pulse output

    Hello all,
    I need to divide the frequency of an incoming digital pulse by a factor of N (typically 10-50) but I would like the output signal to be 200ns wide. I'm able to divide the incoming pulse by using CO pulse ticks with the incoming pulse as the tick source and specifying the low and high ticks (low + high ticks = N). The problem is that the narrowest pulse I can generate is 2/f_in (or in my case  2/75kHz~ 26 us).
    Is there any other way to divide a pulse  and control the width of the  output pulse?
    I can use the "wide" pulse to trigger a narrow  pulse on a different channel but I rather not use so many channels for this application. Is it possible to use just 1 input channel and 1 output channel?
    Any advise will be greatly appreciated.
    I'm using Labview 8 and pci 6251
    Eyal

    Hello Eyal,
    Let me rephrase what it is I think you want to do:
    1.  You have a digital input with a frequency at or approximately 75 kHz.
    2.  You want to divide down this input frequency by N, where N is between 10 and 50 or so.
    3.  On every Nth pulse you want to generate a pulse with a 200ns high time and then return to a low state until the next 200ns pulse is generated.
    If this is what you want to do then you would need 1 CO task to generate a pulse ever Nth rising edge of your input.  Then you would use this pulse to trigger a retriggerable pulse train to output your 200ns pulse.  All of this routing can be done internally so you would only physically connect one input and one output, however this setup would require three counters.  One counter for the CO task and two counters for retriggerable pulse generation.  Unfortunately your PCI-6251 only has two counters so to do this you would need to get a board with at least 3 counters. 
    If I didn't describe what you are trying to do accurately please reply back with further clarification incase what you are actually trying to do can be accomplished on your board.
    If you would like to contact National Instruments directly to speak with a technical representative about getting a counter board you can find contact information at www.ni.com/contact.
    Have a good weekend!
    Brooks

  • DC pulse output analog input

    I am using a 6221 PCI DAQ card and attempting to put out a DC level for a several different times.  During the output of each DC level I need to sample two DC inputs via the analog input.  Most of my DC levels last for 100s of seconds each and a sample rate of 1S/s on the analog inputs is OK.
    My problem arises when I attempt to place a 30ms pulse into the analog output.  During this 30ms I need to increase the data rate of the analog input.
    I have attempted to use a while loop to control the time between changes but can not get the sampling rates correct to allow for the correct number of samples.
    On suggestion has been to take all data at a fast rate.  The test will last in excess of 3000 seconds and I get way too much data at a fast rate.
    I need to be able to change data rates on the fly as I change the DC levels.
    Does any one have any ideas?
    Thanks,

    John@Saft wrote:
    I know when the pulse is to arrive before it happens.  I have an array of data including voltage outputs, duration of output, and what data rate to sample at.
    My problem is insuring the sampling starts before the pulse arrives and continues for the duration of the pulse.
    One way I'm sure can work uses "Continuous Acquisition.  "See: "Cont Acq&Graph Voltage-Analog SW Trigger.vi" example.
    If the DAQ-rate is known before leading-edge of pulse, then, start the Acquisition at whatever frequency's needed, making the input buffer bigger than required, then when the end-of-pulse arrives, reach-into the input buffer and pull-out the "pulse".  With a little work you may find an example that uses a "stop-trigger"
    There may be a "slick" way to do this without "Continuous Acquisition" using a parameter called "Pre-trigger" scans.  My first LV project (circa- 1990) used this, and I've done it with at least one "E"-series board, but not yet under DAQ-MX - and couldn't find an example with Internal clock, External Trigger.
    Cheers! 
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • How do i wire a sensor to my daq having pulse output

    Hi all
    I am using NI 6229 BNC DAQ and i have a flowmeter which is giving me pulse as output.
    In attachment i am sending the datasheet of sensor.
    How can i wire it to my daq
    Please help?
    Attachments:
    flowmeter.pdf ‏288 KB

    Duplicate - http://forums.ni.com/t5/LabVIEW/how-to-convert-square-waves-to-a-physical-data/m-p/3149985
    There are more than enough threads you have started on the same subject.

  • How can i measure the time between a pulse output and a pulse back on the input?

    Llo,
    I have a problem i use a ultrsonic sensor, and when i send a pulse out of 4V then a couple of ms i have a pulse back on the input, how can i exactly know how much time there is between the 2 ^pulse??

    Use the output pulse to trigger a counter in period measuring mode and stop the counter on the return signal (if the input return signal is large enough to reliably trigger a logic circuit). If the signal is not large enough to trigger the counter directly, an external comparator can be used to generate the stop signal.
    Another approach is to use two channels of analog input. Feed the output signal to one of them and the return signal to the other channel. The time between outgoing and return pulses can be determined from the sampling rate. If precise timing is required and your AI board does not have simultaneous sampling, you have to account for the inter-channel time as well.
    Lynn

  • Frequency of a pulse output sensor

    Hi Guys,
    I have a sensor that puts out pulses depending on the amount of flow (it's a flow meter). I hooked up an oscilloscope and it looks like the frequency is always around 30 Hz. I have a break out box (SCC-68) that does not have a counter input, just analog and digital. Is it best to use the digital input or analog input to measure the frequency of the signal in Labview which in turn translates into some flow units? Thanks! 

     I have a break out box (SCC-68) that does not have a counter input, just analog and digital.
    If your DAQ unit has counter functions they will be available at screw terminals. Which device do use?
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How do I synchronize a pulse output to a sine wave input on a pci-6602 card?

    I have a sine wave from a function generator as the input on the source of a counter. Input frequencies vary from 2-60 kHz. I want to produce a pulse train at a different frequency (10 Hz), but in phase with the sine wave. I have only been using Labview 5.1 for a short time. I am using the PCI-6602 card with a SCB-68 connecting block.

    Hello;
    Unfortunately, you can't connect a analog sinewave to the counter source. Counters only work with digital TTL signal type. To accomplish that task, you will need a MIO board working in sync with the 6602 you already have.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • Can TIO counters be programmed for 'Change-of-State' instead of 'Pulse' output

    I need a simple counter/timer action like 'Delay ON', that is, the output changes state only once between 'Program' and 'Reset'.

    Hi Alan,
    There is a good knowledge base that describes what you are looking for. Have a good day.
    Using the General Purpose Counter (GPCTR) on the Data Acquisition (DAQ) Device as a Digital Line
    http://digital.ni.com/public.nsf/websearch/B8A49A4E33F38AB686256B610061DC6D?OpenDocument
    Ron

  • How to get a pulse output at the start of a sine wave which is the input?

    i am working on a comparator that generates a pulse for the positive cycle of a sine wave.but i want to get a pulse of shorter duration at the start of a sine wave (using labview) please suggest

    Hello;
    You can synchronize one of the general purpose counters your board have to the analog input operation. By doing that, you can have your analog input starting the counter operation which will generate the desired pulse. Moreover, you can even specify the delay and width of that pulse. For more information on how to synchronize DAQ operations you can refer to an Application Note named "Advanced Synchronization Techniques for Data Acquisition" which can be found at our web site.
    Hope this helps.
    Filipe

  • Getting the top of the analog pulse output

    Hello, Guys,
    Another question....
    I'd like to obtain just the top of the pulses....so I am using Analog SW Trigger.vi to do so.  What I'd like is for the VI to input only the top of the pulse and do some sort of averaging technique to get a number and display that value progressively and store it into a file.
    At this time however it is not wokring as planned.
    The bugs I am still trying to solve:
    0.  put individual timestamp along with the pulse top data
    1.  the cutoff is not absolute.  If I set the window floor to 2.0...there are numbers less than 2.0 still bleed into the array and likewise for window ceiling.
    please advise,
    ck
    Attachments:
    pulse top off.vi ‏747 KB

    ck,
    Have you tried to do this in software by just disregarding all data outside of the window which you specify?
    L. Allen

  • Taking pulse output from DAQ

    Hi
    I am working on 'wireless sum tracker module' project using LABVIEW; but I don't know how can I provide pusle to my circuit using LABVIEW.I was wondering if you can help me in this issue. please if possible tell me how can I connect my circuit to DAQ card to get pule.   
    Looking foeward to hearing from you,
    Sincerely,
    Monireh V 
    Solved!
    Go to Solution.

    Hello Monireh,
    To give you the precise solution we would need more inputs from you.\
    But considering some assumptions from my side If you are using the Desktop PC for the project and If you are thinking of the DAQ card then,
    You can go with the mulit-function  DAQ cards which have pulse generation capabilities.
    You will also get the Details about the connections from the corresponding DAQ card Data Sheet.
    http://sine.ni.com/nifn/cds/view/main/p/sn/n24CI/lang/en/nid/1036/ap/daq
    you can choose a specific DAQ card for your requirement from the above link. (I have assumed that you will be using PCI cards)
    Regards,
    Krunal K Patel 

  • Pulse output blackfin

    I want to run a stepper motor from the general IO on the 537 EZ kit and i need functions for finite and infinite pulse train.
    Is there anyone who might help me a little bit on the way? embedded/Blackfin is new to me and i havent even found the general IO pins on the board.
    regards
    Fredrik

    Hi LabRat,
    For a beginner wanting to learn about timing and how to interface it with external signals, I would point you to the shipping examples that come with the LabVIEW Embedded Module for Blackfin.  (Help » Find Examples » Toolkits and Modules » Blackfin » Device Drivers)
    At first glance, I would direct you to the examples titled RTC OnceAlarm.lvproj, RTC Periodic.lvproj, and TimerWithCallback.lvproj.  These examples illustrate how to toggle pins and use timers.
    I hope this helps,
    Kevin S.
    Applications Engineer
    National Instruments

  • Single trigger output pulse each iteration

    I want to output a trigger pulse, record two analog inputs, and save the data to a text file.  When I do this for one iteration it works fine, but multiple iterations only acquire and save, the output pulse is only generated on the first iteration.  I am using a counter pulse output to generate the signal. How can I fix this issue?

    Hi there,
    What kind of board are you using? Are you saving data to the file on every iteration? Depending on your application, it might be advisable to save all data to a file after you are done with your application. Can you post your code so that we can look at it?
    Regards,
    Efrain G.
    National Instruments
    Visit http://www.ni.com/gettingstarted/ for step-by-step help in setting up your system.

Maybe you are looking for