Can I have a general daq event in visual basic while outputing in dma mode?

Hardware: PCI-6711
Software: Visual Basic 6.0
NI-DAQ 6.9.3f3
Windows 2000
I can't get the GeneralDAQEvent_Fire subroutine to happen. I'm trying to output two synchronized waveforms on two channels at sampling rates that can be changed on the fly. To do this, I've set the clock source of the channels to be the GPCTR1. I output on a pulse train on the GPCTR1 and adjust the pulse widths to vary the frequency. I need to be able to switch to the new pulse width at a precise time so that the correct samples are output at the correct samplerate. I want to generate a general daq event which fires whenever a certain number of pulses (and thus samples) on the GPCTR1 have been output. I will
then reset the event and output samplerate within the GeneralDAQEvent_Fire subroutine for the next section of samples. I need to output at up to 1 MSample/second, so I need to be using DMA mode. I have not read anywhere that DAQEvent 0 Aqcuired or Generated n Scans requires interrupt mode, am I wrong about this? I have set my Channel string to CTR1, does this reference the GPCTR1? I set the board, DAQTrigVal0 and enabled properties and then call the refresh method. Is there something else I should do?
I have been reading the NIDAQ Function Reference Help and the NIDAQ for PC Reference manual and have not found a solution. Any suggestions? Also, where can I find info on what the ConfigureDaqEvent method is supposed to do?

Roz,
First of all, I think you will want to use DAQ Event 1 since you desire for a message to be sent after every N updates. This will be more efficient than removing the current message and adding a new message each time the event fires. Furthermore, DAQ Events 0-2 can all be used with DMA transfers. However, you will be unable to use a counter channel with DAQ Events 0-2. Instead you should use one of the analog output channel you are clocking with the counter's output.
Good luck with your application.
Spencer S.

