How can i control the DAQ directly from VB

Actually, it is my first trial to use Visual Basic to get signal from DAQ.
And i don't how to interface them. I have read an article to use DataSocket.
However, it demostrated the OPC demo in OPC sever only, and so i didn't know
how to get the signal directly from DAQ card to monitor the real-time
signal.
Also, i have tried to build a .dll from my VI file which is used to monitor
the DAQ signal. However, the .dll file didn't have any return value or
argument, did it mean i can use this method?
And how can i interface the DAQ using VB?and my ADC model is AT-MIO-16E-2!
Thank you very much

Hi Sen,
Are you using Measurement Studio ? If so then you can use the DAQ activeX controls.
If not and you are using VB directly, then NI-Daq installs with examples for visual basic ( if you chose the option while installing- if not do a custom install and choose VB support). If so then you should find them under Program Files ->National Isntruments->NI-DAQ->Examples->VisualBasic. These may help you.
Essentially NI-DAQ ships with a .bas file that contains the "declares" for the NI-DAQ dll functions. These files should be in
Program Files ->National Isntruments->NI-DAQ->Includes (look for the .bas files) You can add these to your project to get access to the DAQ functions..
On the second question, do you mean you are using labVIEW to create your dll ? If this
is the case, then when you create your dll (in labVIEW's applciation builder) you have to set the parameters for the function (VI) and also the VI's return values. This will ensure that you can make use of your VI ..If you don't set a return value you really can't use it...Once you set the return value ,and create a dll, then you can use it like any other dll in Visual basic.
Hope this helps...
This link may help you
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/5052ad60f1accc3d862568a100717fd1?OpenDocument
Nandan Dharwadker
Staff Software Engineer
Measurement Studio Hardware Team

Similar Messages

  • How can you control the export types from DHTML output?

    I am currently using the JRC from CR4E V1 patch 7.
    When I generate a report as DHTML and use the export button I am presented with 5 export options:
    Crystal Reports
    Adobe Acrobat
    Microsoft Word - Editable
    Rich Text Format
    Comma Separated Values
    I would like to control which of the 5 options are presented to the user.  I was looking in the crystalreportviewers115 folder for some JavaScript  that could be edited.  I found export.js which appeared to have code that was creating the choices for a dropdown (getFormatDropdownList()), however this code did not get executed when I ran the export.
    Any help would be appreciated.
    Thanks,
    Richard

    Yes - the JavaScript that's in export.js was rolled into inline code in the Java jar files sometime during version 11.5.
    It's no longer customizable.
    An option is to use HTTP Filter on your Java Web App to modify the outgoing JavaScript instream, but that's never a pretty solution.
    Sincerely,
    Ted Ueda

  • How can I control the direction of  Panel Page  menuTabs (menu1) ?

    Hi all,
    in ADF FACES - JDeveloper 10.1.3
    how can I control the direction of Panel Page menuTabs (menu1) either from left to right or right to left ?
    regards,

    In the adf-faces-config.xml file you can add a right-to-left tag.
    (Right click on the structure window and choose insert inside...)

  • How can I control the volume in a Appletv movie from my remote control App. In my IPad ?.

    How can I control the volume in a Apple Tv movie from my remote control App. In my IPad ?.

    There is not now, nor has there ever been a version of flash for any iOS device.
    Adobe has abandoned mobile flash, so there never will be.
    Browsers like iswifter or photon may work for you, but don't hold your breath.
    Check app store for an app of whatever game you want.

  • When used as an Activex control in windows How can I prevent the "Q" logo from appearing between streaming videos?

    When used as an Activex control in windows How can I prevent the "Q" logo from appearing between streaming videos?

    Hello Cgifford,
    Welcome to National Instruments Forums.
    To output your signal to the PFI lines,
    you can use external connectios between OUT0 and PFI lines. You can also use
    the backplane to do so by routing into the same RTSI line.
    1)
    On the SCOPE and FGEN, the name of the
    terminals are actually “PXI Trigger Line x/RTSIx” but on the 6602 you might
    need to route the signal using the property:
    You can also use the DAQmx route signal which perform the same opperation.
    2)
    This will depend on the frequency of
    your pulse train. If this is lower than about 10 ms, then you can probably
    place this on a loop and start and stop the acquisition every time. If the
    frequency is higher than this, you will have to use:
    -       Scripting on the FGEN side (read more)
    -       MultiRecord Fetch (more information in the scope help file
    section “Acquisition Functions Reading versus Fetching”).
    3)
    The short answer is yes. The longer one
    might depend on how tight you need the synchronization to be (us, ns, ps). For
    very tight synchronization, you should look into here.
    Message Edited by Yardov on 06-18-2007 03:14 PM
    Gerardo O.
    RF Systems Engineering
    National Instruments
    Attachments:
    property.JPG ‏7 KB

  • How can I get my new ipad 4 to read my compact flash cards? If not can I download the images directly from my camera?

    how can I get my new ipad 4 to read my compact flash cards? If not, can I download the images directly from my camera?

    Tom, thanks for your quick reply. I'm a commerical photographer using Canon 5D mk2's mostly and have in the past just downloaded images to a mac book for backup. I really liked the compact size of the Ipad and just got the retina model with the camera connection kit and seem to be hearing that CF readers can't be used with it b/c they draw too much power. Seems like I remember reading I could use a cord that might have come with my cameras to download directly to the Ipad. I haven't tried it yet as I can't find the connection but then you just said it can't be done? 
       I'm COMPLETLY lost as to your "first pluging in a flash drive to my computer, advice. Do you mean Ipad when you say computer?  "then put your movie/photo files into the folder." HOW????????
         Then plug it into the Ipad??????     TOTALLY lost.
    Also your saying just "do a google search for a reader doesn't work b/c NONE are able to work with the newer Ipads b/c they use TOO much power or so everyone says everyone that have tried.
       Hope you can help a little more b/c I'm really getting frustrated with all the conflicting advice!
    Thanks, Dennis  [email protected]

  • How can I control the size of a cell in the GridBagLayout?

    Hi,Swing Gurus
    I am developing a swing-based program using JBulider5 enterprise.
    It seems to me that the GridBagLayout is really a hard nut!
    How can I control the size of a cell in the GridBagLayout?
    It seems that I cann't control the size of a cell directly.
    But how the size of a particular cell is determined when I switch the layout manager from XYLayout to GridBagLayout?
    Thx in advance!
    Regards,
    Justine

    hi,i have not done what you are asking but there are fields like
    COLUMNWIDTH, MINSIZE, MAXGRIDSIZE, PREFEREDSIZE to which you can set the appropriate values and test for your need.hope this helped.bye martian.

  • How can I remove the " Source.vi" from long Express VI Names?

    I am in the Moment working on the Development of an Express VI
    library for test purposes.
    How can I remove the " Source.vi" from long Express VI Names?
    This happens when the Express VI is inserted in the blockdiagram
    and listed in LabVIEW and TestStand Palettes.
    By short names like "DAQ-Assistent" or "EasyCalc" the string " Source.vi"
    is not shown at the end of the Express VI names.
    I used The Express VI Dev Toolkit 1.0 to create the Express VIs.
    Labview Version: 7.1 Base
    TestStand: 3.1
    It would be great to get the expert advice from the Forum for this issue!
    Thanks a lot.
    Andre

    I think I understand what you are asking for. If I am wrong, please try to explain it a bit more.
    The name shown may be different than the name of the vi file. To do this, your source VI and popup on its icon. From the short menu that comes up, select VI properties. In the top ring, select Window Appearance. The page that comes up lets you set various things that can affect the appearance of the VI. What you want to change is the window title. Uncheck the Same as VI name checkbox and change the string to whatever you want it to be.
    I hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How can i remove the shuffle feature from my nano?

    How can I remove the shuffle feature from my nano?  I apparently "shook" it and now it is on shuffle.  I can go to settings and remove the shake feature but I can't seem to restore my playing options to a generic loop instead of the shuffle.  Help!

    chelseafromco:  I had the same problem and had an awful time before finding a clear explanation of the solution.  Forget the iPod nano 6Gen manual, p. 21; it doesn't tell you how to turn the feature off, just how to turn it on.  Not all of us like randomizing our playlists.  APPLE:  PUT UP AN ARTICLE EXPLAINING SIMPLY HOW TO DO THIS.  Meanwhile, here's what worked for me:
    1.  Go to the "Now Playing" icon and tap the "Play" arrow in the center.
    2.  On the touch screen that comes up (you'll see an eighth-note graphic with the song title superimposed at the top, a Play/Pause button in the middle, and "Reverse" and "Forward" buttons on either side of that), swipe your finger to the left (not to the right).
    3.  This touch screen will have a "Repeat" symbol with two arrows like a snake eating its tail on the left and another symbol on the right that shows two arrows pointing to the right.  This is the "Shuffle" symbol.  Touch the Shuffle symbol so it's white, not blue.  White means that Shuffle is  off.
    4.  To make sure you won't accidentally turn Shuffle on, which you can do by giving the iPod a shake, go to the main Settings icon, cick it and select "Music," then press "Shake to Shuffle" until the button next to it says "Off" (white, not blue).
    Hope this helps.  By the way, in case you were wondering:  The whirling-molecule symbol in the center of the "Now Playing" controls is the Apple "Genius" symbol. This is to remind us that Apple's  manuals are created by people who don't know that customers need  instructions on how to turn things off as well as how to turn them on.

  • How can I control the order of playback on MuVu Mix (USB 2.

    What determines the order of playback of music files stored on the MuVu Mix (USB 2.0)? How can I control the order?
    Apparently it is not name order. The music titles are prefixed by sequential numbers. But that is not the order that the files play back.
    I tried erasing all contents, then copying the files one by one to the MuVo Mix in the order that I want them to play back (name order). But that is not the order that the files play back.
    By the way, in both case, I removed the ".dat" file first. (I also tried keeping the ".dat" file, to no avail.)

    SSR wrote:
    > on the newer MuVos (which I would have thought included the Mix)
    > it's filename order. Other than that it's hard to know, but it sounds
    > like you ought to contact Support to check.
    I did, and they confirmed (very quickly; kudos!) what you and I both expect: the play order is determined by the alphabetical order of the file names. The mistake was mine. I ass-u-me-d that the MSWin folder "Name ^" order was correct. I did not realize that it is not exactly alphabetical when the file name begins with a number (e.g, the track number). I had renumbered songs from a second CD by simply adding 00 to the track number. Thus, songs and 2 of the first CD are played after songs 08 and 09 of the second CD, as they should alphabetically, even though they appear in the order , 2, 08, 09 in the "Name ^" list. Klunk! Mea cupla!

  • How can i control the timings of my slideshow using iphoto on my ipad

    Q: 1 how can i control the timings of my pupil's slideshows using iPhoto on the iPad?
    Q: 2 then how can i export them?
    Q: 3 how can i combine them from 8 individual slideshows to 1 for showing to their parents at an assembly?
    many thanks in anticipation of your collective help
    brian

    Here's my take on the same thing:
    Short answer: the dpi is set when you decide what size you're printing at.
    Long Answer: Dpi means nothing in the digital world of your computer. There are no "inches" to have "dots per..." Size is measured in pixels. That's the same on your camera. It doesn't take 10 x 8 or 6 x 4 shots. It takes shots measured in megapixels. For instance 4,000 x 3,000 is a 12 megapixel camera.
    Using that example, that shot from that camera has 12 million pixels. So that's how many "Dots" there are. To decide the ratio of dots per inch, you now need to decide the "inches" part. And that's printing. Print at 10 x 8 and the dpi will be 4,000/10 or about 400 dpi. At 6 x 4 then it's 4,000/6 or 660 dpi. Work the other way: Print at 300 dpi and the resulting image will be about 13 inches on the longer side.
    So, your photo as a fixed number of pixels. Changing the dimensions of the print will vary the dpi, changing the dpi will vary the dimensions of the print.
    For more see http://www.rideau-info.com/photos/mythdpi.html
    Regards
    TD

  • How can I control the size of the af:InputText?

    Hi,
    How can I control the size of the 'af:InputText' on the UI, without using columns & rows attributes. Even though I am using width & height attributes, the changes are not getting reflected in the UI.
    Thanks,
    Rajesh.

    Hi,
    It is inside a 'af:PanelBox'. So, the parent container also determines the size of the child? Here I need a create a 'pidgin chat window' kind of an interface with a fixed size top-level container, inside which I willl put all my components. The code looks something like this:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" partialTriggers="it1">
    <af:messages id="m4"/>
    <af:form id="f1" partialTriggers="it1">
    <af:panelBox text="" id="pb1" background="dark" type="stretch"
    titleHalign="start" ramp="highlight"
    inlineStyle="width:350pt; height:500pt; margin:0.5pt; padding:0.5pt; border-width:0.5pt; "
    partialTriggers="it1">
    <af:spacer height="15pt" id="s1"/>
    <af:inputText id="ot1"
    columns="82" rows="25" wrap="hard"
    partialTriggers="it1"
    value="#{ChatClientBean.chatLog}"
    binding="#{ChatClientBean.outputChatTextBox}"
    visible="false">
    </af:inputText>
    <af:spacer height="27pt"/>
    <af:inputText id="it1" inlineStyle="width:200pt; height:100pt;"
    valueChangeListener="#{sessionScope.ChatClientBean.sendMessage}"
    autoSubmit="true" partialTriggers="it1"
    binding="#{ChatClientBean.inputChatText}"/>
    </af:panelBox>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks,
    Rajesh.

  • Since I upgraded to IOS5, my Smart Playlists are in a random order. Since I use it for listening to Talking Books this makes it useless. How can I control the order of a Smart Playlist?

    Since I upgraded to IOS5, my Smart Playlists are in a random order. Since I use it for listening to Talking Books this makes it useless. How can I control the order of a Smart Playlist?

    It may be best to recreate the folder and the smart playlists from scratch.
    tt2

  • How can I work the raw file from Canon 5D MkIII in Photoshop Elements 9?

    how can I work the raw file from Canon 5D MkIII in Photoshop Elements 9?

    You can download the 7.1 DNG converter to make copies of your canon raw files in the adobe dng format, which can then be opened in pse 9.
    As said above the the latest camera raw plugin 6.5 for pse 9 won't open those files directly, but will open the the converted dng files.
    windows:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5389
    mac:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5388

  • Apple TV uploads can take up to 30 minutes. I need control over this, because it interrupts my presentations. How can I control the time it chooses to do uploads?

    Apple TV uploads can take up to 30 minutes. I need control over this, because it interrupts my presentations. How can I control the time it chooses to do uploads?

    this is exactly the kind of response i expected, almost begged support to please not do this to me and yet there it is another meaningless, non helpful, standard template response to restart my apple tv.
    this does NOT work which is why i am contacting you. i have tried all suggestions about unplugging and restarting and nothing works.
    i live in an apartment and logon to the provided wifi wireless. so i do not have access to a router. however, management says they have talked with their provider and have been assured that the required ports are available.
    remember all the jokes about how bad windows was because the solution was always to re boot. funny huh? how is apple any different.
    i have been to the local apple care store and they are clueless, too.
    should we just end it here and you admit that i will not be getting any support from apple on this one? i got the ipad because my kids were such big fans. it is difficult for me to share their enthusiasm.
    at this point i am just curious about how you say you cannot support your own product so i can complete my file on this contact.
    thanks...sorry it was you who got this problem..

Maybe you are looking for