Modulo breakpoint automatic re-enabling

Hi,
I have a PCI-7342 board connected to a MID-7652 box that is being used to control a servo motor on a rotary axis with an encoder. I also have a PCIe-6323 board that is used to read a quadrature linear encoder on the counter using DAQmx and I am programming in C. As the axis rotates, it passes breakpoints and sends a trigger signal in order for the counter to latch a reading from the quadrature encoder.
The DAQmx is set up using the following functions:
     DAQmxCreateTask(, &thHandle);
     DAQmxCreateCILinEncoderChan(thHandle, "Dev1/ctr0", , , , , , , , , );
     DAQmxCfgSampClkTiming(thHandle, "/Dev1/PFI0", , , , );
     DAQmxStartTask(thHandle);
This sets up the counter to be latched every time a signal arrives at the PFI0 terminal. I have connected the breakpoint output from the MID-7652 box to PFI0.
The rotary axis is configured with modulo breakpoints using the following functions:
     flex_configure_breakpoint(, , NIMC_MODULO_BREAKPOINT, NIMC_RESET_BREAKPOINT, );
     flex_load_bp_modulus(, , 250, );
     flex_load_pos_bp(, , 0, );
     flex_enable_breakpoint(, , NIMC_TRUE);
Due to modulo breakpoints, I have to call flex_enable_breakpoint(, , NIMC_TRUE); every time a breakpoint occurs in order for the next breakpoint to be able to trigger.
The problem I have lies in the next stage. I want to call the read function which will wait for incoming trigger on PFI0. So I call the function:
     DAQmxReadCounterF64(thHandle, -1, dTimeOut, , , , );
Next in my code I start the motion of the rotary axis
     flex_start(, , );
     do
          flex_read_axis_status_rtn(, , &usAxisStatus);
          usBPStatus = !((usAxisStatus & NIMC_POS_BREAKPOINT_BIT)==0);
          if (usBPStatus)
               flex_enable_breakpoint(, , NIMC_TRUE);
} while ( !(usAxisStatus & (NIMC_MOVE_COMPLETE_BIT | NIMC_AXIS_OFF_BIT )));
But this line is never reached because the DAQmxReadCounterF64() function keeps waiting for an input at the PFI0 terminal and blocks the program from running and times out, returning an error.
I have tried rearranging the order of the functions by calling flex_start(); first and then DAQmxReadCounterF64() before the do-while loop.
The problem with this method is that the DAQmxReadCounterF64() function blocks the runtime and so the second breakpoint is never enabled. The function again times out and returns an error.
I have already asked about a way around the DAQmxReadCounterF64() timeout in the other message boards. Is there a way around the re-enabling of the breakpoints? Can it be done automatically or internally on the PCI-7342?

Hi,
Please keep this question to 1 thread
Original thread: http://forums.ni.com/t5/Multifunction-DAQ/DAQmxReadCounterF64-timeouts-blocking-program-runtime/td-p...

