How to write in DAQ ports ?

Hello,
I would like to write a short binary number (for example : 0110) to the DAQ card to control a camera. This number is a command.
I use a PCI-6034E card. I don't know how to do that, I tried to write directely to the port but it didn't works.
Thanks for your helping.
BD.
~ La programmeuse compile le C. ~
http://www.pmeonline.fr.st
http://www.nihon-fr.com
http://www.cinemasie.com
http://ippai.free.fr

Hello,
If I understand well your question, you want to write on the digital port of your PCI-6034E Card.
To do that, you should use the DAQmx functions provided with NI-DAQ Driver.
Please find enclosed a LabVIEW example using these functions to write on a digital port.
Best Regards,
Benjamin M
NIF
Attachments:
Write Dig Port.vi ‏51 KB

Similar Messages

  • How to write a program that runs on a port like a deamon or service?

    hi,
    how to write a program in java that runs on a port like a deamon or service, accepts requests from client, process the request and gives responce.
    for ex. tomcat runs on 8080 port as deamon or service.
    is it socket programming? if yes please give me a simple program which runs on a specific port.
    ex. a program running on a port talking two integers and return the total.
    thanks and regards,
    moses.

    I suggest you read
    [http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.html]
    For more
    [http://www.google.co.uk/search?q=serversocket+tutorial]

  • How to write a function block?

    Hi There,
    Does anybody know how to write a function block with LabVIEW?  Something like those in Real-Time VIs>>Function Blocks>>.
    Thank you very much in advance?
    Solved!
    Go to Solution.

    I don't want to overwelm you but there is tons of free training material online.  One of these is the one already mentioned.
    NI Learning Center
    NI Getting Started
    -Hardware Basics
    -LabVEW Basics
    -DAQ Application Tutorials
    3 Hour LabVIEW Introduction
    6 Hour LabVIEW Introduction
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to load NI DAQ MX in Powershell?

    (I hope this is the right forum to ask this question.)
    I wish to load the NI DAQmx feature set in Microsoft Powershell. I am on Windows 7. I cannot find any samples show to do this.
    I believe I have everything installed. I also have some Excel files that load NIDAQmx.tlb and properly run the device attached to me PC. The Excel files have VBA code (written by someone else) that inject current and voltage to an attached device. Excel's VBA project references load C:\Windows\SysWOW64\NIDAQmx.tlb (and also C:\Program Files (x86)\NationalInstruments\Shared\TDM Excel Add-In\ExcelTDM.dll).
    Since the Excel files run properly, I assume I have everything installed I might need to use NIDAQ MX in Powershell. However I am stymied how proceed. I would like to replace what the Excel file plus is VBA code do and do it in Powershell code.
    Any advice or samples how to get NI DAQ MX features loaded in Powershell would be of great benefit.
    Thanks
    Joe

    Thanks for the replies.
    I didn't know where to post the original questions which is why I guessed here might be good.
    >>How is this question in any way related to Measurement Studio for .NET ?
    So if there is a better place, let me know and I will move it.
    I would like write Powershell scripts that run the NI DAQ MX functionality using Powershell (so I am running from the command line) to minimize (or eliminate) use of a UI.
    I'm at a loss how to get started with Powershell and NI DAQ MX. I know, for example, if one is writing an application in in C this situation, the first thing one does in the code is load NIDAQMX.LIB and also one includes NIDAQMX.H. Well, the .H file is inappropriate in Powershell for sure. And loading .LIB files does not go well. So, what to do, since there is no NIDAQMX.DLL ?
    I mentioned the Excel file with macros that I obtained which loads NIDAQMX.TLB. Loading the objects in a TLB file Powershell is possible, the TLB needs to be "registered". I was able to register NIDAQMX.TLB (after installing WIndows Update KB2640696). However, even after registring I could not load its objects.
    So I am looking for a sample from someone who might have gotten this to work.
    Thanks for your help or any advice.
    Joe

  • Write all digitall ports (Channels) with decimal value

    Hi,
    it is possible to write all digital port with a decimal value for a device with 96 channels in the same time?
    I have a USB 6509 device and I want to write each bit whit value 1 in loop (for the first port I write 0,1,2,4,8,16, 32, 64 and 128) with line "Dev3/port0/line0:7", but if I want to write all the ports in the same time how to set the line and the "DAQmx write.vi"?
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    Untitled 1.vi ‏13 KB

    You can setup reading and writing in 8-bit ports with the 6509.  So you could just write 128 to "Dev3/port0".  If you want to write to all 12 ports, I recommend making a task that is multiple channels on the 6509 module, each channel in the task being a port.  You can then use the Multiple Channel, Single Sample to write your values.  Your values will need to be in an array of U8.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Iphone 4 cdma ppp user hdr password how to write  cdma work shop

    iphone 4 cdma ppp user hdr password how to write im using  cdma work shop
    and how to enble dignostic port 

    My Yahoo email account worked just fine on my iPhone 4S  for the last 2 months. Then this morning I started receiving the apple.imap.mail,yahoo error.  I tried all of the steps above in solving the yahoo email issue including numerous hard re-sets and deletions of my yahoo account settings without any success. So I gave up trying to use the default Yahoo setup option.  I added my Yahoo account back as an "other" type email account and then had the option to choose to set it up as a "POP" account instead of an IMAP type. I then just used the server settings recommended from Yahoo Help for a Yahoo Plus Email POP (or just google yahoo plus email pop settings). This works and I am back in business.
    I'm not sure if this will work for yahoo mail classic accounts.
    Frustrating that this issue seems to have been going on for quite awhile and Apple still as not made any acknowledgement of this issue or proposed a fix for those of us that can not resolve the issue with a reset.

  • How tonsee how much IO each open port is doing?

    Hi all,
    Is there any way to see how much IO each open port is doing?
    Netstat, lsof and portstat all show the open ports. I want to see how much IO each is doing. Even better would be an historical list.
    Seems like such a useful piece of data that one would think that the command exists and is probably some option on netstat or something that I have missed.
    I will even write the C program to extract the information from the kernel if that data exists but is not available from an existing command.
    I suppose if nobody knows what that command would be perhaps they can point me toward the kernel docs to see if I can find the information in the OS?
    Thank you.
    Avraam Jack Dectis
    .

    tcpdump
    DESCRIPTION
    Tcpdump prints out a description of the contents of packets on a net-
    work interface that match the boolean expression. It can also be run
    with the -w flag, which causes it to save the packet data to a file for
    later analysis, and/or with the -r flag, which causes it to read from a
    saved packet file rather than to read packets from a network interface.
    In all cases, only packets that match expression will be processed by
    tcpdump.
    See also http://www.wireshark.org/

  • How to write numbers in Arabic?

    Hi All,
    How to write numbers in arabic?
    (how will you in normal papers....assume 123 to be in the arabic numerals here).
    Should it be:
    | -123|
    (or)
    | 123-|
    Thanks,
    Jana

    Try the following.
    DecimalFormat formatter_ar=null;
    Numberformat form = NumberFormat.getNumberInstance(new Locale("ar","EG"));
    if(form instanceof DecimalFormat) formatter_ar = (DecimalFormat)form;
    String str = formatter_ar.format(-123.45);
    System.out.println(str);

  • How to write a start routine in the trasnformations ?

    Hi Experts,
    I am working on BI 7, As I want to write a start routine in transformations of 0FIGL_O02 DSO, to allow the GL accounts with cost center data. Already there is a delete statement please find.
    *DELETE SOURCE_PACKAGE where BAL_FLAG = 'X'. I had made comment to allow the G/L accounts. since I have some GL Accounts which does'nt have the cost center data, so in this case I have to write a ABAP code to allow this G/L accounts with cost center data.
    So Let me know if anyone can help me how to write the ABAP code in the start routine.
    Thanks
    sekhar

    Hi,
                Yopu can write the below lines of code adn try
        SORT source_package BY Receive nr  Type ASCENDING.
        DELETE ADJACENT DUPLICATES FROM source_package COMPARING Receive nr  Type.
    But you should make sure which record of the either rows need to deleted
    i.e in
    F9001;LU;J001;662;
    F9001;LU;J002;662
    You need to decide to eliminate 1st or 2nd one.(depends on your requirement)

  • How to write the start routine in the transformations ?

    Hi Experts,
    I am working on BI 7, As I want to write a start routine in transformations of 0FIGL_O02 DSO, to allow the GL accounts with cost center data. Already there is a delete statement please find.
    *DELETE SOURCE_PACKAGE where BAL_FLAG = 'X'. I had made comment to allow the G/L accounts. since I have some GL Accounts which does'nt have the cost center data, so in this case I have to write a ABAP code to allow this G/L accounts with cost center data.
    So Let me know if anyone can help me how to write the ABAP code in the start routine.
    Thanks
    sekhar

    Hi Experts,
    I am working on BI 7, As I want to write a start routine in transformations of 0FIGL_O02 DSO, to allow the GL accounts with cost center data. Already there is a delete statement please find.
    *DELETE SOURCE_PACKAGE where BAL_FLAG = 'X'. I had made comment to allow the G/L accounts. since I have some GL Accounts which does'nt have the cost center data, so in this case I have to write a ABAP code to allow this G/L accounts with cost center data.
    So Let me know if anyone can help me how to write the ABAP code in the start routine.
    Thanks
    sekhar

  • How to change the default port of webdispatcher

    Hello Everyone,
    We wish to  know to how to change the default port of SAP webpatcher port from 81$$ to 80.
    Appreciate your response.
    Thanks,
    Vadi

    Hello Vadi
    you have to change the PORT value in your profile parameter from 81$$ to 80
    icm/server_port_0 = PROT=HTTP,PORT=81$$ to
    icm/server_port_0 = PROT=HTTP,PORT=80
    Also, in SMICM, then change http service port and activate it and above parameter will require SAP restart
    $$ is used generally to accomodate multiple port services running in SMICM and so as to avoid the parameter setting according to instance number of any system.
    thanks
    Bhudev

  • How to write a pgm to change the existing encrypted password

    Hi all,
    can anybody tell me how to write a pgm to change the existing encrypted password.
    thanks in advance.

    Well, it's going to depend on how it's implemented in the current system.
    But basically it's going to look a lot like the current login actions. Presumably you have something that takes the user ID and password, encrypts the password, looks up the encrypted password in the database matching that user ID, and compares them. This functionality would also take a new password (preferably twice so they can be checked for consistency), and if the existing encrypted passwords match, it will encrypt the new password and put it in the database where the old one was.
    And if the application has a mechanism for new users to sign up, it'll look a lot like this as well.
    But I'm just guessing. This is all going to depend on how the existing functionality is written. Probably the best thing you can do is talk to a programmer at your organization who has worked on the application, and ask them for help.
    Hope this helps anyway.

  • How do you set up Port Forwarding for ARD 2.2 in AEB N?

    Help,
    I'm a novice at Apple Remote Desktop (ARD) - not an IT guy, so it has to be pretty basic and detailed.
    How do you set up Port Forwarding for ARD 2.2 on the Apple Airport Extreme BS router, 802.11 N. I have one at each end of the internet connection. At one end I have an Airport Extreme N router with 2 macs and eventually 1 windows XP machine (if I can) that I would like to be able to connect to over the interenet (the clients) and at the other end, I have a Mac with ARD 2.2 installed also with an Airport Extreme N router. Note: Both routers use Static IP addresses and all computers use static IP's internally not through DHCP. What are the settings or directions to do this.
    I have read and printed out the directions for Configuration of ARD 3.0 that are posted many times in the ARD discusion group, but it uses a Linksys router ( http://www.starkpr.com/ard.htm posted by Dave Sawyer). The Mac router is different, particularly with the place to set a Private IP address. I'm not sure about alot of things, but especially about the Private IP address, what number do I set it to, the one that is in my Network connections list? It automatically changes to a different number in AE N setup for Port Forwarding (by one) as if it is not suppose to the same?????
    Are there any directions available that are as straight forward for the Airport Extreme N router, as the one's that are listed here for the Linksys Router's? ( http://www.starkpr.com/ard.htm )
    Any and All help will be greatly appreciated.
    P.S. I know I should have 3.0 but bought 2.2 just weeks before 3.0 came out and they would not give me an upgrade price, so I'm waiting for 4.0 to upgrade.
    Thanks,
    Jim

    Try the following for each AirPort Extreme ...
    AEBSn - Port Mapping Setup
    To setup port mapping on an 802.11n AirPort Extreme Base Station (AEBSn), either connect to the AEBSn's wireless network or temporarily connect directly, using an Ethernet cable, to one of the LAN port of the AEBSn, and then use the AirPort Utility, in Manual Setup, to make these settings:
    1. Reserve a DHCP-provided IP address for the host device.
    Internet > DHCP tab
    o On the DHCP tab, click the "+" (Add) button to enter DHCP Reservations.
    o Description: <enter the desired description of the host device>
    o Reserve address by: MAC Address
    o Click Continue.
    o MAC Address: <enter the MAC (what Apple calls Ethernet ID if you are using wired or AirPort ID if wireless) hardware address of the host computer>
    o IPv4 Address: <enter the desired IP address>
    o Click Done.
    2. Setup Port Mapping on the AEBSn.
    Advanced > Port Mapping tab
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s): 3283
    o Public TCP Port(s): 3283
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s): 3283
    o Private TCP Port(s): 3283
    o Click "Continue"
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s):
    o Public TCP Port(s): 5900
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s):
    o Private TCP Port(s): 5900
    o Click "Continue"
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s):
    o Public TCP Port(s): 5988
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s):
    o Private TCP Port(s): 5988
    o Click "Continue"
    (ref: "Well Known" TCP and UDP ports used by Apple software products)

  • How to write a sql query to retrieve data entered in the past 2 weeks

    Hi,
    I have file names and last accessed date(java.sql.Date format) stored in my database table, I would like to know how I can write a query to get the name of files accessed in the past 2 weeks,I use open sql server at the back end.
    Thanks in advance.

    This has essentially nothing to do with JDBC. JDBC is just an API to execute the SQL language using Java and thus interact with the databases.
    Your problem is related to the SQL language, you don't know how to write the SQL language. I suggest you to go through a SQL tutorial (there is one at w3schools.com) and to read the SQL documentation which come along with the database in question. A decent database manfacturer has a website and probably also a discussion forum / mailinglist as well.
    I'll give you a hint: you can just use equality operators in SQL like everywhere. For example: "WHERE date < somedate".

  • How to write a SQL query in SAP B1 2007 B with input parameters?

    How to write a SQL query in SAP B1 2007 B with input parameters, on execution of which will ask for some input value from the user and the values will be selected from a list such as item list?

    The syntax like
    SELECT * FROM OITM T0 WHERE T0.ItemCode = '[%0\]'
    Thanks,
    Gordon

