How do I use the a command from a .dll with labview?

I want to use for example the M8784Open() command to control an M8784
photon counter.  I know how to place a call library function node
but don't know where to go there. The user manual for the photon
counter has the following explanation of the M8784Open() command but I
don't know how to use their advice in labview!
7-3-1 M8784Open( )
Declaration HANDLE M8784Open( BYTE Board );
Parameter
BYTE Board
Specify the board to be used: M8784_MASTER or M8784_SLAVE. Specify both
when making 2-channel measurements simultaneously. It is not possible
to specify M8784_SLAVE only.
Return value A handle for the M8784 is returned when the function has succeeded..
INVALID_HANDLE_VALUE is returned if the function has failed..
Explanation Calls a handle to allow the M8784API.dll to use the M8784.sys driver.
Hereafter, specify this API’s return value (handle) when using other APIs.
When quitting M8784 operation, call up M8784Close( ) to cancel the driver.

You need to find out the equivalent number of the parameter. Somewhere in your documentation, or inside a file (for example, a header .h file in C/C++) you will find the definitions of each parameter.
For example, M8784_MASTER may have the value 1 and M8784_SLAVE the value of 2. You already know that it is a BYTE, so it will be a number of type U8 in LabVIEW. You need to find the exact values.
Probably, by value "A" it means the hex number "A", which is 10 in decimal. You need to find that in your documentation.
You also need to find the type HANDLE. It can be a BYTE, etc. Once you know that, find the value of INVALID_HANDLE_VALUE, so you can test for the error.
Most of this information can be found in the document Using External Code in LabVIEW. Check your help file, or check this link.
Regards;
Enrique
Message Edited by Enrique on 09-29-2005 10:36 AM
www.vartortech.com

