Output pulse with NI-Scope only, on 5102 PFI line

The NI-Scope documentation briefly mentions a "Configure Digital Output" function, but it is not clear exactly what this does, and what parameters are available (e.g., pulse width, polarity, stand-off, etc...), or if it merely "configures", and another function is needed to actually generate the pulse.
Programming in VB, with NI-Scope, for the 5102, what NI-Scope function(s) would I call to initiate an output pulse on a PFI line? What parameters of the pulse can be controlled?
Thank you, Ed More

Hello Ed,
You need to use functions in NI-DAQ in either LabVIEW or ComponentWorks to do this. There are some examples and a knowlegdebase article that describe this.
Here are the links:
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/fead136291ec002186256aaa006c2019?OpenDocument
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DFC756A4E034080020E74861&p_node=175381&p_source=external
http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3DD5756A4E034080020E74861&p_node=175341&p_submitted=N&p_rank=&p_answer=&p_source=External
If the links do not work, go to developer zone and search on 5102 and pfi to find the examples and go to support and search in knowledgebase on 5102 and pfi for t
he knowledge base entry.
-Brian

Similar Messages

  • How do I set up analog 0-10 VDC output pulses with varying duty cycles?

    I am trying to control a 400 watt laser so that it can pulse on and off within a few milliseconds. The laser controller reads a 0-10 VDC signal, with 0V being 0 watts and 10V being 400 watts. I am using a PCI-6221 DAQ and LabVIEW 8.0.
    It seems that all of the examples have square waves that are symmetric about the 0 volt range. I need a square wave that goes from 0-10VDC with different on/off timespans. I would like to have something as follows:
    1) 0 seconds = laser off
    2) .001 to .002 seconds = laser on at full power
    3) .002 to .009 seconds = laser off
    4) Repeat steps 2-3 500 times
    Any ideas?
    Michael Fidler

    Michael, 
    I ran your code, but was unable to reproduce the problem you are
    seeing. I measured the signal in two fashions’. I brought the signal back into
    the card (LabVIEW_Square Wave.JPG) and into a benchtop scope (Benchtop
    scope_Square Wave.jpg).
    I would like to ask that you run the attached code twice. The
    first time, please run it with the analog input as ‘Dev1/_ao0_vs_aognd’. This
    take the analog output and compares it with the cards AO ground, therefore eliminating
    the need for external connections and simply doing internal routing. The second
    time, please run it with the analog input as “Dev1/ai1”, and wire your AO
    channel to an AI channel. These tests are to ensure that there is not a stray
    capacitance in your scope, the probe, etc. Let me know the results (pictures
    are always great)
    David L.
    Systems Engineering
    National Instruments
    Attachments:
    Cont Gen Voltage Wfm-Int Clk_Test VI (8.2).vi ‏64 KB
    Benchtop scope_Square Wave.jpg ‏38 KB
    LabVIEW_Square Wave.JPG ‏36 KB

  • How to generate a single output pulse on 64 different digital out lines (PCI-6513) each with a different start time relative to an event in a main program loop.

    Long question.
    I am running a main program loop of 60 msec. At one point in the loop I create a 64 element array of delay times. At that point I need to begin outputting a predefined single pulse to each of the 64 lines on my PCI-6513. Each line outputs the pulse with a starting delay set by the "delay time" in the array.
    Each delay time is such that the pulses will be done before the next loop commands another one.
    Thank You
    Roger

    Hi,
    You have multiple ways of doing this, since there is no timing engine on the 6513 your code is going to control the output of the card, which is what we called “software timed”.  If you take a look at the example called: “Write Dig Chan.vi”, you can individually control each line.
    So to change the state of the line; since you have an array of delays time you can aid yourself with “stacked sequence structure” where in each frame you control the time it takes to go to the next frame and the data been written to the card.
    Another option is using a state machine where each state write the data you want and you can also control the time between states. For further references take a look at this article Application Design Patterns: State Machines.
    I hope it helps
    Jaime Hoffiz
    National Instruments
    Product Expert
    Digital Multimeters and LCR Meters

  • Assigned the output type with AR also,It is printing in ENGLISH Only.

    Hi,
    I have written a Z Smartforms and Z print program.
    I have used ZRV56TD00(Copied from standard program RV56TD00),Inside it I have submitted the program(Z print Program) for the shipment number for the transaction code VT03N.
    It is now printing the form in english well and good.
    Now I want the same to work for the ARABIC.
    I had done the arabic translation in SE63 and If I run the program It is printing only in English.
    When the assigned the output type with AR also,It is printing in ENGLISH Only.
    Suitable answers will be rewarded.
    Regards
    Manohar S
    Edited by: Manoj on Jun 17, 2008 4:13 PM
    Edited by: Manoj on Jun 17, 2008 4:14 PM
    Edited by: Manoj on Jun 17, 2008 4:15 PM

    Hi Manoj,
    Goto transaction NACE and check wether you have mentioned the language in Mail title and texts for the particular message type.
    let me know if you require in more detail.
    Regards,
    Sharath

  • Create 4 digital output pulses base on input ttl signal

    Hi
        I am a beginner in Labview and would appreciate any advice on how to solve the following problem.
    I am creating a TTL pulse train, and would like to send that into Labview as input.  For every falling edge detected on the input signal, I'd like Labview to generate 4 digital output pulses.  For each output pulse, I'd like to be able to specify the delay, and duration.       The picture should illustrate it more clearly, with the numbers showing the intended order of magnitude.
    System:  NI PCI-6733 DAQ card, Labview 8.5
    My daq card has 2 24-bit timers, and 8 digital I/O but I don't know what the best approach is for creating between 4-8 output pulses of this precision..should it be handled in hardware, or in software?  And how would I go about it
    Thanks,
    -Sidney
    NI Hardware: PXI-7853R, PCI-5122, PCI-6733, PXI-1036, PCI-MIO-16E-4, PCI-6110
    Computer Hardware: Xeon Quad Core - 2.33 Ghz, 8 GB RAM
    Software: Labview 2009, Labview FPGA 2009, Vista 64-bit, MAX 4.6, DAQmx 9.0, NI-SCOPE 3.5
    Solved!
    Go to Solution.

     Hi Yann,
       Wow, thank you so much for this example!  I'm trying to take a look at it, but when I run it.. it responds with the following error message
    Error -200452 occurred at Property Node DAQmx Trigger (arg 1) in DAQmx Start Trigger (Digital Edge).vi:1->reprise-1.vi
    Possible reason(s):
    Measurements: Specified property is not supported by the device or is not applicable to the task.
    Property: Start.TrigType
    Task Name: _unnamedTask<49>
    This is strange too, because ive already used the Digital Edge Start trigger for a different application with this card.
    -Sidney
    NI Hardware: PXI-7853R, PCI-5122, PCI-6733, PXI-1036, PCI-MIO-16E-4, PCI-6110
    Computer Hardware: Xeon Quad Core - 2.33 Ghz, 8 GB RAM
    Software: Labview 2009, Labview FPGA 2009, Vista 64-bit, MAX 4.6, DAQmx 9.0, NI-SCOPE 3.5

  • Create pulse with 6542 card

    Hi just wondering if you can create output pulses that are in sync with a clock in signal input (all TTL) with the 6542 PXI card?  For example control the pulse width and delay with reference to an input clock signal?  If so any examples, thanks.

    Hey svt4cobra6,
    Do you need the 1 ms pulse to go out on a PFI line? If not, I would recommend using one of the data lines on the 6542 to create your pulse. As smercurio_fc mentioned earlier, you can use the Example Finder, and browse by task, then go to the Hardware Input and Output -> Modular Instruments -> NI-HSDIO (High-Speed Digital I/O) folder. Here is where you can find a lot of examples specific to the HSDIO device you are using. For your application, it sounds like you want to do both generation and acquisition, so check out the folder that says Dynamic Generation and Acquisition. One good one you could use to kind of simulate the device you will eventually hook up is the "Dynamic Generation and Acquisition - Source Synchronous". This example is probably not going to do exactly what you need it to do, but you can get some ideas from it, like how to export a clock with your data, or input a clock from your DUT, and how to use a trigger for when to acquire data.
    Now this source synchronous example uses Strobe as the Acq clock, but if you want to generate data based on an external clock, you will probably want to check out the "Dynamic Generation with External Sample Clock" example (found in the Generation -> Non-Scripted folder). If you are basing your pulse off of an external trigger and an external clock, you should check out the Specifications (Start -> Programs -> National Instruments -> NI-HSDIO -> Documentation -> Specifications) of your device for the Delay from trigger to digital data output, to make sure you can account for this if you need to.
    For the acquisition of your serial data, that also has a chip enable, you could check out the Dynamic Acquisition Hardware Pause Trigger, if you want to acquire data when your chip enable line is high, and then not acquire (or pause acq) when that line goes low.
    Now back to my recommendation for using the data lines as your pulse generator instead of a PFI line, you can use the onboard clock rate, let's say you use the max rate of the 6542, which is 100 MHz, which will generate samples every 10 ns, you can generate 0's until you are ready to output your 1 ms pulse, and then you would generate 1's, as many as you need for your 1 ms. I'll let you do the math. If you don't want to "oversample" this much, then you can slow down your clock rate to maybe 10 times your 1 ms pulse, which you would then output 10x "1's" for your pulse, and then however many 0's before and after your pulse. So basically all you are doing is using data (0's and 1's) to build your pulse. You could also use the Digital Waveform Editor to help you do so. One advantage of using a data line to generate your pulse is that you can vary the pulse width by adding or removing 1's, and when you are running at 100 MHz, you can get 10 ns steps of how much you want to change your pulse width.
    Again, there will probably not be a specific example that does your exact example, but by using bits and pieces of the existing examples, you should be able to figure out which functions you will need to do what you want. Finally, if you are just getting started, I recommend not only looking at a bunch of the HSDIO Example programs, but also the NI Digital Waveform Generator/Analyzer Help document (or the online version), as there is a ton of great information in there about your HSDIO device, like how it works, what features it has, and how to program it. I hope this helps. Please let us know if you have any further questions or concerns. Thanks, and have a great day.
    Regards,
    DJ L.

  • 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.

  • Error for output tax code:Tax code I4 may only contain one assignment line.

    Hi
    While posting customer invoice with output tax code, I am getting following error.
    Tax code I4 may only contain one assignment line.
    Please help me resolve.
    Regards
    Rekha

    There are quite some answered questions in this forum for this issue.
    Here is one.
    Error in Sample document (Message no. FF731)
    Also, please search the forum with the following search key words.
    Tax AND code AND may AND only AND contain AND one AND assignment AND line
    Make sure you select all posts, not just the past 90 days (the default option), and you will see quite some hits.

  • Generate a delayed pulse with analog trigger

    I want to generate a pulse with counter when the gate of counter receives a voltage value which is generated by analog output chanel,is this possible??
    I am using PCI-6713
    Thanks!!

    You can generate a triggered pulse in a counter by sending a signal to the gate from the Analog output, as long as such analog output meets the operational contitions of the counter of the PCI-6713. Just make sure that the signal does not exceed 5V. The trigger on the gate pin will be taken as low from 0 to 0.8V and as high from 2 to 5V.
    Thanks for contacting National Instruments!

  • Media Encoder output created with incorrect permissions (OS X + XSAN)

    Output from AME doesn't seem to respect the umask settings in launchd-user.conf (OS X 10.8 & 10.9).
    In order to allow multiple users on the SAN to access and edit files, we set the default permissions to be both user and group writeable - however, output from AME is consistently only writeable for the user who created it. This leads me to believe that AME (or some component of it) is running as a system-level process and disregarding the user application umask settings.
    Has anyone else in a shared media environment experienced this issue?

    You might try unlocking the window and attempt to delete the custom users. Be sure to back up your system before attempting anything.
    Highlight the first one and see if you can hit the minus sign to delete it. The system user should be the owner. if you highlight it and click on the triangle at the bottom, it should have "make system the owner" available is it already isn't. If the system user with the Custom priviledges is the owner, you will have to change that first before you can delete it.
    You might also try resetting user permissions and see if that helps. This should be the same for ML:
    Repairing User Permissions in OS X Lion
    You’ll need to reboot to perform this, and then use the same resetpassword utility that is used to change passwords in Lion, but instead choosing a hidden option.
    When you use the Disk Utility app and Repair Permissions — it doesn’t actually repair the permission settings on folders and files in your Home folder where your documents and personal applications reside.
    In Lion, there is an additional Repair Permissions application utility hidden away. This tool is located inside boot Repair Utilities. Here’s how to access it.
    Restart Lion and hold down the Command and R keys.
    You will boot into the Repair Utilities screen. On top, in the Menu Bar click the Utilities item then select Terminal.
    In the Terminal window, type resetpassword and hit Return.
    The Password reset utility launches, but you’re not going to reset the password. Instead, click on the icon for your Mac’s hard drive at the top. From the drop-down below it, select the user account where you are having issues.
    At the bottom of the window, you’ll see an area labeled ‘Reset Home Directory Permissions and ACLs’. Click the Reset button there.
    The reset process takes a couple of minutes. When it’s done, quit the programs you’ve opened and restart your Mac. Notice that ‘Spotlight’ starts re-indexing immediately.

  • Synchronise digital pattern output(6533) with a external signal

    I use a PCI-DIO32HS and i want to synchronise an output pattern with an external signal(TTL;T=1.7ms).
    ie :every time external signal become high(every 1.7ms)
    my dio32HS output a define pattern on a line.
    How can i do this?Thanks

    Thanks for your answer but see attached file to see what i want to do.
    I want to control delay between trigger(input signal T=1.7ms) and ouput and control the width of the ouput pulse
    Best regards
    Attachments:
    signal.txt ‏1 KB

  • What is the effect of output signal with the same sampling frequency but different number of samples?

    Hi,
    I'm using PXI4461 for audio measurement and there is a question about analog output. I'm using the Basic Multitone vi for generating multitone signal. The sampling rate is 200k and my question is how to determine the number of samples. I used an audio analyzer to measure the distortion of the output signal with 200k and 1k points and there are no different except the update rate. What number of samples is suitable for 200k sampling rate?
    Thanks,
    Bill

    The Sampling Rate determines the maximum frequency that you can see (the rate/2 according to Nyquist).
    The number of samples divided by the rate determines how long you will sample. This sample time can only be determined by you. Do you need .1 seconds worth of data, or 1 second? But note that the MINIMUM frequency that you can detect is 1/(Sample Time) or the Sampling Rate/Number of Samples. So if your system has a minimum and maximum frequency specification use that as your guild.
    [email protected]

  • Why doesn't SignalExpress communicate with TDS3054B scope?

    HELP!
    I have a TDS3054B scope with v3.39 firmware installed on it.  I want to communicate with it using SignalExpress but can't!  I can see the instrument in Measurement & Automation Explorer (v4.2.0.3001).  It shows up as GPIB0::1::INSTR.  I have a USB-GPIB cable going from my laptop to the scope.  The laptop is running LabVIEW 8.2.  I have installed the drivers for the scope from NI's website but still can't get it working...
    I can communicate with the scope using Tektronix's OpenChoice Desktop software, but that software is limited in what it can do...
    Any suggestions?

    Thanks again, Kent. 
    The article helped some, but I still don't have it working...
    In MAX, under the IVI Drivers >> Logical Names, I have the name MyScope.  For the General tab, I have the Driver Session listed as tkds30xx & a Description "TDS3054B oscilloscope".
    In MAX, under the IVI Drivers >> Driver Sessions >> tkds30xx >> General tab, I have the following:
    Initialization Options enabled: Cache, Range Check, Query Instrument Status;     Simulate With: Don't Simulate;     Driver Setup: tkds30xx;     Description: TDS 3000 Series
    In MAX, under the IVI Drivers >> Driver Sessions >> tkds30xx >> Hardware tab, I have the following:
    Hardware Assets: Name - TDS3054B (checked); Resource Descriptor - GPIB0::1::INSTR
    In MAX, under the IVI Drivers >> Driver Sessions >> tkds30xx >> Software tab, I have the following:
    Software Module: <None>;  my only choices are <None> or NIDMM.
    In MAX, under the IVI Drivers >> Driver Sessions >> tkds30xx >> Virtual Names tab, I have the following:
    Virtual Name: CHANNEL1, CHANNEL2, CHANNEL3, CHANNEL4;     Physical Name: CH1, CH2, CH3, CH4
    In MAX, under the IVI Drivers >> Driver Sessions >> tkds30xx >> Initial Settings tab, I have nothing.
    In LabVIEW SignalExpress, I go to Add Step >> Acquire Signals >> IVI Acquire >> IVI Scope Acquire.  The Step Setup box is displayed.  On the Configuration tab >> Device section >> IVI session name, I select Create New...  Another dialoge box opens with an IVI session name in it.  I change it to MyScope (same as in MAX), choose the Resource Descriptor GPIB0::1::INSTR (same as in MAX), but can't select an instrument driver.  The only thing available under Instrument driver is a check mark.  I can't select it for some unknown reason.  I hit the OK button & the box closes, returning to the Step Setup screen.  I try to run the step once & get an error stating:
    "ivi_IviScope Initialize With Options.vi<ERR>
    Driver Status: (Hex 0xBFFA1207) Primary Error: (Hex 0xBFFA1207) The item does not exist in the collection.
    Elaboration: tkds30xx"
    Back to square 1...

  • UK TV with scart input only - got it working, here's how

    For those of you that are in the same predicament and would like to know how to get the apple tv working with your 'old' tv with scart input only, here is the run down of how I managed to get in working.
    In order to display the component signals via a scart you would need to have a very expensive type of tv (one that allows YUV via scart)... i don't (you may, but it is VERY rare).
    Getting a component to scart lead will NOT work (RGB input not YpPpR).
    You will need a component to scart convertor. I have only found 2 that do the job as most convert the wrong way i.e. scart to component.
    the one I plumped for was the SYNCBLASTER RGB2C COMPONENT TO RGB TRANSCODER and can be bought from Keene Electronics : http://www.keene.co.uk/electronics/multi.php?mycode=RGB2C
    It costs £89.99 but it is worth it!
    You will also need a component lead (3 phono to 3 phono) (an adaptor is included with the transcoder that will allow you to plug it into the scart socket on the transcoder)
    You will also need a FULLY wired scart lead (i.e. ensure it has rgb capability - most have)
    You will also need to connect the audio up to an amplifier either via the two red/white connectors OR via the optical out to an appropriate input (I use the optical to my amplifier). You will NOT be able to transmit the audio via the scart.
    Once plugged in, you need to set the switches on the front of the transcoder to :
    1 down
    2 up
    3 down
    4 up
    Press in the button so the light shows amber(red)
    apply power to the apple tv, it should now startup and you should see a picture (if no picture is seen, wait until the white light displays on the front of the apple tv and HOLD MENU and + for 6 seconds, it will now cycle through the resolutions... click ok when you can view it).
    Works a treat, and is cheaper than buying a new HD TV!
    TO be honest, don't believe the bad press, the apple tv IS as good as you hoped it would be even without a HDTV....
    Shame that apple didn't offer an additional composite (yellow) output, this would have prevented so many problems for so many.
    for all its worth, I hope this helps someone.
    CD

    How is the quality of the picture? I bought the
    converter from J.S Technology:
    http://www.js-technology.com/product_info.php?cPath=22
    &products_id=52
    The picture on my Sony SD Widescreen TV is really
    dark on most of the movies I have - in most instances
    making it unwatchable - I am going to try re-ripping
    some DVDs paying attention to the resolution etc, but
    I am not convinced this is the issue. Many of my
    photos look far darker on the TV than they do on my
    MacBook Pro.
    I am going to take the AppleTV round to a friend who
    has an HD tv and try it there to see if there is an
    issue with the ATV. Failing that it is down to the
    component to RGB converter I suppose.
    What is other people's experience with the other
    conveters out there?
    Having forked out almost £100 and still not having a
    watchable Apple TV, I am a bit fed up.
    I called J.S Technology today, and they suggested restarting the converter - everything is now working great.
    Very pleased!

  • Output pulse every n units for x4 encoder

    I found this on the National Instruments website showing how to ouptu a pulse every N input pulses, the issue is that I'm trying to do this on X4 decoding.  I have a NI9178, NI9401 and a NI9201, I'm trying to input an X4 encoder to my counter and subsequently output a pulse every N steps on a seperate line to trigger an external piece of hardware.   My encoder has 200PPR and runs at about 2000RPM.
    Here's the link to the file:   http://zone.ni.com/devzone/cda/epd/p/id/3288
    Thanks for any assistance you can provide,
    Nick

    So I have been trying to figure this issue out by using the forums and all I've managed to do is confuse myself.
    I'm "simply" trying to output a series of pulses after counting N number of input pulses.  Here is the VI I'm working on (adapted from a previous forum post - Encoder VI for NI.vi is the main program).  There is one counter input and one counter output, along with some analog inputs (which for now can simply be ignored).  I'm trying to count the ticks off of Phase A from the input encoder and subsequently output a pulse every 100 ticks on the output counter task.  
    Please if anyone has any suggestions I am very open to them. 
    Nick
    Attachments:
    Encoder VI For NI.vi ‏54 KB
    Analog Graph2.vi ‏21 KB
    Get Terminal Name with Device Prefix.vi ‏50 KB

Maybe you are looking for

  • Color issues with opening PDFS in PS5

    Hi Everyone, I was given a pdf by a customer. It's not quite layed out well for print so I need to move around some items. Unfortunitly not all the items are moveable in Arobat X pro. So I figured I would make the edits in PS5. Everything works well

  • Captivate doesn't recognize my USB microphone

    Hi there, I'm using Vista (32) with Captivate CS4. I have USB microphone (Sennheiser PC-166) that works beautifully with other applications, but I can't get Captivate to recognize it. When I configure settings...Captivate hears my default PC micropho

  • Print without print options window popping up?

    i have a class that sends a Component to the printer. a window always pops up to let you choosing printing options. is there a way to just send a job to the printer using the defaults so that the user doesnt have to hit ok every time? thanks...

  • Process order movement

    Dear All, I want to see goods movement in process COR2gotolist -document godds movement got the below message There is no data for the selection Message no. COIS024 Diagnosis Either no data was selected or you are not authorized to display the data.

  • Audiobooks not showing up from Mac to ipad

    I can't seem to get my audio books to synch over to the iPad. Could use some guidance.