How to export counter to rtsi?

I am generating a counter frequency out signal on a pci-6220 m-series card.  I want to then share this signal with other cards over an RTSI line, and therefore, I use export signal VI.  However, right after a computer reboot this VI will not produce a counter signal.  If I then generate a signal using MAX, I can go back and run this VI fine until the computer is rebooted again.  If I remove the export signal VI, then everything runs fine. 
 It seems like the inclusion of the export signal VI makes it not workafter reboot until it is initialized using MAX.  I am quite confused.
Thanks for your help,
Pat
Solved!
Go to Solution.
Attachments:
laser trigger.vi ‏19 KB

Hi Pat,
Are you getting counter output on RTSI0 but not on PFI12? This sounds like a bug that was reported to R&D as CAR #44655 and fixed in NI-DAQmx 8.8. Normally DAQmx uses the value of the CO.Pulse.Term channel property (which defaults to PFI12 for ctr0) to control the counter output route, but exporting the Counter Output Event signal caused CO.Pulse.Term to be ignored. In DAQmx 8.8 and later, the values of both properties should be combined.
Why would creating a pulse generation task in MAX seem to fix the problem? When a DAQmx task routes signals to PFI lines, they stay routed until you reboot, reset the device, or reconfigure that PFI line for a different purpose (a different output signal, or an input).
If you're using 8.7.x or older, I'd recommend upgrading to the latest version, NI-DAQmx 8.9. If you can't upgrade, or if that doesn't fix the problem, I would try passing "/Dev2/RTSI0,/Dev2/PFI12" to the DAQmx Export Signal VI. Alternately, you could change your VI to create, start, stop, and clear a second task to emulate what the pulse generation task in MAX is doing.
Brad
Brad Keryan
NI R&D

