Get DIO to trigger waveform generation

Hi,
I am trying to get a digital IO line to trigger waveform generation. I have a function call that invokes WFM_Op(), which is set up to trigger on one of the PFI inputs. This part works fine for an externally generated interrupt.
What I want to do is use one of my digital output lines, looped back to the PFI input, as the signal source. However when the call is made to the DIG_Out_Line() it hangs, it seems like it's waiting on the call to WFM_Op() to finish first. (Obviously my program is multithreaded)
It seems pretty weird that you wouldn't be able to do this, the two things should be separate.
Anyway if you have any suggestions or another method to attempt that's more to your liking please let me know.
Stefan
Tarrant
Research Engineer
C-CORE
Captain Robert A. Bartlett Building
Morrisey Drive
St. John's, NF
Canada A1B 3X5
Tel: (709) 737-8372
Fax: (709) 737-4706
E-mail: [email protected]
Web site: http://www.c-core.ca
This communication (including all attachments) is intended solely for the use of the person or persons to whom it is addressed and should be treated as a confidential C-CORE communication. If you are not the intended recipient, any use, distribution, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately delete it from your system and notify the originator. Your cooperation is appreciated.

Stefan,
I have one suggestions for you. I hope it works out for you:
Create two programs: one for waveform generation and the other one for outputting the digital signal out of one of the the DIO lines, or a second program which generates a pulse train, out of a counter.
I don't understand exactly how you are allocating the function calls.Are you placing the function calls one after the other; that is, first a WF generation one,and then a DIO function. Or, two separate sets of functions on different threads? If it is the first one, you will not be able to accomplish what you want.
If this doesn't help, let me know. If you can attach a simple code that depicts the problem, it would be great.
Hope this information is helpful.
L Aguila
Appl
ications Engineer
National Instruments