Maybe you are looking for

  • Load and Display Multiple Images in a Web Dynpro Table

    I am new to Web Dynpro and I am wondering if anyone can help me with an application that I am currently developing. I have a particular requirement to store images in a database table (not MIME repository) and then display them in a WD table element.

  • Changes to Derived Logical Column not reflected in Answers

    Before I go off my rocker and stab myself with my IPhone lightsabre... :-) I created a new logical column for an existing table in my BM, deriving from an existing column (a datetime field called ESTIMATEDCLOSE) as follows: MONTHNAME(Sales.OPPORTUNIT

  • News Text is not visible in News iview

    Hi All, I have created a news form similat to standard one, but i am able to see the date, author, title, body and readmore link but not abel to see  News text. what may be the reason, i want similar functionality as that of standard one. is Show for

  • Etsy shop is not displaying twitter or facebook connection

    I have an Etsy shop Tinkaroundknits that is connected to twitter and facebook. Under my shop banner should be a twitter follow button and on the left lower side of my shop there should be a facebook like button. Both of these buttons show up and are

  • Scale website to fit browser width

    Hi I'm new to Muse. There is something i have been trying to do, but can't make it work. I know about the possibility of full screen and 100% width slideshows. But that is not exactly it. What I can't figure out is how to make a website that fits and