How do you use the freqout as the sample clock to write data on the of 6224 PCI

Using PCI-6224, I try currently to export data using the freqout as a reference clock sample to a digital output channel. I plug the scope to see the clock on the freqout PIN. However, the data seem to be missing. How can I output the data correctly using the reference for timing? What am I missing that connects the two signals together? Any help would be greatly appreciated. I am writing this code in MS VS C++ and here's what I've done so far:

        int32       error=0;
        TaskHandle  taskHandle=0;
        TaskHandle  taskHandleFRQ=0;
        char        errBuff[2048]={'\0'};
    uInt8       data[8]={1,0,1,1,1,0,1,0};

    /*********************************************/
    // DAQmx Configure Clock
    /*********************************************/
    DAQmxErrChk (DAQmxCreateTask("",&taskHandleFRQ));
    DAQmxErrChk (DAQmxCreateCOPulseChanFreq(taskHandleFRQ,"Dev2/freqout","",DAQmx_Val_Hz/*Units*/,DAQmx_Val_Low/*IdleState*/,0/*Delay*/,10000/*Freq*/,0.5/*DutyCycle*/));
    DAQmxErrChk (DAQmxCfgImplicitTiming(taskHandleFRQ,DAQmx_Val_ContSamps,8));

    /*********************************************/
    // DAQmx Configure Digital Output
    /*********************************************/
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateDOChan(taskHandle,"Dev2/port0/line0","",DAQmx_Val_ChanPerLine));
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"/Dev2/PFI14",10000,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,8));

    /*********************************************/
    // DAQmx Write Code
    /*********************************************/
    DAQmxErrChk (DAQmxWriteDigitalLines(taskHandle,8,0,10.0,DAQmx_Val_GroupByChannel,data,NULL,NULL));

    /*********************************************/
    // DAQmx Start Code
    /*********************************************/
    DAQmxErrChk (DAQmxStartTask(taskHandleFRQ));
    DAQmxErrChk (DAQmxStartTask(taskHandle));

I think that the original code was operational. However, given that the data transmission has been set to finished, I had a hard time to visualize the data on my scope. By changing the value of DAQmx_Val_FiniteSamps to DAQmx_Val_ContSamps, I could easily see the data.

My mistake. I'm still learning here. Thanks for the time.

Tags: NI Software