Similar Messages

  • Waveform generation upon trigger start for one cycle

    Hi there,
    I am trying to generate one cycle of a waveform(triangle wave) upon recieving a trigger signal from another input.
    I have the waveform generation working however it generates more than one cycle and also stops before a whole waveform is generated. The waveform generated can have a different duration than the trigger signal (frequency).
    How would I change the program to have it generate only one waveform upon trigger. 
    Please see the attached VI in Labview 8.5.
    Attached is also what  the program should do as JPEG image diagram.
    Thank you!
    ~Anthony
    Attachments:
    cycle.vi ‏117 KB
    waveform.png ‏6 KB

    Anthony,
    I played around with your vi for a little bit, and it seems that the easiest way to manipulate your data of the triangle wave is to wire an input to the sampling info of the vi. The input is looking for a cluster of 2 doubles, 1 being sampling rate, 1 being # of samples. In the vi I built, I just set rate to always be 1000 times the frequency, and the samples to always be 1000, giving you 1 period. 
    Hopefully this helps!
    Chris Van Horn
    Applications Engineer
    Attachments:
    cycle.vi ‏117 KB

  • Error with "on-the-fly" controls in waveform generation

    I am trying to output a waveform in which I can change amplitude while the VI is running. When trying to do so, however, I am allowed to change the amplitude only once, and then I get error #-10880. What does this mean? I am using AO Write, and placing the waveform calculation and generation inside a sequence structure, with a wait statement, in the hopes of giving "changes enough time to take place".
    Thank you.

    jmarotta wrote in message news:<[email protected]>...
    > I am trying to output a waveform in which I can change amplitude while
    > the VI is running. When trying to do so, however, I am allowed to
    > change the amplitude only once, and then I get error #-10880. What
    > does this mean? I am using AO Write, and placing the waveform
    > calculation and generation inside a sequence structure, with a wait
    > statement, in the hopes of giving "changes enough time to take place".
    > Thank you.
    Hi, Jmarotta,
    I am not very sure how to solve your problem, but the error #-10880 is
    "updateRateChangeError A change to the update rate is not possible at
    this time because when waveform generation is in progress, you cannot
    change th
    e interval timebase, or when you make several changes in a
    row, you must give each change enough time to take effect before
    requesting further changes."
    You can find this in the help/error code/Data Acquisition Vis... Hope
    this would help. ^_^
    Regards,
    celery

  • How do you get apps for the 1st generation iPod touch

    How do I get apps for the 1st generation iPod touch?

    By updating the iOS on the iPOd.  The 1G can go as high as 3.1.3.  That works with a lot of apps.  But some apps require a higher iOS and/or newer iPod.
    Purchasing iOS 3.1 Software Update for iPod touch (1st generation)

  • How do I get my photos off 1st generation itouch? I have macbook pro, ipad, iphone. Itouch syncs but does not have option to share in any capacity ie send via email, etc. Also, the computer from which photos were originally taken from has crashed.

    How do I get my photos off 1st generation itouch? I have macbook pro, ipad, iphone. Itouch syncs but does not have option to share in any capacity ie send via email, etc. Also, the computer from which photos were originally taken from has crashed.

    It has always been very basic to always maintain a backup copy of your computer.
    Did you fail to back up your pics?
    The photo sync is one way - comptuer to ipod.
    You can e-mail them to yourself (instructions in the manual), but they will not be of the original quality.

  • How does buffer size affect double buffered waveform generation?

    I had originally posted the following question:
    "Why does the double buffered waveform generation pause after the first buffer before continuing?"
    "I am using an AT-AO-10 board to generate a multiple channel waveform in double buffered mode. The board's DAC's are updated by an external clock signal. While the waveform generation performs well, I notice that after the first buffer has been generated there is a time delay before the next buffer is output. However the second buffer and thereafter perform well without any time delays. If anyone can provide me an explanation on why this happens I would appreciate it. I am using NI-DAQ API functions to generate the waveforms and my settings for the WFM_DB_Config function are 1 for oldDataStop to disallow regeneration of data and 0 for partialTransferStop to not stop when a half buffer is partially transferred."
    -posted by Vadi on 6/7/2001
    I received a response from Geneva as follows:
    Geneva L. on 6/11/2001 says:
    "Vadi,
    The first thing is to make sure that you have the latest version of NI-DAQ installed, NI-DAQ 6.9.1. If you need to install it, make sure you completely uninstall any prior versions. Then, you will have examples installed in either the NI-DAQ or the CVI directory. In the AO directory, you should find the WFMdoubleBuf example.
    Start with that to make sure the output appears as you expect. Then, you can modify it to apply your external update clock, following the idea presented in the WFMsingleBufExtUpdate example. You might even want to double-check that your external clock acts as you expect using an oscilloscope.
    Finally, modify the example such that you can update on multiple channels, remembering that you interleave each channels buffer into one buffer for WFM_DB_Transfer. Whatever data is in the buffer will be updated on the output channels.
    Regards,
    Geneva L.
    Applications Engineer
    National Instruments"
    I have checked my version of NI-DAQ and it is 6.9.1. I am generating the double buffered waveform according to the format shown in WFMdoubleBuf and with some modifications from WFMsingleBufExtUpdate to allow me to use my external update clock. However I continue to notice the same phenomena again and again. For a buffer size of 7500 or 10000 points there is a time lag meaning after the first buffer has been output there is a noticeable time delay before the second buffer and buffers there after is output. This time lag doesn't exist for the buffers that are output after the first buffer but it does exist for the first buffer. When I decrease the buffer size down to 5000 points the time lag disappears (Note: this phenomena also occurs when I use an internal time base as opposed to my external clock). Is there a reason for this? I am using a AT-AO-10 board and I know the on board FIFO is 1024 points deep. However from the documentation provided it doesn't indicate that double buffered mode uses the on board FIFO at all. In fact, the functions require that the FIFO mode be turned off (in WFM_Load) for double buffered waveform generation. Is there a reason why when the buffer size is increased that there is a time lag after the first buffer? Is this because of the functions themselves or is this because of the AT-AO-10 board?

    Vadi,
    Make sure that your buffer size is set to the same number of points that you're actually writing to the buffer initially. For instance, if you run the example as-is, the NIDAQMakeBuffer puts exactly the ulCount amount of data into the buffer. Then, it continuously writes out half buffers. Thus, if you are not writing enough data to fill up the buffer the first time, there will be that lag until the section where half buffers are output.
    Regards,
    Geneva L.
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • How do I get the ipod nano 7th generation to only show the album artwork? the volume control, info bar and album artwork shows whenever a song is playing.

    How do I get the ipod nano 7th generation to only show the album artwork? the volume control, info bar and album artwork shows whenever a song is playing.

    Hi TheGuru146,
    It sounds like the iPod isn't restoring correctly. Try putting the it into Disk Mode manually and then restoring the iPod again as described in the article linked below.
    Putting iPod into Disk Mode
    http://support.apple.com/kb/ht1363
    iPod nano (7th generation)
    Before placing the iPod into Disk Mode, verify that it has a charge.
    Reset the device by pressing the Sleep and Home buttons simultaneously until the display shows the Apple logo. This should take about eight seconds.
    When the Apple logo appears, press and hold the Volume Down and Volume Up buttons simultaneously until the device enters Disk Mode.
    -Jason

  • How to do another thing before returning of a buffered waveform generation?

    Hi There,
    The DAC0 and DAC1 of PCI-6024E are used to generate waveforms by the buffered analog output mode. We know that before the buffered generation is completed, the starting function of generating waveform, either "WFM_op" or "WFM_Group_Control",will not return, unless you call "Timeout_Config". In my application developed by Visual C++, I hope that after starting the waveform generation process, I can do another thing, for example, plotting data or data processing. Would you tell me how to do that? I greatly appreciate you for any reply and suggestions.
    Kylin

    Kylin,
    Actually, WFM_Group_Control() is not synchronous. It is asynchronous and will return immediately after the generation has been started. I would suggest that you take a look at the following examples. They are located in C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ao:
    WFMsingleBufAsync.C
    WFMsingleBufSync.C
    WFMsingleBufAsync.C is an asynchronous generation that uses WFM_Group_Control(). On the other hand, WFMsingleBufSync.C is a synchronous generation that uses WFM_Op(). In your situation, you would want to follow the programming structure of WFMsingleBufAsync.C.
    Good luck with your application.
    Spencer S.

  • Where can i get my ipod touch 5th generation screen replaced for, like, $50 to $60 dollars?

    where can i get my ipod touch 5th generation screen replaced for, like, $50 to $60 dollars? I broke it a few days ago and so far havent been able to find a place to repair it. Also,it would be best if the place was online, because live in a small town with virtually no places to get this done. If you could help that would be sooo amazing! Thank you!

    We can not advise you on getting unauthorized service for your iPod.
    Keep in mind that Apple does NOT sell parts
    The only possible sources for parts if you have it done by someone other than Apple are:
    Stolen parts
    Counterfeit parts
    Salvaged parts

  • How can I get into my ipod 5th generation if I forgot the passcode?

    How can I get into my ipod 5th generation if I forgot my passcode?

    Forgotten Screen-Lock Passcode
    Connect the iOS device to your computer and try to make a backup
    iOS: How to back up
    Then restore via iTunes. The iOS device will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store   
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • HT1510 Is there a way to get the IPod Shuffle 3rd generation to go to the beginning of the playlist/music so I can go on the "Play In Order" mode and have it start from the beginning.

    Is there a way to get the IPod Shuffle 3rd generation to go to the beginning of the playlist/music so I can go on the "Play In Order" mode and have it start from the beginning.

    gakansas wrote:
    It has some songs I would like to keep
    There is no legal way to do this-  You would need to be using the same AppleID (account)
    As far as deleting the songs, in a situation like this, you should restore the iPod which will delete the songs as well as allow you to sync your own music.
    For instructions on how to delete/add songs  it's best to check the manual:
    http://support.apple.com/manuals/#ipod
    As far as restoring, you didn't mention what model you are using but just choose your model from here (they have step by step instructions):
    http://www.apple.com/support/ipod/

  • Any example code using Generic IVI Scope driver to get an External Trigger from a Scope?

    I'm using a LeCroy WavePro 950.

    I have done that using a "waverunner" if memory serves me correctly.
    Did you check out the driver available for download from this site?
    http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/bd22a2bf3d4a5503862569a7007778d7?OpenDocument
    I first had to figure out how to get the scope trigger manually. Once I had that figured, I was able to adapt the example to do the triggering.
    Hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How do I get my ipod touch 5th generation to always use my car speakers when I plug it into the USB port?

    How do I get my ipod touch 5th generation to always use my car speakers when I plug it into the USB port?

    If the problem occurs after you restore it to factory defaults/new iPod then it is likely a hardware problem.  I would make an appointment at the Genius Bar of an Apple store.

  • Waveform generation VIs

    When a waveform generation VI is used in code, will it not keep
    generating as long as the code is active,  till the Reset node (
    if available ) is pulled high ?
    But it appears that to do so, the waveform VI has to be inside of
    a  while loop. I tried to run a while loop and a function
    generator VI outside of it as a trial . But found that, after the first
    call, the waveform VI was idle and it was only the while loop that was
    executing. Can someone clarify on this.
    I would have expected that the function generator VI  to start and
    continue till the whole code containing it is stopped. Is that too much
    to expect
    Raghunathan
    Raghunathan
    LV2012 to Automate Hydraulic Test rigs.

    Along the same line, I noticed the same comment in the help file:
    "This VI remembers the time stamp of the previous waveform generated and continues to increment the time stamp from that point"
    Seems to me that the VI should be keeping track of the Number of Samples and the Sample's Per Second based on the last time the VI was run (whether in a loop or not) So why is it that this VI seems to rely on the sampling rate of the loop itself? If I increase the Millisecond Wait Time my generated signal slows and when I decrease my millisecond wait time my generated signal updates much faster.
     Run the attached VI (LV 8.2.1)
    Message Edited by craige on 10-27-2008 11:22 AM
    Attachments:
    Test_Chart.vi ‏20 KB

  • Continuous waveform generation with PXI7952 & NI6587

    Hello Everybody,
    I am looking for code exemple in LabView 2009 for continous waveform generation with PXI-7952 & NI 6587.
    Thanks for you help.

    Bonjour,
    Pour la carte FPGA PXI-7952R il y'a une application de référence ici : http://zone.ni.com/devzone/cda/epd/p/id/6066
    Pour l'autre carte étant une carte numérique vous trouverez un tas d'exemples dans LabVIEW via le menu Aide » Recherche d'exemples.
    Cordialement,
    Da Helmut

Maybe you are looking for

  • How to get the total amount and hide the field

    Hi Experts, In Crystal report parameter screen, user has the option to Mutliselect either Donor or Grant or Donor & Grant; based on that in report output user is expected to see list of Donors with Grand Total. Requirement is not to split Amount by D

  • Reg Modification of a field in internal table.

    Hi i have requirement like this. I have a header and an items in a report. In header, i need to display the no. of . items(count). In my report i am displaying the records before moving to internal table(Direct write). Also i want to download that re

  • HT4623 how can i sync my music from my apple pc to my iPhone 4s

    how can i sync my music from my apple pc to my iphone 4s

  • Looking for / adding a html logo to website

    Hi there, I'm looking for the html code for a flashing logo (ideally simulating neon) so that I can add it to my iWeb page that I am making for my music. Does anyone know if this is possible and have any advice or ideas on how I could achieve this? I

  • WebService action in BLS

    I exposed a BLS transaction using http://<server:port>/XMII/WSDLGen/<transaction name>. Is it possible to communicate with this transaction through a WebService action  block in another transaction.? I have successfully used the WebService action blo