Similar Messages

  • I do not have a credit card how can I use the App Store from Belize

    I do not have a credit card how can I use the App Store from Belize

    iTunes gift cards.

  • HT201328 My iPhone is from Japan and I want to activate it here in the Philippines because I'm living here. I have lost the original SIM from Softbank and replaced it with a new SIM card from Globe. How can I use the SIM card from Globe?

    My iPhone is from Japan and I want to activate it here in the Philippines because I'm living here. I have lost the original SIM from Softbank and replaced it with a new SIM card from Globe. How can I use the SIM card from Globe?

    You cannot. The iPhone is locked to Softbank, and only they can unlock it. Problem is that Softbank will NOT unlock the phone, as they do not offer iPhone unlocking.
    Buy an iPhone in the Phillipines.
    PS Before you go on a rant at Apple, be aware that Apple does NOT unlock phones and they do not set unlocking policies. The carriers (Softbank in this case) set the unlocking policy.

  • How do I use the 'mv' command??

    I want to move some scripts file into my /User/Local/Bin/
    folder but i cant i get
    usage: mv [-f | -i | -n] [-v] source target
           mv [-f | -i | -n] [-v] source ... directory
    and i dont know what else to do because i really need to move the files.
    So far this is the way im doing it
    sudo mv encode-handheld-5.2.pl /User/Local/Bin/
    And when I do that I get this message...
    mv: rename encode-handheld-5.2.pl to /User/Local/Bin/: No such file or directory
    How do I use the mv command or how am i supposed to mv those files.??
    Help Please!

    You are still not providing the path to the file you're moving.  Did you read my earlier response?  Are you sure this file is in the current working directory?  Try the "ls" command (that's lowercase "LS").  Do you see that file?  If not, follow my earlier directions.
    As to whether the /usr/local/bin directory exists, it should, but you can check with:
    ls -al /usr/local/bin
    If you get an error, the directory does not exist for some reason, which means your system is in an uncertain state.
    BTW, meaning no offense, if you don't know all this stuff, you should be very, very cautious when using the Terminal.  It is a very dangerous place to those who don't have some idea what they're doing.  You can irreparably damage your system (requiring a reinstall) and even destroy your data with very minor typos.

  • How do I use the AirPlay Mirroing on my mac with Mountain Lion ?

    How do I use the AirPlay Mirroing on my mac with Mountain Lion ?
    I watched the video about Mountain Lion, but the airplay icon can't appear on my menu bar.
    WHY ?

    i have a MacBook Air (Early 2011)
    and it doesn't support the airplay mirroring ,,, the only things that the failed to do is  " MENTION IT "
    it wouldn't hurt anyone if they just say it's limited to Late macs ,,,, i really wanted that feature and i updated my mac so i can watch movies on my HD screen ,,,,
    i hope they made and update for it ,,, otherwise i have to wait another 4 months to get a new macbook pro

  • How can I use the work/result generated by quartusii in labview 8.0

    hi ,
    I customized a developing board in quartus ii on the basis of nios ii ,and there are  many customed i/o devices in it, then I want to ask how can I use the work/result  generated by quartusii  in labview? I am new in labview. and I can't find any relationship between quartus ii and libview 8.0.
    tks!

    http://forums.ni.com/ni/board/message?board.id=170&message.id=264457#M264457

  • How can I use the output value from SIMPLE PID to write something to the serial port?

    I am working on my Senior Design Project that requires the use of incoming compressed air, propotional valves, continuous servo motors, and a serial servo motor microcontroller.  I have figured out how to send byte sequences to the microcontroller through LabVIEW using the VISA serial write function.  The motors are attached to the valves to control the flow rate.  I have created my own simple feedback system using a bunch of case structures but I realized that I am basically trying to recreate the wheel (I basically was writing my own PID VI).   I have an older version of LabVIEW (7.0 Express) and theres no way to upgrade or buy the PID toolkit, so I am stuck using the Simple PID VI.  Also, the only way the motor works is sending an array of bytes to tell it to turn on/off, direction, and speed.  Is there any way I can use the Simple PID VI in conjunction with the VISA SERIAL write function, or is there any other way I can communicate with the serial port using this pid vi?  Any information would be appreciated.

    Hi gpatel,
    you know how to communicate to serial port, but you don't know how to send a value from SimplePID to serial port???
    You know how to communicate, but then you don't know how to communicate???
    You should explain this in more detail...
    Edit:
    From you first post you know what values your motor driver is expecting. You know which values the PID.vi is providing. Now all you need is a formula to reshape the values from PID to the motor. It's up to you to make such a formula. Unless you provide any details we cannot give more precise answers...
    Message Edited by GerdW on 02-28-2010 08:35 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • HT3176 How do you use the submit command?

    HOw do I use the Apple TV remote to submit after typing?

    You can use Runtime.exec to execute other processes from Java. You'll want to read this though:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How do I use the XML-data from a callback in JSP?

    I´ve tried this but with no success..
    How do I recieve the data in a servlet/JSP-page?
    Thanks.

    Thanks for helping me Anurag.
    The problem I tried to solve was that I want the result from my service methods
    in XML format. I thought a callback/polling was the best alternative, am I right?
    Since the callback option doesn´t work I will try to poll the service.
    Are there any other options for solving my problem??
    Thanks again!!
    /A
    "Anurag Pareek" <[email protected]> wrote:
    >
    Andrej,
    I guess you are trying to invoke a Webservice which defines a callback
    method
    from a JSP, and want the JSP to handle the callback made by the webservice.
    For a client to be able to handle a callback made by a Webservice, it
    has to be
    a web service in itself.
    Even some web service tools do not support 'Solicit responses' and hence
    they
    would not generate handlers for the callback methods by default. You
    can download
    a callback WSDL in such cases and implement it on the client side. The
    server
    side web service will then callback to that webservice.
    The other option to callbacks is to use polling methods. This can be
    done from
    any client such as Java client/ JSP client or a .NET client.
    Hope this helps. Let me know if you have any further questions.
    Regards,
    Anurag
    "Andrej" <[email protected]> wrote:
    I´ve tried this but with no success..
    How do I recieve the data in a servlet/JSP-page?
    Thanks.

  • How can I use the pulse train from a 6602 to trigger an niFGEN and niSCOPE on each rising edge of the pulse train?

    Hello,
    Here is my application: I need to use a 6602 counter/timer to generate a pulse train of certain frequency and duty cycle. On each rising edge of this pulse train, I need to output an arbitrary waveform on Ch. 0 of an niFGEN (5422) AND acquire data from CH. 0 of an niSCOPE (5124). I also need to synchronize the niFGEN and the niSCOPE to the same clock used for the pulse train (6602/ctr0). This process needs to continue until the user stops the system.
    I can generate the pulse train using the 6602 just fine using ctr0, but the pulse train shows up on OUT0 by default. When setting up the niFGEN and niSCOPE to trigger on rising/positive slope edge, OUT0 is not an option for either device as a source for the digital rising edge (pulse train). The main options for both are PFI0-3 and RTSI lines.
    Questions:
    1.) Is there a way that I can direct the pulse train to a location (such as an RTSI line) where BOTH the niFGEN and the niSCOPE can use it as a start trigger for each rising edge? I noticed in MAX that a route can be made between ctr0's internal output and a trigger line and others. If this is a solution, could you please explain how to accomplish this?
    2.) Once I configure the niFGEN and niSCOPE to be triggered on a digital rising edge, how can I effectively have this happen for every rising edge from the pulse train? In other words, can I just initiate the FGEN outside of the while loop and it will generate a waveform for each rising edge it sees at the source until the while loop is exitted?
    3.) Is setting a reference clock for the niFGEN and the niSCOPE the same thing as synchronizing both devices using the same clock that generated the pulse train? It is not clear to me the difference, and why it would necessarily be useful.
    Images of my current front panel and block diagram are attached. If you would rather have the actual VI's just let me know. Any help and/or explanation on this is greatly appreciated. Thanks in advance.
    Attachments:
    Front_Panel_Control.jpg ‏278 KB
    Block_Diagram_Control.jpg ‏263 KB

    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 use the onboard memory from NI6534

    I want to use the onboard memory of PCI 6534,but i don´t how can i put my data on this memory? are there function or command for that?
    thank you.
    Armand

    Armand,
    Please reference the User Manual for the PCI-6534. Specifically, pages 2-10 and 2-22 in the Continuous Output sections explain how to leverage the onboard memory using either LabVIEW or the NI-DAQ C interface. For LabVIEW you will set the Pattern Generation Loop Enable attribute to ON in the DIO Parameter VI.
    653X User Manual
    http://digital.ni.com/manuals.nsf/websearch/EDE443F5C700373A862569B90072D26F?OpenDocument&node=4575_US
    Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • Is is posible to use the zip command from inside sp?

    Hi,
    I have a requirement like i need to write the selected column
    from table and i want to write in a file and need to zip is it
    possible? command line will work inside sp??
    Thanks,
    Rangan S

    I am sorry for the previous answer . i know upto creating file writing into that
    using sp? using UTL_FILE operation.
    but i want to zip the file --> this part i wanted to do in sp?
    will it work
    Thanks
    Rangan s

  • How can I use the sound track from a movie as background in the menu

    I have created a short movie in IMovie that I want to use in the IDVD menu and also want to use the soundtrack from that movie as the background for that menu.  Thus far, I have not found a way to make that happen.

    Extract the audio from the movie with either Quicktime Pro,  iMovie or a 3rd party audio editor like Amadeus Pro and use it as the menu's audio. 
    OT

  • How can I use the defaults command to edit a sub key in an array of plist?

    For example, how could I edit the Name key in the array?
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Test</key>
    <array>
    <dict>
    <key>IPAddress</key>
    <string>xxxx</string>
    <key>Name</key>
    <string>yyyy</string>
    </dict>
    </array>
    </dict>
    </plist>

    I realize you are asking specifically about 'defaults', but as they concede in 'man defaults', it may not be the best tool for editing properties in "complex" structures, such as those buried in dicts within arrays, etc.
    As an alternative, it looks like in 10.5, '/usr/libexec/PlistBuddy' is now a part of the standard install - 'PlistBuddy' may be more useful for this sort of task.
    For example:<pre>
    /usr/libexec/PlistBuddy -c "set Test:0:Name zzzz" /path/to/file.plist</pre>

  • How can I use the media Buttons on my M40X with WinAmp?

    Hello
    Today I got my M40X and i have a question.
    There are 5 media Button left of the keybord (CD/DVD, Play/pause, Stop, <-/->)
    Is it possible to use them with WinAmp?
    In the Toshiba Assist i got the CD/DVD button used to start WinAmp (by use him to start a .exe) but the Play/pause...dont work. In the field media Apps the only Player i can choose is Win MP10 (I hate this piece of sh*t).
    How can I use these Button with WinAmp?

    Hello
    As far as I know the Toshiba Controls were tested and designed only for Microsoft Media Player and WinDVD. How this topic says:
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=3621&messageID=11461#11461
    I dont have any experience with WinAmp but I found useful info in this forum about this theme:
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=6673&messageID=24448#24448
    Check this.
    Bye

