How to Use / Configure Eclipse Ganymede to use OC4J in SOA / OAS

Hi all
Just wanted to share this with you all,
For quite a while now I've been trying to get eclipse to add applications and delopy applications to the OC4J embedded in the OAS/SOA but found very little help out there but I seem to have found a work around
I know that I could have used the OC4J standalone but we needed to use the one in the SOA
Note that the OC4J found in OAS/SOA components is managed by OPMN so you cannot stop or start it from eclipse however you can deploy applications and BPEL processes to it from eclipse. You can also associate applications with the oc4j in the OAS in your eclipse project. If you need to stop and start OC4J in the OAS, then use opmnctl.
The reason eclipse will not use OC4J in the SOA/OAS is because eclipse tries to start the OC4J but seeing as that is managed by opmn, it fails but if you had a way of telling eclipse that it it did not need to start the OC4J (it has already been started), then eclipse will use it happily without trying to start it
Here goes
Start the SOA/OAS Components using opmnctl startall from command prompt
In Eclipse Goto Window > Show View> Other > Server > Server
The Server View should now open up
Right Click > New > Select your version of the OC4J > Click Next > Point the Oracle J2EE Home to OAS_HOME\j2ee\home > Click Next > Fill in Details as they apply to you > Next > Select Any applications(If any )that you want associated with the OC4J and click Finsh
The the server state should say “stopped”
Close Eclipse
For (OEPE i.e. Oracle Enterprise Pack for Eclipse)
Open the plugin.xml file found at ECLIPSE_HOME\dropins\wtp\eclipse\plugins\org.eclipse.jst.server.generic.oc4j_1.5.205.v200805140145\plugin.xml
If you don’t have the above folder structure, then you maybe using the Standard version of Eclipse Ganymede in which case it may be @ ECLIPSE_HOME \plugins\org.eclipse.jst.server.generic.oc4j_1.5.205.v200805140145\plugin.xml
Search for the following String "<extension point="org.eclipse.wst.server.core.serverTypes">"
Make sure the id attribute for the serverType element corresponds to your version of the OC4J in the OAS i.e. id="org.eclipse.jst.server.generic.oracle10131". This corresponds to 10.1.3.x i.e. 10.1.3.1 and above
Either change the value of the initialState attribute to initialState="started" ot remove the initialState="stopped"
Save the file
If you are using OEPE, then there is a further step, you need to open %ECLIPSE_HOME%\ configuration\org.eclipse.core.runtime and delete .mainData.1. It will be recreated once eclipse starts up again
It seems that OEPE writes server information to this file and will not read the plugin.xml if this file exists. This rule applies to every change that you make to \plugins\org.eclipse.jst.server.generic.oc4j_1.5.205.v200805140145\plugin.xml
Startup eclipse
The server state should now say “started” i.e. if you used initialState="started"
You should now be able to deploy your BPEL Process or Other application to the OC4J in the OAS
This workaround is only valid if the SOA Components are running
Happy programming
NOTE. If you need to Stop and Start the OC4J, you will need to use opmnctl from outside eclipse. Trying to stop and start the OC4J from eclipse will fail as OC4J in the OAS is managed by OPMN.
Hope this helps someone out there!!!

Hello,
Java Beans Integration
http://forms.pjc.bean.over-blog.com/article-4018331.html
Hope it helps,
Jose.