Similar Messages

  • How to export all the views in one schema?

    Hi,
    I have more than 1000 views in one shcema.
    How to export all the views in one schema?
    Amy

    Hi,
    It's not a very easy question, I have develop a script wich create a script to create view from old database to new database :
    /* &1: Oracle SID Source
    /* &2: Oracle Schema Source
    SET HEAD OFF
    SET VERIFY OFF
    SET PAGESIZE 0
    SET LONG 40000000
    SET LONGCHUNKSIZE 2000
    SET LINESIZE 2000
    SET FEEDBACK OFF
    CREATE TABLE RECREATE_VIEW(VIEW_NAME VARCHAR2(30), TEXT LONG);
    /* Selection du texte de la vue */
    DECLARE
    w_text long;
    w_text_debut long;
    w_text_column long;
    w_view varchar2 (30);
    w_schema varchar2 (8):='&2';
    CURSOR w_cursor IS
    SELECT a.view_name, a.text
    FROM dba_views a
    WHERE a.owner = w_schema;
    CURSOR w_column IS
    SELECT DECODE (ROWNUM,
    1, 'CREATE OR REPLACE FORCE VIEW ' || '&' || '1..'
    || a.table_name || chr(10)
    || '('
    || a.column_name
    || DECODE (ROWNUM, nbcolumns, ')' || chr(10) || 'AS' || chr(10), ',' || chr(10))
    FROM (select column_name,table_name
    FROM dba_tab_columns
    WHERE owner = '&1'
    AND table_name = w_view
    order by column_id ) a,
    (SELECT COUNT (1) nbcolumns
    FROM dba_tab_columns
    WHERE owner = '&1'
    AND table_name = w_view
    GROUP BY owner, table_name) b
    order by rownum;
    BEGIN
    OPEN w_cursor;
    LOOP
    FETCH w_cursor INTO w_view, w_text;
    EXIT WHEN w_cursor%NOTFOUND;
    w_text_debut := NULL;
    w_text_column := NULL;
    OPEN w_column;
    LOOP
    FETCH w_column INTO w_text_column;
    EXIT WHEN w_column%NOTFOUND;
    w_text_debut := w_text_debut || w_text_column || ' ';
    w_text_column := NULL;
    END LOOP;
    CLOSE w_column;
    w_text := w_text_debut||w_text||';';
    insert into RECREATE_VIEW(VIEW_NAME, TEXT) VALUES (w_view, w_text);
    COMMIT;
    w_text := NULL;
    w_view := NULL;
    END LOOP;
    CLOSE w_cursor;
    END;
    SPOOL scripts_views_&1..sql
    PROMPT SPOOL scripts_views_&1..log
    PROMPT
    SELECT TEXT
    FROM RECREATE_VIEW;
    PROMPT
    PROMPT SPOOL OFF
    PROMPT
    SPOOL off
    PROMPT /* Formattage du fichier SQL */
    !sed 's/[ ]*$//' scripts_views_&1..sql > aprilia.tmp
    !rm scripts_views_&1..sql
    !mv aprilia.tmp scripts_views_&1..sql
    DROP TABLE RECREATE_VIEW;
    EXIT
    I hope that help you.
    Nicolas.

  • How to export several calendars simultaneously?

    How to export several calendars simultaneously? And I don't mean by grouping them into one group calendar.
    I need it for operating iCalendar, and I do not have patience to do basically the same action seven times in a row. A group calendar is not a relevant solution either because I want to distinguish the individual calendars by their different colors.
    Can you do it directly from the iCal Sources folder (the calendars carry crazy names)?
    Can you do it by invoking the Terminal?
    * This thread was first mistakenly (thanks Duane) posted in the Tiger session.

    Hi Ken,
    Here is a slightly more rigourously thought out version of this Applescript. It should not crash and gives some more feedback about what happened.
    set theDestination to choose folder with prompt "Where do you want the files?"
    set myPath to alias ((path to application support from user domain) & "iCal:Sources:" as string)
    tell application "Finder"
    activate
    set myFolders to (folders of folder myPath)
    set doneList to ""
    repeat with myFolder in myFolders
    set thePath to ((myFolder as alias) & "info.plist") as text
    set theXML to read file thePath
    repeat with myPara from 1 to count of paragraphs of theXML
    if paragraph myPara of theXML contains "Title" then set theName to (characters 10 thru -10 of (paragraph (myPara + 1) of theXML) & ".ics") as string
    end repeat
    set name of file "corestorage.ics" of myFolder to theName
    delay 0.5
    try
    duplicate file theName of myFolder to theDestination with replacing
    set doneList to doneList & return & theName
    on error theErr
    display alert "File '" & theName & "' could not be copied." message theErr giving up after 30
    end try
    set name of file theName of myFolder to "corestorage.ics"
    end repeat
    display alert "iCal .ics file copy done." message "The following files were created in the folder:" & return & "'" & theDestination & "'" & return & doneList giving up after 30
    end tell
    Best wishes
    John M

  • How to export a data as an XML file from oracle data base?

    could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
    Thankz in advance
    Bala

    SQL> SELECT * FROM v$version;
    BANNER
    Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    5 rows selected.
    SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
    Directory created.
    SQL> declare                                                                                                               
      2    doc  DBMS_XMLDOM.DOMDocument;                                                                                       
      3    xdata  XMLTYPE;                                                                                                     
      4                                                                                                                        
      5    CURSOR xmlcur IS                                                                                                    
      6    SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",                       
      7                                  'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")              
      8                              ,xmlelement("EmployeeNumber",e.empno)                                                     
      9                              ,xmlelement("EmployeeName",e.ename)                                                       
    10                              ,xmlelement("Department",xmlelement("DepartmentName",d.dname)                             
    11                                                      ,xmlelement("Location",d.loc)                                     
    12                                         )                                                                              
    13                   )                                                                                                    
    14     FROM   emp e                                                                                                       
    15     ,      dept d                                                                                                      
    16     WHERE  e.DEPTNO=d.DEPTNO;                                                                                          
    17                                                                                                                        
    18  begin                                                                                                                 
    19    OPEN xmlcur;                                                                                                        
    20    FETCH xmlcur INTO xdata;                                                                                            
    21    CLOSE xmlcur;                                                                                                       
    22    doc := DBMS_XMLDOM.NewDOMDocument(xdata);                                                                           
    23    DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');                                                                  
    24  end;                                                                                                                  
    25  /                                                                                                                      
    PL/SQL procedure successfully completed.
    .

  • I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I think there are third-party programs which will do that, but you can also do it with Automator:
    See the links in my post, here: https://discussions.apple.com/message/22390873#22390873
    The file or clipboard contents will be in Tab Separated vars, so you'll have to open with a spreadsheet program and save as Comma Separated Vars format.

  • In SSMS after creating the query Report, how to export excel the same report from SSMS

    for Beginners in SSMS after the report is created , how to export the same report to excel, I did try the option to task and export and follow the procedure, this procedure does not export the same report, the one was created, unless I am missing some steps,
    is there a way to do just like we do in SSRS go to solution explorer, and properties and add the Target Server URL or not
    in SSMS, 
    after I save the report it saves in project , can some one please guide me how to do it, and what steps I am doing wrong,
    any help will be great.  I am not technical person, just starting to learn from internet.
    thanks in advance.

    As you have said you are not a technical person try using Import Export wizard.
    Refer this link
    http://www.mssqltips.com/sqlservertutorial/203/simple-way-to-import-data-into-sql-server/
    And another simplest one is to copy the result set from the query window. Right click the result and select "Copy with Headers".
    Regards, RSingh

  • How to export best quality gif animations in flash

    how to export best quality gif animations in flash

    GIF is a color restricted format with on/off support for transparency. There's really no settings you can tweak to output a better GIF. You have a drop-down during GIF sequence export to allow transparency, select the amount of colors (up to 256) and you can choose dither to save a little filespace. The only 2 things in there that really matter are dither and amount of colors used to export.
    If your content is very similar (e.g. not a lot of complex gradients/shadows/etc) and is limited in color use turning down the amount of colors used and dithering is your only option.
    Make sure you're exporting the GIF via "Publish Settings" so you get a single animated GIF and not file->export->movie because this creates a separate sequence of GIF images for each frame.

  • How to export data with column headers in sql server 2008 with bcp command?

    Hi all,
    I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
    am trying to import data with bcp command data has been copied but column names are not came.
    I am using the below query:-
    EXEC master..xp_cmdshell
    'BCP "SELECT  * FROM   [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
    Thanks,
    SAAD.

    Hi All,
    I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
    DECLARE @BCPCMD
    nvarchar(4000)
    DECLARE @BCPCMD1
    nvarchar(4000)
    DECLARE @BCPCMD2
    nvarchar(4000)
    DECLARE @SQLEXPRESS
    varchar(50)
    DECLARE @filepath
    nvarchar(150),@SQLServer
    varchar(50)
    SET @filepath
    = N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
    as varchar(4))
    +RIGHT('00'+CAST(MONTH(GETDATE())
    as varchar(2)),2)
    +RIGHT('00'+CAST(DAY(GETDATE())
    as varchar(2)),2)+'.log" '
    Set @SQLServer
    =(SELECT
    @@SERVERNAME)
    SELECT @BCPCMD1
    = '''BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT '
    SELECT @BCPCMD2
    = '-c -t , -T -S '
    + @SQLServer + 
    SET @BCPCMD
    = @BCPCMD1+ @filepath 
    + @BCPCMD2
    Print @BCPCMD
    -- Print out below
    'BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
    EXEC
    master..xp_cmdshell
    @BCPCMD
      ''BCP' is not recognized as an internal or external command,
    operable program or batch file.
    NULL
    if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
    EXEC
    master..xp_cmdshell
    'BCP "SELECT  * FROM  
    [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
    Thanks, SAAD.

  • How to EXPORT a concurrent program from one instance to another

    Hi,
    I am new to EBS.
    How to EXPORT a concurrent program from one instance to another. I dont want to use FNDLOAD.
    Is there any other way from where we can export the concurrent program to anothere instance from CLIENT connection server.
    Thanks
    Asis

    Hi;
    What is EBS version? Why you dont use FNDLOAD?
    Pelase see below thread
    Move concurrent program to prod
    Move concurrent program to prod
    Regard
    Helios

  • How to export Tabel? (Exporting and Importing of RFCDES table)

    Hi,
    We are doing system Refresh on qualitysystem,
    I want to export the Tables and reimport them after system refresh
    Tables like: RFCDES
    How can export this table ?
    How to import the table?
    It is very urgent, Please give me the solution as soon as possible
    Note: we are using BRTOOLS
    Points awarded
    Regards,
    Ravi

    Hi Ravi,
    Create a control file like "rfcdes_export.ctl"
    export
    file '/usr/sap/data/export_rfc.dat’
    delete from rfcdes
    select * from rfcdes
    Take the export :
    R3trans -w rfcdes_export.log rfcdes_export.ctl
    Create the control file "rfc_import.ctl"
    import
    file '/usr/sap/data/export_rfc.dat'
    Import it:
    R3trans -w rfc_import.log -u 1268 rfc_import.ctl
    Hope it will help you.
    Best Wishes.
    Kumar

  • How to export photos from photo gallery to my iPad

    How to export photos from photo gallery to my iPad

    I had no trouble finding the "Export" tools in the "File" menu. They are greyed out when no photo is selected, but they are functional after selecting one or more photos.
    I agree that it would be nice to have the "Reveal in Finder" option back, but they probably don't want us mucking about inside the Photos library structure.

  • How to export photos from lap to to ipad

    how to export photos from lap top to ipad,i keep draging them in ipad devise logo,photos jump back in place.if i click on to export in i photo,it only would go to files??????help!!

    Use the photo set up in the iTunes sync
    LN

  • How to export photos from iMac to iPad and iPhone

    How to export photos from iphoto to my iPad and iPhone the easiest way.

    There are a number of methods including:
    Via iTunes and USB cable: iTunes: Syncing photos - Apple Support
    Via Photo Stream: http://support.apple.com/en-us/HT201317
    Via 3rd party app: http://www.photosync-app.com
    Via 3rd party cloud services such as Dropbox

  • How to export photos from one iPad to another

    How to export  photos from one iPad to another

    Sending the photos over WiFi might be the easiest way for you to accomplish this. The Wireless Transfer App should work. You will both have to download the app on your own devices. Read about it here.
    http://www.wirelesstransferapp.com/

  • How to export pictures from my ipad to my computer

    HOW TO EXPORT PHOTOS FROM MY IPAD ?

    How to Transfer Photos from an iPad to a Computer
    http://www.wikihow.com/Transfer-Photos-from-an-iPad-to-a-Computer
    Importing Personal Photos and videos from your iOS device to your computer.
    http://support.apple.com/kb/HT4083
    Also check out the Photo Manager Pro app.
    https://itunes.apple.com/us/app/photo-manager-pro/id393858562
     Cheers, Tom

Maybe you are looking for