Similar Questions

  • How do you use the Exp fundtion on the windows calculator

    How do you use the Exp function in the windows for the following calculator

    Exponential of the negative power of 0.5

    e

    I don't have.
    I couldn't find an e = 2.71828183 key on the windows calculator.
    I used Google's built-in calculator function.

    The windows calculator, you will need to enter:
    2.71828183 [x ^ y] (-0.5) =.
    ||

  • How do you use the creative cloud with using the internet.

    How do you use the creative cloud with using the internet.

    You MUST have an internet connection to download and activate the programs

    After this, you MUST have a connection to the programs check your subscription on the calendar below

    Cloud status check 30-or-99 days https://forums.adobe.com/thread/1549838

  • How do you use the FileChooser.ExtensionFilter in JavaFX?

    Hello world

    How do you use the FileChooser.ExtensionFilter in JavaFX to set the file name extensions and filters of the extension?
    I'm sorry but there are no tutorials covering the "FileChooser" element in JavaFX, I know? Any advice or ideas
    will be greatly appreciated to direct me in the right direction.

    Many thanks in advance!
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.stage.Stage;
    import javafx.collections.*;
    import javafx.stage.FileChooser.ExtensionFilter;
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.layout.Pane;
    import java.io.*;
    
    /**
     *
     * @author Shakir
     */
    public class Filech extends Application {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            Application.launch(args);
        }
    
        @Override
        public void start(final Stage primaryStage) {
    
            primaryStage.setTitle("Hello World");
            final Group root = new Group();
            Scene scene = new Scene(root, 300, 250);
    
            Button btn = new Button();
            btn.setLayoutX(100);
            btn.setLayoutY(80);
            btn.setText("Get file chooser");
            btn.setOnAction(new EventHandler() {
    
                public void handle(ActionEvent event) {
                    FileChooser choose = new FileChooser();
                    File d = new File(getClass().getResource(".").getFile());
                    choose.setInitialDirectory(d);
                    Stage st2 = new Stage();
    
                    st2.initModality(Modality.APPLICATION_MODAL);
                    javafx.stage.FileChooser.ExtensionFilter filter = new FileChooser.ExtensionFilter("executable", "*.class");
                    st2.initOwner(primaryStage);
                    choose.getExtensionFilters().add(filter);
                    choose.showOpenDialog(st2);
    
                }
            });
            root.getChildren().add(btn);
            primaryStage.setScene(scene);
            primaryStage.show();
    
        }
    }
    
  • HOW do you use the INS/PRT SC button to insert the copied data? It does not work! Help!

    I just got a pavilion DV6-7010us... I have always used the INSERT key when I copy data and insert into a message, chat screen, document... this computer has a key of INS/PRT SC.  I can't get the key to insert data into almost anything.   How do you use this key?  or is there another way to insert data that you copied, into something... ???  I'm used to use Shift + Insert key on my old laptop.    Right now, I try to keep in my mind to use the mouse to insert data... but would like to be able to use the key on the laptop keyboard.

    Is there a way to do it?

    Thank you

    Barbara

    You must identify your laptop for each of us to have a clue as to what looks like your keyboard. There are so many models of HP to be precise.

    Remove the battery and look for the label that says p/n. Post this string alphanumeric together here. It is your HP product number. G6 or dv6 and dv7 are all just model numbers.

    You can also do this by using Ctrl + C to copy and Ctrl + V to paste. That's what most people use to copy and paste in most applications and productivity programs.

    Because Windows 7 has the capture tool, I didn't even use the Ins or Prt Scr.

  • 5610 how do you use the photo HP58 cartridge?

    I have an officejet 5610 and bought the photo HP58 cartridge.  The problem is when I try to print a color photo, the printer uses the HP22 cartridge.  How can I force it to print in color with the HP58.  I bought the HP58 because the site HP said that it is compatible with the printer.

    Hello

    58 Photo cartridge is not used by its own, the pritner uses the 58 and 22 cartridges ink in order to improve the quality of the colors, it will use the cartridges when printing and not only 58 ink cartridge,

    Hope the next informaion may help:

    Use a photo print cartridge
    You can optimize the quality of the color photos you print and copy with your HP all-in-. -
    One by buying a photo print cartridge. Remove the black cartridge and insert
    81 user guide
    Maintain your HP all-in-one
    the picture in its place print cartridge. With the tri-color print cartridge and photo printing
    cartridge installed, you have a system of six inks, which offers improved color quality
    photos.
    When you want to print ordinary text documents, exchange the black back ink cartridge in.
    Use a protector of the ink cartridge to secure your print cartridge when it is not
    used.

  • How do you use the config.xml file to determine which version of an application, a user will download?

    I have two APKs for the same application and I implemented the config.XML of lower version number working for all screen sizes.  The config.XML for the higher version number is set up for only the scresns large and extra-large.  Here's the code from the config.xml file.

    Version 1

    < media screens android: anyDensity = "true" android: Center = 'true '.
    Android: smallScreens = "true".
    Android: normalScreens = 'true '.
    Android: largeScreens = "true".
    Android: xlargeScreens = "true" / >

    Version 2

    < media screens android: anyDensity = "true" android: Center = 'true '.
    Android: smallScreens = "false".
    Android: normalScreens = "false".
    Android: largeScreens = "true".
    Android: xlargeScreens = "true" / >

    When I try to download the app on Google game, only the top version is available, regardless of the size of the unit.  When I asked Google game why this was not behave as expected, they said that the file manifest for both applications is the same.  Here is the code, they shot in the manifest after having used PhoneGap Build.

    < media screens android: anyDensity = "true" android: smallScreens = "true" android: normalScreens = "true" android: largeScreens = "true" android: Center = "true" android: xlargeScreens = "true" / >

    Can someone explain why PhoneGap Build is not using the settings I set in the config.xml file?  And how to fix this?

    The tag is not a valid tag in the config.xml file. This is probably why you see the same tag in two, as the build service is ignorant.

    As to how solve you this problem. Currently, you can not, but the next version of android-cordova will include the ability to add a tag which you will be able to use like this:

  • AR: How do you use the remaining amount for another account later?

    Hello friends,
    GM, how can I use amount remaining for another Bill to internship (AR) later?

    Concerning
    Krish

    Hello.

    You can use the same way as you did for the first time. Just the receipt of the request and apply the amount of unnaplied on another Bill.

    Octavio

  • How do you use the step and resume for 10 indesign pages

    Hello

    I have a record for a mailing label. I have successfully used the step and repeat to create 2 columns and 8 rows for a document or a page. How to create 2 columns and 8 rows to say 10 pages with step and repeat? What you have to do with the pages?

    Thanks in advance

    You're simply trying to get additional copies of the same label? You don't want to do several pages to do, just print x pages.

    This looks like the same project of the other day. You really need to be clear about what you're doing: you said you wanted 50 copies of the same label and I told you not to worry about merging data, but maybe what you really meant you wanted pages full of the same label, but many different labels in the file. It IS a project of data merge, but you still would be implemented with stepa and repeat the process to put a series of placeholders in each position of the label, but you do only one page in the merge template. Merge all your records, one record per page, then print as many copies of the file as that required for the number of labels you need.

  • How do you use the toggle buttons to switch the content on and off with a smooth transition?

    I work in edge animate CC 2015 and am using toggle buttons to hide and show content, I would that this content to animate smoothly on the screen, maybe going from 0 to 100% opacity and 0-100% scale when enabled and vice versa when it is switched off, is there a simple way to do this?

    Appreciate help!

    Emily

    An easier way if you who would rather just code, use use the Greenock JS library.

    First, add http://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/TweenMax.min.js to your scripts Panel to the library.

    Then, add the following code to document.compositionReady

    sym.setVariable ("toggle", true); Create a new global variable called "toggle" and set the value to true

    Now, create a button and click on the following code:

    Toggle var = sym.getVariable ("toggle"); Get the variable global "toggle" and him assign a local variable of the same name

    var FadeSymbol = sym.$("FadeSymbol"); The value of a local variable to your symbol name

    If (toggle == true) {}

    TweenMax.to (FadeSymbol, 0.6, {opacity: 0});

    sym.setVariable ("toggle", false); Reset the value of the variable global 'toggle' false

    } else {}

    TweenMax.to (FadeSymbol, 0.6, {opacity: 1});

    sym.setVariable ("toggle", true); Reset the value of the variable global 'toggle' false

    }

    Note the line TweenMax, it fades to the opacity of the whole symbol rather than using a calendar. It breaks down as follows:

    TweenMax.to (TheNameOfYourSymbol, theTimeinSeconds, {theOpacity, 1 = 100 %}

  • How do you use the pathfinder on objects that have applied effects?

    I described some text, then applied effect > warp > Ark. What I want to do is cut off parts of the letters apart now listed. I tried to use the pathfinder palette, but it applies the pathfinder to the former, not surmounted by an arch shape. All advice is appreciated. Thank you.

    In which case it is important to maintain the effect of deformation, you need to use rather complex effect Pathfinder constructions (see effect > Pathfinder).

    It's probably easier to simply expand the appearance of your effects of deformation (see menu object), then use the Pathfinder palette.

    What version of Illustrator do you use?

  • How do you use the &amp; &amp; operator?

    The code ff gives me an error:

    If (offst > 10 & & < 80) {...

    I'm trying to trigger an action if my offst value is in the range of two values (> 10, < 80). Get the following error:

    Uncaught SyntaxError: unexpected identifier

    If (offst > 10 & offst)<80>

    You forgot the variable in the seconbd part.

  • How do you use the JS to open a file dialog box

    If you use this to open a dialog box to select a file:

    File.openDialog ("Select your XML file", "*.xml")

    How you open a dialog box to select a folder.  I think it would be something like

    Folder.openDialog

    but alas, it isn't, and I can't find any reference on how to do this anywhere.  We know?

    Thank you

    I found it after I posted this.  He replied in this thread

    But if you don't get there, it's long and short of it...

    It is not Open.   It's openDlg (intuitive how)

    var myDefault is new folder ("U:/xxx/zzz');.

    myFiles = myDefault.openDlg var ( string, string + model, multiple selection filter quick bollean);

  • How do you use the Sony NEX 5R as a webcam for live streaming?

    My computer does not recognize my camera as a source for Google Hangouts.

    Digital cameras from Sony, including the Sony NEX - 5R, are not compatible for use as a Webcam. If you are interested in a camera that can live streaming, then the HD camera live Bloggie MHS-TS55 is a good option. You can check it out by clicking on the link below:

    http://store.Sony.com/...ductId=8198552921666415574

    If my post answered your question, please mark it as an "accepted Solution".

  • How do you use the cutting tool with a PDF file open in Windows 8?

    None of the above has solved the problem of the use of the cutting tool when you have a PDF file open or an open image.  Can anyone give me a suggestion to update?  Thanks fitz

    Key to victory over the key PrintScreen puts a photo full screen in pictures/screenshots.   Use your cutting tool on this screenshot with windows PhotoViewer?

    Or just install an alternative pdf viewer as the free tracker software Xchange pdf viewer that happens to have a cutting tool built into it.

Maybe you are looking for

  • procedure for NUKING all THE e-mail settings

    I decided to nuke everything on my mac air associated with the settings of mail no matter how much I try, I can't him reliable get new messages. I have been kindly provided a number of different (and relatively technical) papers and decided to wear i

  • NEITHER USB-6211 signal to noise

    While using the analog inputs of the device USB-6211 (Labview 8.5 / Win 7) signal become noisier. By surprise, I got a signal perfect after you have disconnected and reconnected the USB card to the system. This behavior is reproducible for the cards

  • Acer Aspire 5560 Dolby Advanced Audio driver issues after updating to Windows 10

    Hello I have an Acer Aspire 5560. I've updated to Windows 10 and now I am getting up the following message is displayed at startup. The current Dolby audio driver is 7.2.8000.17 and the software application expects that the version of the driver 7.2.

  • Faxes sending Officejet 6700 Premium [851648] of the control panel of the printer (form)

    I have a problem with my printer HP Officejet 6700 Premium [851648] when sending a fax using the control panael (screen) of the printer. It quickly shows me a blue screen with a power icon and a Error Code: "B82658AC". It shows a masseg tells me to t

  • WRT54G - implementation of password for wireless access

    I am sure that the answer is simple and here somewhere - but I was not able to find it in 2 days. I'm just trying to find a way to implement a simple password if the our laptops wireless & the wii and ps3 can access the internet, but the neighbors ca