Similar Messages

  • Using the General DAQ Event control for Visual Basic

    HardwareCI_6711
    Software:Visual Basic
    running Windows 2000
    I'm trying to add the dacevent.ocx to my project and it won't install. I read off of http://digital.ni.com/public.nsf/3efedde4322fef198​62567740067f3cc/4dc40c5d3ff5e7cc862564a6007cf5c1?O​penDocument that the OC30.dll is required to do this. I can't find it on my system and I'm thinking that is why the ocx file won't load. Where can I find this dll? Are there any other requirements for adding the control? I may also be trying to install it the wrong way: I am just using the open file command in my project and selecting daqevent.ocx from the nidaq folder in WINNT. Any help would be much appreciated, thanks.

    Nevermind, I found it. And I was opening it wrong. I think I had actually already installed it as a reference and just forgot to add it to the components toolbar.
    ... wow, some days...

  • U00BFHow can I raise an event from visual basic to BW?

    Im looking for simple vb code that will raise and event that will trigger some process chains I have in bw.
    something similar to
    Set R3 = CreateObject("SAP.Functions")
    R3.RaiseEvent("myEvent")
    I'm sure I saw the code before, but I have looked for hours and couldnt find it again.
    Thanks!
    David G

    Hello, this is how I finally did it and it is working pretty well.
    In SAP
    1. In SM62 Create new Event: ZGDREV01
    2. In RSPC (Process Chain Maintenance)
    - Start Variant after Event : ZGDREV01
    Periodic Job: Checked (other wise it wil just trigger once)   
    3. In SE37 Created a new function module:
    Attributes: Remote-Enabled Module
    Import:  EVENTID (char string)
    Source Code:
    FUNCTION ZGDRFM08.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(EVENTID) TYPE  ZTXTSH
      CALL FUNCTION 'BP_EVENT_RAISE'
      exporting
      eventid = EVENTID.
    ENDFUNCTION.
    4. In Visual Basic
    Public Const TRANDATA_EVENTID = "ZGDREV01" ' EventId to be Raised
    Private Sub cmdStartLoad_Click()
       Dim R3 as object
       Set R3 = CreateObject("SAP.Functions")
       Call TriggerLoadEvent(R3, TRANDATA_EVENTID)
    End Sub
    Public Function TriggerLoadEvent(ByRef R3 As Object, ByVal event_id As String) As Boolean
        Dim FuncVal As Object
        Dim param_event As Object
        On Error GoTo errHandler
        Set FuncVal = R3.Add("ZGDRFM08")
        Set param_event = FuncVal.Exports("EVENTID")
        param_event.value = event_id
        TriggerLoadEvent = FuncVal.call
        Exit Function
    errHandler:
        MsgBox Err.description
    End Function
    Edited by: David Guerra Farias on Feb 11, 2008 11:13 PM

  • Can you have nested event loops?

    I am trying to use a nested event structure and am have a lot of trouble getting it to work right. On the block diagram I have 5 events that I am looking for. When I hit the baseline button I have an abort button become visible and I want that button to control the vi that I have running in that event, but once the baseline event starts I am not able to push the abort button or any other button for that matter. I started with the user event handler template. Attached you will find a copy of my program, If you decide to run it you need to choose comm port 0 when it asks or else the program will hang. Should I be using a different type of template for this program? This is also a problem when the assay button and save buttons ar
    e pressed.
    THanks
    Attachments:
    labview.zip ‏277 KB

    I opened the code and was missing a DLL and some controls so I was not able to run it. However I still may be able to help.
    Basically I have never had a need for impeded event structures because they are very hard to get right, and in general are not needed. I believe some of the event structure caveats mention this, or the 2 events in a loop are similar.
    Anyways the reason it is dangerous is that they can lock each other. As soon as your VI starts running the structures start watching for value changes. They all share the same event queue so they are all watching the same stack of events.
    So in your code if I hit the Buttons.Save Data button and then I decide to hit it again, or I decide to hit the Buttons.Stop your VI will lock up. If I then hit the S
    aveAssay button it does not matter.
    Here is the reasoning. The queue of events looks like: Save Data, then Stop, and then SaveAssay. The SaveData is handled first so I enter that case. Now before I finish that events code, I must run the impeded event structure due to dataflow. However because I hit Stop next, it is the next thing in the event queue. The impeded event structure is waiting for a SaveAssay or SaveBaseline event, and will not finish until it can process that event.
    However LabVIEW events can not be thrown away so the Stop MUST be handled before the SaveAssay can. So in your case the event structure is waiting to handle the SaveAssay but the Stop must be handled first. However the stop can not be handled until the SaveData finishes, which it can�t.
    Therefore you end up locked. LabVIEW can not finish the handling of one event until another is handled, and data flow won�t allow that.
    Sorry for the novel here. If you have any questions let me know, I real
    ize this is a confusing answer, but the issue is complicated.

  • Can I have a photo in more than one event?

    I understand that it is normally not possible to have one photo in more than one event at a time.
    I am quite careful about arranging my photos into events logically, but find in my library tere are several events called [Date] Photo Stream, which I've not delivberately created. It appears that in many cases the photos these Photo stream events contain are also in other events.
    Can anyone tell me what is going on here? Can I safely delete the Photostream events and their contents?

    To have a photo in more than one Event it must be duplicated and the duplicate added to the other Event.  A photo can be in multiple albums, books, slideshows without having to duplicate the photo as those use pointers to the original photo.
    At the beginning of each month new photos in the Shoto Stream are imported into an Event with the month and year as the Event name.  All photos taken that month are added to that Event.  That's because the iPhoto/Photo Stream preferences are set to auto import photos taken by your mobile devices:
    Events are basically buckets of photos based on the date taken and how you've setup iPhoto's preferences for importing photos:
    Merging Events can change the location in the resulting event among the other events due to the variety of dates of the photos.
    OT

  • HT204266 I live in China, have Dutch nationality, and no US address or Credit Card; how can I have access to products from the US iTunes store, in particular music, when such items are not available from the China iTunes store? In general, what are the di

    I live in China, have Dutch nationality, and no US address or Credit Card; how can I have access to products from the US iTunes store, in particular music, when such items are not available from the China iTunes store? In general, what are the differences between countries' iTunes offerings? Does one really need an address and a credit card for any country to be able to access that countries iTunes store? Why these restrictions?

    You cannot.
    You cannot use another countrys itunes store.
    You must be physically locates inside the borders of a country to use that countrys itunes store and a credit card issued in that country with a valid billing address in that country.
    The owners of the distribution rights of movies/music/etc differ by country.  These distributors decide who can sell their content in that country.
    Buy from another source if your countrys itunes store does not carry somehting that you want.

  • I have a ipod touch and I can't put anything on the events there is no   in the right corner Like my sons

    I have an ipod touch and I can't put anything on the events there is no + sign in the corner like my sons ipod.

    I'm guessing you are referencing the Calendar app.
    Try resetting:
    Hold the home and power buttons at the same time until the Apple boot logo appears. No data will be lost.

  • Can I Use DAQ Event Message 9 with My PCI-6033?

    I would like to handle my counter board's interrupts by using DAQ event message 9. If Yes, I would to like to see an example in VB?

    Counter events are not supported under NI-DAQ for E series devices. It is possible that what you are trying to accomplish could be done just as easily with a timed loop in DAQmx, what is your application?

  • How can I stop iPhoto from showing Events?

    HI Folks,
    I've used iPhoto for a long time, and I am just completely frustrated at the existence of "Events."
    Every single time I take a photo and import it, I get a new event.
    Even worse, I have hundreds of unnamed "Events" because that method of organizing my photos makes no sense at all.
    When I import, there are generally multiple "events" documented in one import.
    Now I have to spend hours breaking up Events into smaller "Events" just to have it makes sense.
    Not very useful.
    The worst usability offense with Events, is that iPhoto defaults to displaying the Events page when it opens.
    Apple...I don't EVER want to see my photos organized by Events. EVER.
    MY questions:
    1. Please please tell me how I can remove the Events page completely.
    2. If that is not possible, please tell me how I can tell iPhoto to default to showing me the Photos page, NOT the Events page.
    3. Also, how can I view my photos on the Photos page without being broken up into events? (Without losing metadata like the date)
    Thanks,
    -The Craw, former Apple Technical Writer Guy

    A good general step for strange issues is to renew the iPhoto preference file - quit iPhoto and go to "your user name" ==> library ==> preferences ==> com.apple.iPhoto.plist and trash it - launch iPhoto which creates a fresh new default preference file and reset any personal preferences you have changed and if you have moved the iPhoto library repoint to it. This may help
    This does not affect your photos or any database information (keywords, faces, places, ratings, etc) in any way - they are stored in the iPhoto library - the iPhoto preference file simply controls how iPhoto works - which is why renewing it is a good first step.
    Make sure show event titles is off
    and you can merge or split events to make them more useful - you can not "turn them off" since they are just one of several optional views of your photos
    LN 

  • I hv lost my icon for iphoto on my Imac Mac OSX10.5.8.   I still hv my pics but can no longer creat albums and events.  If I upgrade to the latest Mountain Lion, will my pics go into the new iphoto?       I would like to update Mountain lion.Will

    I hv lost my icon for iphoto on my Imac Mac OSX10.5.8.   I still hv my pics but can no longer creat albums and events.  If I upgrade to the latest Mountain Lion, will my pics go into the new iphoto?

    From where did you lose the iPhoto icon? From the Dock? If so, then it's still in your Applications folder. Find it there then drag the icon back into the Dock. If it's no longer in Applications perhaps you've moved or renamed it. Use Spotlight to search for "iphoto."
    Upgrading to Mountain Lion will not affect your iPhoto Library unless you erase the hard drive first. Be sure you backup before any system upgrade.
    Upgrade Paths to Snow Leopard, Lion, and/or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99. To access the App Store you must have Snow Leopard 10.6.6 or later installed.
    Upgrading to Snow Leopard
    You must purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s MobileMe service; fees and
               terms apply.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.
    Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion - System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer)
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer)
             3. MacBook Pro (Mid/Late 2007 or newer)
             4. MacBook Air (Late 2008 or newer)
             5. Mac mini (Early 2009 or newer)
             6. Mac Pro (Early 2008 or newer)
             7. Xserve (Early 2009)
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
         Am I eligible for the free upgrade?
             See Apple - Free OS X Mountain Lion upgrade Program.
         For a complete How-To introduction from Apple see Upgrade to OS X Mountain Lion.

  • Data display slow because I have too many DAQs displaying or poor coding?

    Attached is my VI, and I have 3 NI daqs running and giving me voltages for all the channels (32 total by the end of this, this is only the start). I want to display and record this information in real time. and still have options for recoding time events, etc. Am i going about breaking up my channels between the graphs and displaying everythign properly in the right way?  in addition to the recording setup i have? I really like how the daqmx lgos the data in a new sheet automatically each time and writes out the goup name, etc. it is exactly the type of file i want to have by the end of this so i gave up on getting a producer/consumer queue steup for the data collection that some people had recmmended to me. so you can Ignore the queue stuff, it is there for something i wanted to try and does nothing right now. just didnt feel like deleting it and couldnt figure out how to "comment" out labview blocks.
    thank you for the feedback.
    Attachments:
    daqtester.vi ‏88 KB

    labview12110 wrote:
    Dennis_Knutson wrote:
    Splits them sequentially and it converts to the evil dynamic data type. Stick with the split array.
    okay im getting some mixed signals here (get it )  is it a good idea to use the split or not? Crossrulz said that it would help me avoid the data type...
    I say to use the Split Array.  It does the splitting sequencially and you can dynamically tell it where to do the split.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • DAQ Event messaging in C++

    I am about to develop a data acquisition application using PCI-3071E
    and Microsoft Visual C++. Are there any sample code demonstrating
    adding message events to the Window messaging queue. Most of the code
    examples that I have found on the Ni.com website show inline coding.
    Thanks
    John

    Hello John,
    if you want to use asynchrone events, you must use the function Config_DAQ_Event_Message. You can receive events on window port or callback function.
    I send you a small programm that I have made to demonstrate a bug under NI-DAQ 6.9.1 with Config_DAQ_Event_Message (bug is with external scan clock and multiple of x scan events, normally you never see it) and can be use with every DAQ-STC card.
    Search in the code the first Config_DAQ_Event_Message and the comment //not used handle. In your application, change it to your window handle (change WM_USER to what you want) and in your window messaging queue, add ON_MESSAGE(WM_USER, OnDAQEvent) with afx_msg LRESULT YourWindow:nDAQEvent(WPARAM w, LPARAM l).
    See Config_DAQ_Event_Message for sig
    nification of w, l parameters.
    Hope this will help,
    Grettings,
    Alain
    Attachments:
    TestNIConfigDAQEvent2.zip ‏11 KB

  • I have a new Palm Pre Plus - can I have more than one Google G-Mail Account on the phone?

    I have a general G-Mail account and it has started getting too busy with advertisements etc.  I'm thinking about changing to a different e-mail address but don't know what yet.
    I have an old Palm Centro I used to Synch with my laptop.  Now I need to do this with G-Mail.  So I created a unique g-mail account that would only contain my calendar and contact information - i called it "palm.last name" - made sense to me.
    When I try to add it to my Palm Pre Plus I am unable to sign in.  I'm wondering if you are limited to the number of Gmail e-mail accounts you can have on the phone.  If i can only have 1 then I don't want my e-mail to be "palm.last name" and give that out to people - that would not make sense to them. 
    I already have a Yahoo Account and I'm thinking about another Yahoo Account to keep some e-mails and instant messages separate from my personal Yahoo.  If I cannot add more than 1 account, this is going to be a problem.
    Thank you for any assistance you can provide.

    Hi, and welcome to the Palm Support Community.
    You should be able to add your second Gmail account without any problem...I have two Gmail accounts on my Pre and have no difficulties.
    When you say you are unable to "sign in", I assume you mean you are unable to sync the email and calendar on your new account?  Double-checking your user name and password are the only things that come to mind.
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • HT4085 So does this mean that I cannot have rotation lock off and the mute function off at the same time? In other words, can I have my screen rotate automatically as I hold my iPad in either portrait or landscape AND hear sounds from my apps at the same

    So does this mean that I cannot have rotation lock off and the mute function off at the same time? In other words, can I have my screen rotate automatically as I hold my iPad in either portrait or landscape AND hear sounds from my apps at the same time?

    In other words, can I have my screen rotate automatically as I hold my iPad in either portrait or landscape AND hear sounds from my apps at the same time?
    Yes, you can. You can configure the Side Switch (above the volume button) either as Mute switch or Rotation lock.
    Settings > General > Use Side Switch to: choose what you like the Side Switch to function as.

  • How can I have Main report with a sub-report with in a sub-report??

    I have a main report that has about 5 subreports, almost like a dashboard.  I need to make one of those subreports contain another subreport.
    I don't have the option to add a sub-report with in my sub-report, so what I thought would work is remove my sub-report from my main report, then add my new sub-report, then add that report back to my main report.
    Everytime I add the sub-report that has a sub-report to my main report I lose the second sub.
    From what I've read on the internet is you can't have a sub-report contain another sub-report.  What some say is you can hyperlink that second sub report.
    When I setup my hyper link to open the second sub-report I'm prompted to re-enter my report parameters.
    Can some help me link a sub-report to a sub-report or show me how to pass a date range parameter in my hyper link so the reports just opens up?
    I'm using CR IX R2
    Thanks

    Nate,
    You are dealing with a product limitation.  Crystal cannot have nested subreports within a sub report. 
    You can generally use shared variables between sub reports to achieve your desired result

Maybe you are looking for

  • Audigy 2 ZS Platinum Pro to front case ja

    Hello everybody! Joined the forum to see if I could get this here question figured out. I've done a whole bunch of searching for the issue, stared at my card and manuals for... a long time... and cannot seem to come up with a solution. I love Creativ

  • Safari & Adobe Flash Player

    Some sites requiring Adobe Flash Player 10,0,45,2 on Safari won't launch to play videos. Here is an example: http://www.ktuu.com The Top Videos on the right hand side show an arrow to click on. However, when I click to play them, nothing happens. I h

  • Renaming movie file

    I can't rename one of my movie files in itunes. Everytime I change the title through the info, it goes back to the original title. I checked to make sure that I had read/write privleges and I do. What should I do?

  • Reports Services with Oracle9iAS v9.03

    I am using Oracle Application Server9i ver 9.0.3. I want to install Oracle Report Services on it. Can I install Oracle Report Services 10g 9.0.4 on it? If not then plz tell me the exact location where i can download Oracle Report Service 9.0.3.

  • Why does firefox keep crashing my PC?

    I have been using firefox for years now and up until last week I have not had any problems. However, firefox started crashing my PC and forcing it to restart and my registry started getting all thrown out of whack! I have uninstalled and reinstalled