Similar Messages

  • How to configure eclipse to debug while running tomcat

    Hi
    I using Eclipse 3.1, jdk 1.5 and tomcat 5.5 in my project
    how shall i configure eclipse, so that i can debug while tomcat is running in eclipse.
    it is not remote debugging, i want to debug it my PC.
    when i click Run->Dedug, i get a options window
    I will create new java application
    Now, What shall i specify for:
    Main class: (is it org.apache.catalina.startup.Bootstrap, but it is not working)
    Program arguments:
    VM Arguments:
    Regards
    Syed

    Have you installed the Tomcat plugin for Eclipse? http://www.sysdeo.com/eclipse/tomcatplugin
    If so, you need to create a new Tomcat project using the wizard:
    File->New->Project... then choose Java->Tomcat Project
    In the wizard, choose a project name, then uncheck the 'use default' checkbox in project contents and browse to your webapp's directory (within Tomcat/webapps). Then finish the wizard.
    Start Tomcat from within Eclipse - you can then add breakpoints etc to debug
    Regards,
    Martin

  • How do i configure the usb port on a draytek vigor 2820n router for use with my imac

    i have an imac connected to the internet through a draytek vigor 2820n router. this router has a USB port with a HP Deskjet 5560 printer attached (for use as a network printer for other machines on the network). How do I configure this printer on the iMAC?

    I checked on the HP web site. Your aswer is on the HP website under your printer type. Update your drivers and follow the instructions given by HP and the printer will work as you have it connected.
    Good Luck

  • HT3382 I have a Samsung VGA Monitor connected to my MacBook Pro using the Mini Display Port to VGA Adapter.  How do I configure the computer so that it doesn't sleep when I close the lid of the computer.

    I have a Samsung VGA Monitor connected to my MacBook Pro using the Mini Display Port to VGA Adapter.  How do I configure the computer so that it doesn't sleep when I close the lid of the computer.

    Hi alangium,
    Welcome to the Support Communities!
    Resetting your computer's PRAM should restore your Macbook Pro's screen appearance.
    OS X Mavericks: Reset your computer’s PRAM
    http://support.apple.com/kb/ph14222
    This article may provide some information about your Mini DisplayPort to AVI adapter.  Have you tried to connect a different VGA monitor to your Macbook to see if you get the same results?
    Apple Mini DisplayPort adapters: Frequently asked questions (FAQ)
    http://support.apple.com/kb/HT3382
    18. What is the maximum resolution available for use with the Apple Mini DisplayPort to VGA adapter?
    The resolution available with the Apple Mini DisplayPort to VGA Adapter is 1920 x 1200. VGA displays that use higher refresh rates (such as 85 Hz) at resolutions of 1600 x 1200 or greater may not generate video properly until you lower the refresh rate.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/HT1573#5
    How can I detect displays?
    If the detect displays option is not available, hold down the Option key while you are in the Display pane.
    How do I select additional resolutions on my display?
    You can use the Display pane of System Preferences to specify how your display works. Not all options appear for all display models. By default the best resolution for your display will already be selected in System Preferences.
    To select a different resolution, use the Scaled option. Some additional resolutions may be available when you hold the Option button.
    I hope this information helps ....
    - Judy

  • How-do-i-configure-guest-wifi-access-using-2504-wlc-fortigate-utm-l3-device

    Dear All
    I have a 2504 Wireless Controller with multiple radios attached. I currently have a "private" WLAN configured (taking ip from windows server based DHCP of Range 192.1681.0/24 ) and working, but I need to add a Guest/Public WLAN which should take the IP from Other DHCP Configured on Fortigate UTM of range 172.16.0.0/24.
    We have one SG300 switch in the office and the rest are basic switches.
    Our firewall/router is a Fortigate UTM 240D
    Find the attached network diagram for the issue.
    Is there a SIMPLE way to enabling guest access that doesn't require VLANS (or are VLANS easier than I'm making them)? 
    Thanks.
    - See more at: https://supportforums.cisco.com/discussion/12473186/how-do-i-configure-guest-wifi-access-using-2504-wlc-fortigate-utm-l3-device#sthash.aj1XcWI0.dpuf

    Complete these steps in order to configure the devices for this network setup:
    http://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-vlan/70937-guest-internal-wlan.html
    Configure Dynamic Interfaces on the WLC for the Guest and Internal Users
    Create WLANs for the Guest and Internal Users
    Configure the Layer 2 Switch Port that Connects to the WLC as Trunk Port

  • How to use a stored procedure as a datasource in Crystal Report for Eclipse

    Hi All,
    I've written a stored procedure in oracle 10g with few input parameters and one refcursor output parameter. I want to use this stored procedure as a data source for creating a report in "Crystal Report For Eclipse 3.6.0".
    When I tried to add this stored procedure to the report using the connection explorer, I don't see any option to do this. But when I try to add any table, it shows options like "Add to the current report"....
    Can anybody assist me how to use a stored procedure as a data source in "Crystal Report For Eclipse"?
    Which driver should I use to connect to the oracle database? I tried using JDBC Driver for Oracle.
    Thanks in advance.

    Did you solve your problem? How did you do?

  • How do I use AirPort Extreme to be able print from my MacBook Pro AND a PC. If I connect printer into AirPort, I can only print on laptop. If printer is connected to PC hard drive, I can only print on desk top. How do I configure this to make both print?

    How do I use AirPort Extreme to be able print from my MacBook Pro AND a PC. If I connect printer into AirPort, I can only print on laptop. If printer is connected to PC hard drive, I can only print on desk top. How do I configure this to make both print?

    If you have not already done so, your chances will really improve if you....
    1) Connect the printer to the USB port on the AirPort Extreme
    2) Download and install Bonjour Print Services for Windows on the PC

  • Can Time Capsule be used as a time machine on a Windows Server.  Is this possible, and how do i configure this?

    I like to use the new TC in my office as a time machine on a Windows Server.  Is this possible, and how do i configure this?
    In fact my plan is to make the first back up by connecting to the server via an ethernet cable, but thereafter i like to bring the TC to my home and perform the incremental backups over the internet.  This is for safety reasons, in case for example the office is broken into, or flooded, or fire (god forbid).
    I sincerely hope it is possible, and not complicated.
    Alternatively i would not mind replacing our current Windows server 2003 with an Apple server, but all computers in the network (except mine) are Windows 7 or 8. Would it work?
    Thanks in advance.
    Paris

    I will consider the WD My Cloud device.
    It is a NAS.. it is designed to provide a cheap centralised file storage.
    What is NAS?? http://en.wikipedia.org/wiki/Network-attached_storage
    A file server like windows uses heaps of power to do very little.. in your setup.. In most setups like SBS it will do exchange server and provide a heap of useful connectivity to your clients.
    Since you are not using the windows server in anything but simple file serving you can replace with a NAS..
    Problem with the TC is, it is a router with a hard disk inside.. designed specifically for Time Machine.. it fails to provide what a NAS does.. easy access to any clients, local or remote.. TC is designed by apple for apple and the rest of world is not really invited to the party.
    It provides no backup.. no data protection.. and is so specifically apple orientated I do not think it works at all well with windows.
    For a simple example.. windows will have file issues with large files.. because it is only NTserver FAT32 to windows.. bad luck if you have large files.. !!
    Plainly if you use active directory in windows that facility is gone.
    I just like Apple products, find them more stable than Windows and easier to use.  Plus i can access the server from home if it is an Apple Server.
    If you only need remote access for yourself that is fine.. too bad for the windows clients I guess.
    Or you open it up to the world and bad luck for security.
    Apple do not design for mixed environment.. in fact with the TC there is no provision for windows access officially at all.. so anything you do is a fudge.
    You can use the TC for your Mac backups within the network.. that is fine. Apple provide no software at all to help with your windows clients.

  • How do I configure an enterprise application using Weblogic 10 wlconfig

    Hi All,
    I am converting an installer from WL8 to WL10. We use wlconfig to configure our EAR in wl8 with several wlconfig commands. These don't seem to work though when attempting to use wl10. The following error comes up more often than not and does not seem to be appropriate to what is actually happening.
    Unable to create new bean of type WebAppComponent for pcidomain_new:Name=GenPortal,Type=Application:missing create method
    I have searched the Weblogic Documentation and have found only general information on how to use wlconfig with a simple example that does not touch on application deployment. I have also found an MBean Reference but am unclear as to how to marry the two.
    It would be really great if someone knew where I might find a concrete example of creating an Enterprise application using WL10.
    Here is the current wlconfig task that we use successfully in weblogic 8.
    ${server-mbean} is read in earlier with a wlconfig query command.
              <wlconfig url="t3://${env.COMPUTERNAME}:${weblogic_port}" username="${weblogic_username}" password="${weblogic_password}">
                   <create type="Application" name="GenPortal" property="GenPortalApp">
                        <set attribute="Path" value="${domain_home}/${domain_name}/applications/GenPortal.ear" />
                        <set attribute="StagingMode" value="nostage" />
                        <set attribute="TwoPhase" value="true" />
                        <create type="WebAppComponent" name="GenPortal">
                             <set attribute="Targets" value="${server-mbean}" />
                             <set attribute="URI" value="GenPortalWebApp.war" />
                        </create>
                        <create type="EJBComponent" name="GenPortalEJB">
                             <set attribute="Targets" value="${server-mbean}" />
                             <set attribute="URI" value="GenPortalEJB.jar" />
                        </create>
                        <create type="EJBComponent" name="BidEvaluatorEJB">
                             <set attribute="Targets" value="${server-mbean}" />
                             <set attribute="URI" value="BidEvaluatorEJB.jar" />
                        </create>
                        <create type="EJBComponent" name="BidFormulatorEJB">
                             <set attribute="Targets" value="${server-mbean}" />
                             <set attribute="URI" value="BidFormulatorEJB.jar" />
                        </create>
                        <create type="EJBComponent" name="ConfiguratorEJB">
                             <set attribute="Targets" value="${server-mbean}" />
                             <set attribute="URI" value="ConfiguratorEJB.jar" />
                        </create>
                        <create type="EJBComponent" name="ISOCommunicationEJB">
                             <set attribute="Targets" value="${server-mbean}" />
                             <set attribute="URI" value="ISOCommunicationEJB.jar" />
                        </create>
                        <create type="EJBComponent" name="LMPManagerEJB">
                             <set attribute="Targets" value="${server-mbean}" />
                             <set attribute="URI" value="LMPManagerEJB.jar" />
                        </create>
                        <create type="EJBComponent" name="ScriptCalcEJB">
                             <set attribute="Targets" value="${server-mbean}" />
                             <set attribute="URI" value="ScriptCalcEJB.jar" />
                        </create>
                        <create type="EJBComponent" name="SettlementEJB">
                             <set attribute="Targets" value="${server-mbean}" />
                             <set attribute="URI" value="SettlementEJB.jar" />
                        </create>
                   </create>
                   <create type="StartupClass" name="PCI_Initializer">
                        <set attribute="Targets" value="${server-mbean}" />
                        <set attribute="ClassName" value="com.pci.gtdw.bean.Initialize" />
                        <set attribute="Arguments" value="port=${weblogic_port},user=background,password=${background_user_password},debug=false,loggerLevel=debug" />
                   </create>
                   <set mbean="${domain_name}:Name=${domain_name},Type=JTA" attribute="TimeoutSeconds" value="1200" />
              </wlconfig>
    As I mentioned earlier right now this fails with when trying to create the WebAppComponent as seen in the error message above.
    Thanks for any help you can provide.

    Here's a couple ideas:
    1. Easier, but with non-deterministic response time:   Wire the button up to one of your I/O pins and poll it.  When you detect the button, issue a software call to stop the pulse train.  If the duration of the button press may be short compared to your polling rate, then wire it to a counter source pin and perform edge counting.  When you poll any value > 0, the press has happened.  (Sometimes the value may be >1 if the switch has "bounce").
    2. Trickier, but with deterministic hardware timing:  Configure another counter, call it counter B, for triggered pulse generation.  Wire/configure the button as the trigger.  Make sure that the "high time" of the pulse is long enough to let your software respond, if needed.   Also configure your original continuous pulse train counter to use Ctr B's output as a "pause trigger", specifying to pause when high.   When the button is pressed, counter B will fire a pulse and that pulse will inhibit your original counter's pulse generation.  In short, the pulses will stop until counter B's pulse has completed its full duration.  Your software can monitor for this series of events and stop the original counter task if needed.
    -Kevin P.

  • How to properly configure a home network using both Mac and PC computers

    Is there a book or set of guidelines that can tell me how to properly configure (exact specifications) my computers in a home network? Here is what I am trying to do and using:
    1) Three computers: iMac (late 06 ver), Macbook (newest version), Dell laptop. The two Macs are using Leopard and the PC is XP.
    2) Bellsouth modem which feeds into the Airport Extreme Base Station (AEBS)
    3) The AEBS has a USB hub which is connected to a external hard drive and two inkjet printers. A third laser printer/scanner/fax machine is connected to the AEBS via ethernet.
    4) All three computers use a wireless connection to the AEBS.
    I would like the following:
    1) Have a secured and password driven network - don't want outsiders connecting to the nework without permission.
    2) All computers to be able to access the USB printers and ext HD.
    3) The two Macs to read/write to each other with password access
    4) The iMac to have read/write capabalities over the PC via VSFusion or Bootcamp if possible.
    Currently, all three have Internet access via the AEBS and can print on the ethernet printer. Both Macs can see the Bonjour USB printers and print (however they to do not display on the AEBS configuration display utility and neither does the ext HD). The USB ext HD is shown on the iMac desktop and I have access to it, but does not display on the MacBook. I have not checked if the PC sees the external HD and it really does not matter if it ever does, although it would be nice.
    I am hoping that there is some standard configuration that I can "cut and paste" that is generally used to allow a home network to share resources while still being secure.
    Any advice and help is greatly appreciated.
    Thanks,
    Andrew

    Andrew,
    What you would like is fairly complicated so this will probably be a lengthy post, but hopefully I can assist you.
    As others here have pointed out, networks can vary widely, but the best networks have one element in common: planning. The first thing you need to think about is how you would like all of these systems to cooperate. For instance, do you want one of the machines to serve files to the others and be a central repository, or are you just interested in having them share documents on occasion so that you don't have to carry around, say, a USB key all the time? That said, here is a basic list of things I think you should look into.
    1. Network Basics
    First step is to get your local network set up. I'd go for WPA or WPA2 wireless security as they are relatively strong standards and you can use human-readable passwords. Additionally, unless you have an explicit need for someone outside your network to initialize a connection (Windows' RDP for instance), do not allow any passthroughs or port redirects on your AEBS.
    2. Network Topology
    Decide how you want computers and networked devices to identify themselves and their relative locations in the network: in short, do you want static ip's or dynamic ip's? Most of the time, static IP's can be assigned on a DHCP router, the trick is to assign the statics higher than your number of devices (or lower on some routers - for instance Linksys routers start DHCP at 192.168.1.100 but you could have statics from 192.168.1.2 to 192.168.1.99). For instance, it is impractical to set a laptop to static because I'm often in coffee shoppes and other environments that assign via DHCP; on the other hand, it's a good idea to have a printer be static so that you always know where to find it. So, I have 10.0.1.x network (default on AEBS), and the printer is 10.0.1.24, since the likelihood of my encountering an IP conflict with 4 computers on the subnet is virtually zero. If you configure a static device behind your AEBS, defaults are usually
    Default Gateway 10.0.1.1
    IP Address 10.0.1.(your choice)
    Subnet Mask 255.255.255.0
    3. File-sharing.
    3a) Mac OS X has a built-in SMB/CIFS (Windows file & printer sharing protocol) client, and a basic SMB [samba] server can be enabled in the sharing preference panel (enable file and/or printer sharing). Windows XP can use these shares, but must authenticate. For that reason, you may not be able to see your shares in the Network Places browser, however you should be able to get to them by mapping the network drive (tools menu) or executing RUN with \\computer.name\share.name. You will then be able to type in your credentials. I would also suggest relatively simple names for the Macs in question (set in Sharing preference pane). Typing Andrew's-iMac-G4 in every time you want to find it will get irritating after a while to say the least, especially if you need to troubleshoot.
    3b) The reverse works similarly. You can Connect to Server... from Finder to get to the Windows shares. To do this you must have Windows File and Printer sharing enabled (most easily through the Network Setup Wizard in Control Panels - Use Classic View). It's really easy if your account names and passwords are identical on the Mac and PC, because when loading user profiles, the Mac will generally automatically try to authenticate against the Windows machine with your Mac logon credentials. (Windows seems to do this against the Mac as well) You can write an Applescript or there are some PLIST modifications you can make to mount Windows shares at login.
    4. Printing
    I'm not exactly sure what you had in mind here since I'm not sure what's connected to which computer or directly to the network. If it is possible, I personally find putting my printers directly on the network to be the easiest thing. Especially if printing large PDF or graphics files, the spooling on the host system can really slow the computer down, and slow down printing. For example, I used to have a laserjet on a Windows box and had to print a very large file. Going through a Win print server, it only printed a page every 30 seconds, but when I got a jetdirect adapter, the whole thing was done in under two minutes. If you have HP Printers, I would recommend the jetdirect print servers (I have used with both a laserjet and a supposedly unsupported color inkjet).

  • I am unable to use my own network with my iphone for wi-fi.The message says "unable to join the network (my network). How do I configure the info in the phone to allow me access?

    How do I configure the setting in my iphone to allow me use of my own network?

    Thanks for the responses, they have been very illuminating!
    This is very disappointing from The Carphone Warehouse. If they had mentioned this when I went into their stores, I wouldn't have completed the purchases. I bought two phones at separate outlets and neither of them told me this.
    I have been in contact with T-Mobile already as I thought they had sneakily applied a software update that locked the phone. They have denied locking it and suggest that it is something that Apple do. Their solution was a factory reset.
    I have a call logged with Apple this afternoon, so will see what they suggest. Hopefully they will give me something that I can take to The Carphone Warehouse or T-Mobile.

  • How to Use Step with Filters in Eclipse

    Hello, everyone!
    I have a question. How do I keep myself from accessing methods outside my own class? See, when I use the debug feature of Eclipse, (I am using Eclipse 3.0), and start debugging, I often "Step Into" methods of classes like String.class and the like. Doing so produces errors that I need to click on to for numerous times! =( It hinders me from doing what I want to do. Can anyone help me? How do I prevent Eclipse from doing that again? After all, my only concern is seeing the methods I wrote in action, and I don't really want to bother with the ones already defined in Java (like Integer.Class and such).
    I also did a search on google, but the sites that turned up are only those that say Use Step with Filters, and nothing specific (most of them are copy-pastes, so different sites end up saying exactly the same thing ). I did that already, and the same thing happens. What do I have to do in
    Window->Preferences->Java->Debug? Do I have to add packages, classes or filters? If so, how should I do it?
    Sorry for the long entry, but I'm getting frustrated with clicking on the errors... I hope someone can help me. =)
    Thanks in advance! =D

    Go to Window-Preferences-Java-Debug-Step Filtering. When the dialog opens, press F1 for help. Good luck!

  • How to use custom component configuration

    Hi Experts,
    For a standard webdynpro object I have created a new z component configuration by copying from existing one. In the standard there are already 2 existing component configuration.
    This webdynpro does not have any application created so I am not able to directly assign this component configuration.
    During run time in portal when I view the properties I can see a application for this webdynpro component and the standard component configuration being used.
    My question is how to use the z component configuration I have created in the webdynpro?

    Hi Srinivas
    I researched your problem. I hope the below code helps you. You could add the below code to wddoinit.
    DATA:  lo_api_controller       TYPE REF TO if_wd_component,
              lo_pers_manager      TYPE REF TO if_wd_personalization,
              ls_config_key           TYPE wdy_config_key.
               lo_api_controller = wd_comp_controller->wd_get_api( ).
               lo_pers_manager = lo_api_controller->get_personalization_manager( ).
                     ls_config_key-config_id = 'ZTEST' .
                     lo_pers_manager->load_config_by_key( ls_config_key ).
    Regards
    Lorraine

  • How to use Apache MyFaces components in JSF pages + Eclipse?

    I've managed to write my JSF web app. in Eclipse jee, and test it on JBoss 4.2 GA, within Eclipse, but how to import Apache MyFaces components into Eclipse JSF plug-in?
    If I can't import it nicely, how to use those components directly in JSF pages?

    The Tomahawk component library provides MyFaces components. Install it as you would any other component library.
    http://myfaces.apache.org/tomahawk/

  • How do I configure a counter to generate pulses using DAQmx?

    How do I configure a counter to generate pulses using DAQmx?
    Is says in the DAQmx C reference help
    "CtrnInternalOutput—The signal at this internal terminal is where the pulsed or toggled output of the counter appears. The output of a counter pulses or toggles when the counter reaches terminal count. When counting down, the counter reaches terminal count when the count reaches zero. When counting up, the counter reaches terminal count when the counter rolls over. To configure the counter to toggle or generate pulses, use the Export Signal function/VI with Counter Output Event as the signal name."
    I've tried this but can't get it to work, I may have the parameters wrong or something. The DAQmxExportSignal() function is very unintuitive to me. Here is my counter config code...
    int ret = 0;
    ret = DAQmxCreateTask("",&task_);
    errorMsg(ret);
    if (ret != 0)
    throw ret;
    // Configure the counter
    ret = DAQmxCreateCOPulseChanTicks( task_, "Dev1/ctr0", "", "/Dev1/PFI8", DAQmx_Val_Low, 0, divider, divider );
    errorMsg(ret);
    ret = DAQmxCfgImplicitTiming( task_, DAQmx_Val_ContSamps, 1000 );
    errorMsg(ret);
    // Change to pulse mode
    ret = DAQmxExportSignal( task_, DAQmx_Val_CounterOutputEvent, "/Dev1/Ctr0InternalOutput" );
    errorMsg(ret);
    // Start the counter
    ret = DAQmxStartTask(task_);
    errorMsg(ret);
    The above code works fine, in toggle mode, if I just comment out the DAQmxExportSignal() part.
    HELP!!!
    Stefan

    The problem is due to the DAQmxExportSignal call.  By default, when you create a counter output pulse train task, the driver will automatically set the output of the counter to toggle when the count for each high ticks and low ticks expire.  The driver also automatically routes the signal present at Ctr0InternalOutput terminal (the output of the counter internal to the device) to the Ctr0Out terminal (the I/O pin available externally).  Using the line
     ret = DAQmxExportSignal( task_, DAQmx_Val_CounterOutputEvent, "/Dev1/Ctr0InternalOutput" );
    will tell the driver to tristate the Ctr0Out terminal and not output the signal to the external I/O pin.  Using the DAQmxExportSignal function is generally only useful if you want to route the signal to some other terminal internal to the board without having the output show up on the external connector, route the signal to some other external pin other than the default pin, or if you want to have the output show up at multiple locations. 
    If you want to change the output behavior from toggle to pulse, you need to use the DAQmxSetExportedCtrOutEventOutputBehavior function.  However, this is generally only useful if all you care about are edges (not the duty cycle of the pulse train), and you want to generate higher frequency signals.  For example, with a 20 MHz timebase as the source of your counter, you can only generate a 5 MHz pulse train by default.  This is because the minimum value for the low and high ticks parameter is 2 (20 MHz / 4 = 5 MHz).  By changing the output behavior form toggle to pulse, you can generate a pulse train at 10 MHz since the output is now pulsing instead of toggling.  However, the width of each pulse is not programmable so you will no longer have a 50% duty cycle signal.  I don't remember exactly what the width of each pulse is, but I believe it's in the neighborhood of 50 - 100 nanoseconds in width.  I hope this information helps.

Maybe you are looking for