Similar Messages

  • RV120W WAN interface doesn't automatically re-enable after WAN connection is restored

    I found that RV120W WAN interface doesn't automatically re-enable after a cable pull and re-plug.  I have to go into the Status->System Summary and click the "Enable" button.  Is this normal on this router?  Can I prevent that from happening? I would hope this is NOT normal as this would mean that I would have to be on-site and login to the web interface to re-enable it after a power failure or WAN link loss.

    Tekliu,
    Thanks for the response. But, as I mentioned in my prior post, this is, unfortunately, the designed behavior for this device, at least with a static IP and no ISP login. Cisco Small Business Customer Support was clear on this and didn't even open a ticket. I asked that they submit a feature request to change this behavior in a future release. Of course, they couldn't make any promises.
    One possible source of confusion is the different circumstances that can occur. In my testing, the interface does come back up automatically on a soft reboot. It also comes back up automatically if both the RV120W and the upstream (WAN) device are power cycled together. I believe this is because the upstream device comes up much faster and is up before the RV120W. The case we are talking about is when the upstream device is cycled or the cable is pulled while the RV120W stays up. In this case, the WAN port remains disabled until you manually select the button on the status page.
    Thanks again for following up on this.

  • I've been trying to get a book sample and a dialogue box comes up saying: To receive book samples, you need a device with the latest versions of iOS and ibooks installed and Automatic Download enabled.  I have iBooks installed and automatic download enabl

    I've been trying to get a book sample and a dialogue box comes up saying: To receive book samples, you need a device with the latest versions of iOS and ibooks installed and Automatic Download enabled.  I have iBooks installed and automatic download enabled.  I don't know if it's talking about a new version of iOS on my iphone or my laptop. You people sure like to make things difficult.

    trevbeats,
    I had the same problem. It turned out the issue for me was that I had Automatic downloads turned off on my devices!
    see below how to turn it on.
    Tap Settings > iTunes & App Stores on your device.
    Tap Sign In if you're not already signed in to the iTunes Store.
    Enter your Apple ID and password.
    Tap On/Off switch to enable or disable Automatic Downloads for each content type.

  • VIPRE Agent Shutdown - automatically re-enable?

    No, there's nothing automatic that I've ever heard of.

    No, none of them need rebooting. That column is empty for all of them.
    My real question isn't about how to get the agents enabled, because I'm sure I can do that manually.
    I'd like to know if VIPRE tries to automatically re-enable those agents. If so, is there any documentation that supports that? I looked in the admin guide and I couldn't find anything that indicates that VIPRE tries to automatically re-enable agents that have been shut down.
    Thanks!

  • HT201077 I have Photo Stream enabled with Automatic downloads enabled. Yet when I try to join a Photo stream I get referred to The I Cloud start support page - this happens for both my Mac and my IPad. What can I do?

    I have Photo Stream enabled with Automatic downloads enabled. Yet when I try to join a Photo stream I get referred to The I Cloud start support page - this happens for both my Mac and my IPad. What can I do?

    The following is from this Apple Document: iCloud: Photo Stream FAQ
    What do I need to use Photo Stream?
    To use Photo Stream, including Shared Photo Streams, you need an iCloud account, compatible devices, and up-to-date software:
    iPhone, iPad, or iPod touch with iOS 6.0 or later
    Mac with OS X Mountain Lion v10.8.2 or later and iPhoto 9.4 or Aperture 3.4 or later
    PC with Windows 8, Windows 7, or Windows Vista (Service Pack 2) and the iCloud Control Panel 2.1 or later for Windows
    Apple TV (2nd generation) with Software Update 5.1 or later
    You can still use Photo Stream without Shared Photo Streams if your devices meet these requirements:
    iPhone, iPad, or iPod touch with iOS 5.1 or later
    Mac with OS X Lion v10.7.5 or later and iPhoto 9.2.2 or Aperture 3.2.3 or later
    PC with Windows 7 or Windows Vista (Service Pack 2) and the iCloud Control Panel v2.0 or later for Windows
    Apple TV (2nd generation) with Software Update 5.0 or later
    For complete iCloud setup instructions, visit How to set up iCloud.
    You need Mt. Lion in order to use Shared Photo Streams.
    OT

  • Automatic activity Enable Solution Manager Usage failed

         Hi All,
    I tried to perform automatic activity Enable Solution Manager Usage. But it failed. In log I found:
    In sm37:
    Could you please help me to resolve this issue?
    Thanks a lot,
    Alexander

    Hello Aleksandr,
    Below notes describe solution which is the same as yours
    2001589 - In Solution Manager Setup step "Activate BW content for RCA" fails with error in InfoObject 0SMD_NOEX
    1580108 - Setup Technical Monitoring: Error in BI Content Activation
    BR,
    K.

  • How Secure is my iPhone/  provide automatic re-enable of a phone that has set do not disturb.

    There are many articles about how smart phones can be hacked to do things not desired.  One I saw discussed recently is that a Smart Phone when turned on
    can be send codes to put it in eavesdropping mode where the phone is asking as a transmitter of what is said near it to a phone connection opened by the codes
    sent to turn it on.
    One workaround suggested in some discussions was to require everyone to remove the battery from their phone so there is no power for eavesdropping.  Obviously this won't work on an iPhone since the batteries are not removable.  Does the phone provide protection from having eavesdropping instructions from being sent to it?  Is there a way to temporarily disable the phone so it won't respond to such attempts?  If the phone is fully shut down (hold the button down until the turn off option appears and you slide the slide bar to turn it off.  Will it still respond to signals sent to it via the telephone connection or blue tooth link?  Is there a simple way to turn off that capability which allows the user to turn it back on easily when in possession of the phone?
    There is a feature to disable receiving calls or messages during a period selected in settings where you give the start and stop of the do not disturb function.
    However, I find Do Not Disturb sadly lacking.  If I go into  meeting for theater and am asked to silence my phone Do Not Disturb seems perfect for that need.  However the next morning when my coworkers ask why my phone is disabled, I have to admit I forgot to turn it back on.  What I really need is an option from the easy settings to disable no longer than 2 hours (length of the meeting, concern, movie, dinner party, etc.  then I do not need to remember to turn it back on.
    If I set the start and stop time for the do not disturb option for now, if I don't remember to clear it, mu phone will re-enable at the right time but the next day it will go "dark" for the same interval even if I am free.  Was this feature ever tested using real people doing real life situations?  I found holes in the design and easy ways Apple could fix them.  But they keep ignoring my suggestions.
    It seems if a feature idea did not come from the design team, the design team does not deign to read and evaluated decent ideas from customers.  I have talked with a number of long term iPhone users who would like such a feature.  I don't know if the competition is doing anything like it.

    This is a user-to-user support forum. A good place for suggestions to Apple is https://www.apple.com/feedback/iphone.html

  • Automatic comment enabling in Acrobat 9

    Hi,
    I read somewhere that Acrobat 9 auto-enables commenting. After going through the software, I can only find that it does this through a review. Anyone have a clue on how to do this without creating a review?
    Thanks,
    JP

    You are correct about enabling commenting for Reader.
    However, I was under the assumption that Acrobat Pro 9 didn't require the user to manually enable commenting for Reader. Did I just get misinformation about this feature? Or is there a setting somewhere that I'm missing in Preferences?
    JP

  • Automate record enable on a track???

    I want to set up 2 instrument tracks for live use. I want to have different plugin/sounds on each track. I want to automate the record button so I can switch between sound as my backing tracks play. Is there a way to do this?
    Thanks
    JE

    You could set up the instrument track have them both on record and automate the mutes.

  • How can i re-automate/re-enable the daily, weekly, & monthly 'tasks'

    some time ago i was having trouble burning a home video with imovie. one of the suggested remedies was to disable the overnight cleaning up tasks, which i did. however, i'd now like to reset this so that these tasks are once again automated whilst i sleep (currently using MacJanitor).
    but i cannot for the life of me work out how to do this. please help.

    Open the application TextEdit. Under the TextEdit menu open the Preferences. Under the heading New Document Atributes select the Plain text radio button. Under the heading Default Plain Text Encodings select Unicode(UTF-8) in the drop down menu by Save:. Under the heading Saving check the box Overwrite read-only files. Put TextEdit into your Dock.
    From the Finder > Go menu select Go to Folder... Type /etc in the dialog box and press return. Locate the file- crontab. Drag the file onto the TextEdit icon in your Dock. The file should open. Your crontab file probably looks like this:
    # /etc/crontab
    SHELL=/bin/sh
    PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
    HOME=/var/log
    #minute hour mday month wday who command
    #*/5 * * * * root /usr/libexec/atrun
    # Run daily/weekly/monthly jobs.
    #15 3 * * * root periodic daily
    #30 4 * * 6 root periodic weekly
    #30 5 1 * * root periodic monthly
    You need to remove the # on the following three lines.
    #15 3 * * * root periodic daily
    #30 4 * * 6 root periodic weekly
    #30 5 1 * * root periodic monthly
    Save the file and you should be good to go.

  • How to enable automatic archiving?

    Hi!
    This is about Oracle 10.2.0.4 on Solaris.
    First the most important information.
    SQL>archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination ?/dbs/arch
    Oldest online log sequence 12
    Next log sequence to archive 12
    Current log sequence 17
    SQL> show parameter recov
    NAME TYPE VALUE
    db_recovery_file_dest string /data/MVS_P0/reco01
    db_recovery_file_dest_size big integer 98G
    recovery_parallelism integer 0
    SQL> show parameter archive
    NAME TYPE VALUE
    archive_lag_target integer 0
    log_archive_config string
    log_archive_dest string
    log_archive_dest_1 string
    log_archive_dest_10 string
    log_archive_dest_2 string
    log_archive_dest_3 string
    log_archive_dest_4 string
    log_archive_dest_5 string
    log_archive_dest_6 string
    log_archive_dest_7 string
    NAME TYPE VALUE
    log_archive_dest_8 string
    log_archive_dest_9 string
    log_archive_dest_state_1 string enable
    log_archive_dest_state_10 string enable
    log_archive_dest_state_2 string enable
    log_archive_dest_state_3 string enable
    log_archive_dest_state_4 string enable
    log_archive_dest_state_5 string enable
    log_archive_dest_state_6 string enable
    log_archive_dest_state_7 string enable
    log_archive_dest_state_8 string enable
    NAME TYPE VALUE
    log_archive_dest_state_9 string enable
    log_archive_duplex_dest string
    log_archive_format string %t_%s_%r.dbf
    log_archive_local_first boolean TRUE
    log_archive_max_processes integer 2
    log_archive_min_succeed_dest integer 1
    log_archive_start boolean FALSE
    log_archive_trace integer 0
    remote_archive_enable string true
    standby_archive_dest string ?/dbs/arch
    The problem
    When I do a 'alter system log switch' the lines below are shown in the alertlog:
    Errors in file /data/MVS_P0/admin/bdump/mvs_r1_arc0_12115.trc:
    ORA-16014: Message 16014 not found; No message file for product=RDBMS, facility=ORA; arguments: [6] [12]
    ORA-00312: Message 312 not found; No message file for product=RDBMS, facility=ORA; arguments: [6] [1] [data/MVS_P0/redo01/log06.rdo]
    SQL> select recid, completion_time, name from v$archived_log
    RECID COMPLETIO NAME
    1 23-JUL-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_07_23/o1_mf_1_1_48gf98jq_.arc
    2 23-JUL-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_07_23/o1_mf_1_2_48gfjvq1_.arc
    3 28-JUL-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_07_28/o1_mf_1_3_48vf0cns_.arc
    4 02-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_02/o1_mf_1_4_497pys3n_.arc
    5 06-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_06/o1_mf_1_5_49mfqbrb_.arc
    6 11-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_11/o1_mf_1_6_4b16ml0y_.arc
    7 17-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_17/o1_mf_1_7_4bhd48pc_.arc
    8 21-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_21/o1_mf_1_8_4bvlck3b_.arc
    9 22-AUG-08 /data/MVS_P0/reco01/arch/1_9_660770425.dbf
    10 22-AUG-08 /data/MVS_P0/reco01/arch/1_10_660770425.dbf
    11 22-AUG-08 /data/MVS_P0/reco01/arch/1_11_660770425.dbf
    11 rows selected.
    It looks like the archives are not written, or I can not find them. I check $ORACLE_HOME/dbs/arch and /data/MVS_P0/reco01 but it is not there. It worked before, but the person who configured it is on holiday. I know that I did 'something' that created archives (check the last three lines above), but that is somehow not working anymore.
    Can someone help me by finding the archives?
    (I need to make a online copy to create a standby-database, that is quite hard without archives. ;-))

    The query above does not show errors:
    DESTINATION STATUS FAIL_DATE VALID_NOW ERROR
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    9 rows selected.
    I have set the log_archive_dest_1 to location=/data/MVS_P0/reco01/arch reopen=5
    When I archive manually, the archives are written to /data/MVS_P0/reco01/arch

  • ISCSI Target Settings - disabling automatically enabled IP addresses

    Hey guys,
    I could find a way to disabling the "new network addresses will automatically be enabled" function within the iSCSI Target Settings or via powershell.
    Can anyone provide a good solution? For several reason I can't avoid to get new IPs regulary (dynamic IPv6 Environment)

    Hi,
    I’m a little unclear the issue. Do you want to the iSCSI Initiator always use a static IP address to connect the iSCSI Target even the IP address is automatically obtained? I cannot find there is such function. 
    You could refer to the article below to configure network connections between the initiator and Microsoft iSCSI Software Target.
    Microsoft iSCSI Software Target 3.2: Known Issues and Updates
    http://technet.microsoft.com/en-us/library/dd904411(v=ws.10).aspx
    Best Regards,
    Mandy 
    If you have any feedback on our support, please click
    here .
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to generate 2 breakpoints on an encoder using the NI-7344 without physically connecting the encoder to a second axis?

    I'm using the NI-7344 motion-controller (for the control of 2 servo-motors) in combination with an E-series DAQ-card.
    I need to acquire data at two different scanrates using breakpoints over RTSI, one channel for example every 10 encoderpulses, the second channel for example every 200 encoderpulses.
    I'm using on onboard program that uses the modulo breakpoint for generating a pulsetrain over RTSI, but I also need a breakpoint (from an unused axis) to generate the other pulsetrain.
    Is there perhaps a way to tell an axis to use the encoder from another axis so the breakpoint can be generated at this axis without having to connect o
    ne encoder to two different axis?
    thanx

    Hello,
    I am alittle confused about your application, but maybe this will answer your questions. In the "Configure Breakpoint VI" you can set the Axis or Encoder input as the following: Axis or Encoder is the axis or encoder to be controlled. You can enable Breakpoint Position on encoders mapped to axes 1 through 6 or directly on encoders 0x21 through 0x24.
    So you can use an encoder that is not mapped to that axis.
    Please let me know if this was not your question.
    Regards,
    Andy Bell
    Applications Engineer
    National Instruments

  • Why does iTunes automatically sign me in to my acct. after I have logged out?

    This is very annyoing. I logged out for a reason - hello.
    It's bad enough that iTunes contiunally badgers you to sign in whenever you access your music library. But even worse, despite declining the multiple prompts to sign in, the system does so anyway... behind your back!
    And before I get the standard repsoneses, No I don't use iTunes Match, No I don't have Automatic Downloads enabled, in fact, I didn't even have wi-fi enabled at the time (it used my cellular data - which, BTW, is turned off for Music!)
    This becomes a big issue for me, because if I don't sign out of my iTunes acct. before synching my music, iTunes takes the liberty of renaming all my music to match their exact decsriptions in the store. Another rdiculous problem. So I've learned this work-around, the hard way, and now I have the magic login fairy to contend with.
    I've said it before it in several other posts, if a person doesn't use iTunes Match, Automatic Downlods, or store their music in iCloud, then don't touch my music.
    Anyone else have this issue?

    Yes. The screen is showing iPhone in Recovery Mode and needs to be Restored with current iTunes on computer.

  • Is there a way to automatically open the Activity Viewer & make it float?

    I just upgraded from Panther Mail, and I really miss knowing what was going on and having to constantly open the activity viewer and reordering the windows every time I do something. Is there a way to somehow make the activity viewer open with mail each time and keep it floating above the other windows (so I can have an indication of what's going on like in Panther Mail)?
    I'm afraid I'm going to shut mail down in the middle of a crucial activity. No doubt that might well be behind all the problems that develop with it over time.
    Thanks!

    I had two problems relating directly to the Tiger upgrade, one I solved with help here. That was importing saved mail that failed to be imported into one mailbox, the saved messages were showing up as IMAP messages ("haven't been downloaded from the server yet"). When both my accounts were POP, I never even had an IMAP account. I solved that and everything else with mail is fine now, except I want to see what's going on like I was able to in Panther. I especially miss not seeing outgoing mail sent progress, especially with long messages.
    The other issue was font related, and I still cannot get Fontbook to save the fonts I have disabled, so I just removed the duplicates manually (leaving the ones in the system folder as the defaults). As long as I don't open fontbook again, and it doesn't automatically re-enable the fonts, my system is fine. I will leave it alone now for a couple of years like I was able to in Panther. I have over 3000 fonts installed and available at all times which I need for my print work.
    Other than that and a 25 minute log-in time (as it reads the fonts; in Panther it was 7 minutes and I learned to live with that) everything is finally ok.
    The long log-in might also be Spotless related; I don't know enough about it to figure it out; all I know is if it is, it is a small price to pay for the way the system flies not having to index all my loaded drives all the time, not to mention the wear and tear on my drives.
    Tiger is so much faster than Panther (once I shut down Spotlight) it's like having a processor upgrade. Once you work out all the glitches, it's definitely worth the money and time put in. I was very careful with the install... counting backup time the usual precautions and updates to everything afterward (including third-party programs), it took over 30 hours.
    Thanks!

Maybe you are looking for

  • Long text not displayed in outpur of adhoc query

    Hi, I am trying to run an ad hoc query in which i need the Org unit long text in the output. When i run i only see the short text of the Org unit.I tried changing the output display option as 'Value and text' and 'text' both but it shows the short te

  • Send concert from movie to video in itunes

    I have some concerts in my apple tv and i would like to see in my music videos not in movies, some can help me? in my itunes librery my concerts are in movies seccion and i would send to music seccion, but i can't.

  • Removing line from Portrait layout

    I have a line that I would like to remove. In portrait layout, Basic Template there is a vertical line between text image that is getting in the way of my two column text. Highlighted as the red vertical line below. It doesn't seem to be removable??

  • Need Help with Dates

    I am printing a calendar and certain events will be helds on certain dates. One can edit the event if it has not passed the date. Events in the past can be viewed but not edited. When I query the database the date must be formatted dd-MMM-yy I am abl

  • Status in Prometric Website under candidate history showing "Pending".

    Hi I taken my 70-486 (Microsoft mvc 4.0) exam in prometric center on 5/17/2014 and passed with 940/1000 and they given printed mark sheet but in prometric  website under candidate history  status column showing "Pending" instead of pass. I used Micro