Maybe you are looking for

  • Lenovo 3000 N200 (0769) - Audio/Sound problem

    Hi, My system: Win XP SP2, all drivers are updated with Lenovo Care - System Update, in Control Panel->Device Manager all items are OK regarding sound system, NO yellow marks (Audio Codecs - OK, Media Control Devices - OK, Realtek HD Audio - OK, UAA

  • How to customize search in WS 7 and for multiple virtual servers?

    I'm not clear on how to customize search results pages in Sun Web Server 7. The documentation (the Adminstrator's Guide, page 215) says: You can take a look at the default search application located at /bin/https/webapps/search as a sample applicatio

  • When I open a new project what format do I use with clips from Canon Legria (1440x1080)?

    I have Premiere Pro CS 5.5 and a Canon Legria HF S100 digital video camera. My frames are 1440x 1080.  I have a widescreen Sony tv on which I want to play my video when it has been edited and burnt. When I opened a new project in Premiere Pro I set i

  • 10 minute timeout

    I recently purchased the Wireless-G Broadband Router - WRT54G - 6.0. Prior to this router I had another router that worked great with my Bulletproof FTP Server software. However, now everyone seems to time out after 10 minutes of downloading. There w

  • Kept crashing so uploaded v,7 now it not working at all !help

    firefox kept crashing and freezing so uploaded version 7. restarted computer and now although icon is on there when i clik on it it just opens up email program. also gave me a list of incompatible add ons like java etc. can i go back yo version 5 was