Need help using NI-488.2 with C++

First some background. I have an existing Windows application (written in MS Visual C++ 6.0) that essentially acts like a printer/plotter. There is a worker thread that receives data asynchronously from a serial port and writes the data to a file for later processing.
Now some of my customers want me to add a GPIB interface in addition to the serial interface. I have downloaded every document, application note, etc., from NI's site that I could find but I'm not finding enough information to help me figure out how to add the interface.
This is what I want to do (in a nutshell):
1) Application has to run on Win95/98/NT/2K/XP. This shouldn't be any problem but I thought I'd mention it.
2) Application has to run whether the
NI-488.2 device driver is loaded or not. For this reason I'll use what NI calls "direct entry" to access the GPIB-32.DLL (i.e. use LoadLibrary(), GetProcAddress(), etc.).
3) Receive GPIB data asynchronously from an NI GPIB interface board (e.g. PCI-GPIB) using a worker thread (same as I do for serial data).
The requirement as I see it is very simple - receive data asynchronously. But for the life of me I don't see any functions in the NI-488.2 API that I can use for event notification in a worker thread. It also seems like there isn't much in the way of sample code that I could find. The sample code I did find involved sending a command to a GPIB device and then reading the data back from the device.
I'm just in the research stage so I haven't installed the NI-488.2 driver or a GPIB card. No point spending money unless I can see a reasonable chance of success.
Does anybody know of some sample code, guidelines, etc., that may help me figure out how to use the NI-488.2 d
river to receive asynchronous data using a worker thread?
Thanks,
Mike

If file NIDevice.chm is intended for viewing by all customers, could you please move it to:
ftp://ftp.ni.com/outgoing/NIDevice.chm
A notice on machine ftp.ni.com says that as of January 23, 2004, it longer allows downloads from the incoming directory.
Domain name ftp.natinst.com doesn't seem to be accessible at all, though ftp.ni.com was accessible with the above notice.
By the way, some time ago I looked at the marketing pages for NIDevice and saw two different versions with wildly different prices (I think one cost about 20 times what the other cost). Can you say what the differences are?
Also a comment for the original poster: As a non-controller, I used ibnotify() to get a callback when the LACS bit turned on, i.e. w
hen the controller told me to listen. On speculation that the controller would really follow up that command by sending me data, my callback routine did an ibrda() and ibwait() with timeout.

Similar Messages

  • Need help using the "skatter" function with brushes.

    I'm using Photoshop 7 right now. I want to use the scatter function with one of the standard brushes to make a star trail, but the problem is that the stars are too thick, there's too many of them. How do I tell it to draw less instances of the brush when I'm in scatter mode? So that it's only dropping 5 at a time or so?

    I have a control bar for "Master Diameter" but I can't find anything that says "spacing."

  • Need  help using color checker passport with photoshop CS6

    Hello all,
    I'm having an issue using the Color Checker Passport with Photoshop CS6.  Here's my configuration:
    Mac Mini using OS 10.8, but very recently updated to 10.9 (Mavericks).  My problem is the same on either OS version.
    Photoshop CS6 ver 13.0.6 64 bit extended
    Adobe Camera Raw 8.4
    X-Rite Color Checker Passport ver 1.0.2
    Canon 70D shooting RAW in sRGB color space
    NEC Multi-Sync LCD monitor calibrated with Spyder 3 Pro ver 4.0.5
    Now here's the issue.  I go through the recommended workflow and generate a profile with no problem.  Then in Camera Raw (after restarting all applications) I apply the profile to a photograph and instead of getting a nice color-corrected image my image has a greenish-yellow tint to it.  It's very noticeable and I haven't been able to figure out what I'm doing wrong, if anything.  I re-calibrated the monitor, re-did the workflow with other pictures, but still get the same result.
    I greatly appreciate any help or ideas on how to remedy this.  I've sent an inquiry to X-Rite via their Support Web Page, but haven't heard back from them yet.
    Thanks,
    Kevin H.

    Hello all,
    I'm having an issue using the Color Checker Passport with Photoshop CS6.  Here's my configuration:
    Mac Mini using OS 10.8, but very recently updated to 10.9 (Mavericks).  My problem is the same on either OS version.
    Photoshop CS6 ver 13.0.6 64 bit extended
    Adobe Camera Raw 8.4
    X-Rite Color Checker Passport ver 1.0.2
    Canon 70D shooting RAW in sRGB color space
    NEC Multi-Sync LCD monitor calibrated with Spyder 3 Pro ver 4.0.5
    Now here's the issue.  I go through the recommended workflow and generate a profile with no problem.  Then in Camera Raw (after restarting all applications) I apply the profile to a photograph and instead of getting a nice color-corrected image my image has a greenish-yellow tint to it.  It's very noticeable and I haven't been able to figure out what I'm doing wrong, if anything.  I re-calibrated the monitor, re-did the workflow with other pictures, but still get the same result.
    I greatly appreciate any help or ideas on how to remedy this.  I've sent an inquiry to X-Rite via their Support Web Page, but haven't heard back from them yet.
    Thanks,
    Kevin H.

  • Need help using Apple Hi-Fi with iPod Touch.

    Are there any instructions for using an iPod Touch (third generation, iOS4) with the Apple Hi-Fi? I know it's supported from the Apple documents and I realize that it will not charge while using it but I just want to know how to make it work a little more consistently.
    I had been using my 8GB iPod Mini with my Apple Hi-Fi in the bathroom. Recently I decided to start listening to Pandora and, maybe 4 times out of 10 I can get it to work just fine, but more often than not it will randomly shut down (every minute or so) or start playing through the iPod Touch's internal speaker and I need to keep restarting and/or undocking and re-docking until it's finally stable enough to run for the half hour our so I need. Once it finally works everything works (volume on the Hi-Fi, remote control, etc.). The display won't stay lit without changing settings but that doesn't bother me that much.
    As I said, I have found the Apple documentation for the Hi-Fi that says it should work with the Touch (apart from charging) I just need some instructions on the proper way to connect and get it started initially. Any advice from people that have this working or even better any links to manuals or instructions that describe the correct way to do this would be greatly appreciated.

    The answer is yes. I am using my iTouch with iPod HiFi

  • Need help using adobe digital reader with screen reader software

    I am helping my father, who is blind, and uses Window-eyes screen Reader software, which reads his computer screen to him in an audio voice. We just bought an ebook, downloaded adobe digital reader, but his window-eyes software will not read the book to him when we have it displayed on his computer screen. Is there a solution to this?
    Thanks

    Thanks for the response. So, I see that my answer does not lie with Adobe--I will pursue the solution elsewhere, if anyone here has some further advice as to what the solution is, please let me know.
    Thanks again.

  • HT5622 i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading

    i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading.
    <Phone Number Edited by Host>

    You aren't addressing anyone from Apple here.  This is a user forum.
    You might want to call a neaby Apple store to see if they have a free class you could attend.

  • I need helping using iAds in my application.

    I need helping using iAds in my application. I currently am not using any storyboards. I am using Sprite builder for my UI.
    I attatched an image ot show all the different file name I have.
    Everyone is being used & they all work fully.
    The "iAdViewController.h & .m" files are just example codes I looked up and was messing with so that my iAd can work.

    I wouldn't even be able to use the Mathscript node in an executable? 
    What I am trying to do is make a user configurable data stream. 
    They tell me how many bytes are in the stream and what parameters they
    want to be put in to it.  Currently I have to make vi's that are
    called dynamicaly to make the parameters.   Then recompile
    the code and send it to them.  This is somewhat of how the config
    file is set up so I know how to make the data.
    Data_Type  foo
    Bytes 30
    parameter_name        
    function           
       byte#          format
    sync              
    foo_sync            
    29               int
    time                              
    foo_time             
    1,2,3,4       double
    If I can't use MathScript to allow the user to make there own functions
    is there another way that I might be able to do this so I do not have
    to recompile the code atleast?  Were I might just be able to make
    the new function and send that to them.
    Any Idea would be great.

  • Re: Beginner needs help using a array of class objects, and quick

    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ? In html, I assume. How did you generate the html code of your three classes ? By help of your IDE ? NetBeans ? References ?
    I already posted my question with six source code classes ... in text mode --> Awful : See "Polymorphism did you say ?"
    Is there a way to discard and replace a post (with html source code) in the Sun forum ?
    Thanks for your help.
    Chavada

    chavada wrote:
    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.You think she's still around almost a year later?
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ?Just use [code] and [/code] around it, or use the CODE button
    [code]
    public class Foo() {
      * This is the bar method
      public void bar() {
        // do stuff
    }[/code]

  • What is needed to use iPhone 5 musicdock with iPhone 4S and getting iPhone 4S battery charged. Any adapter yet?

    What is needed to use iPhone 5 musicdock with iPhone 4S and getting iPhone 4S battery charged. Any adapter yet?

    Not by Apple but see this
    SANDBERG 440-45 Adaptor 30 Pin to Lightning Connector
    Try Amazon in your Country

  • The key could not be obtained. You may need to use the -keystore argument with the specified keystor

    I am getting this error: "The key could not be obtained. You may need to use the -keystore argument with the specified keystore type." when trying to create an apk file using adt. I am following the steps mentioned here: http://blogs.adobe.com/ria/2010/10/28/creating-an-apk-file-using-flashbuilder-4-0/

    Could a self save from premiere cause the problem? By this i don't mean the autosave.
    Autosave is the only kind of 'self save', and is not likely to 'cause' project corruption.
    thnx for your reply. My first question came from a remark of Gakhue:
    "I'm using CS6 and I got that warning, I copied my project file on usb stick and re-opened in a different computer using CS5, it then gave me a few warnings about changing the name and saving it to auto save fault, I clicked away and said yes to each one"
    So i wondered how he did it
    The second question came from the fact that my last save was from 17 minutes after i left my studio. And i am not talking about an autosave. It was the main save of the corrupted videofile. And since i did not do it myself, the only option left is that Premiere did it? Or that premiere does not use the internal Mac clock and is on a different time. Which is not the case (just tested).

  • Need help using dbms_scheduler to submit an immediate job on the database

    Hi. I need help using dbms_scheduler to submit an immediate job on the database. Essentially I want to issue a one-time call to an Oracle Stored Procedure - this procedure will then send an email. I've never used dbms_scheduler before, but here's what I have so far.
    So my Program is a stored database procedure named 'TTMS.dropperVacationConflict_Notify', but my problem is that I need to pass 3 parameter values to this job each time I run it. This is what I can't figure out. The procedure expects an 'Id' as number(5), begin_dt as a date, and end_dt as a date.
    How do I pass these values when I run my job? Can anyone help?
    begin
        dbms_scheduler.create_program(program_name=> 'PROG_DROPVACCONFLICTS_NOTIFY',
         program_type=> 'STORED_PROCEDURE',
         program_action=> 'TTMS.dropperVacationConflict_Notify',
         number_of_arguments => 3,
         enabled=>true,
         comments=> 'Procedure to notify PCM of a Dropper Vacation Conflict. Pass in Dropper Id, Begin_dt, and End_dt');
    end;
    begin
        dbms_scheduler.create_schedule
        (schedule_name=> 'INTERVAL_EVERY5_MINUTES',
         start_date=> trunc(sysdate)+18/24,
         repeat_interval => 'freq=MINUTELY;interval=5',
         end_date => null
         comments=> 'Runtime: Every day all 5 minutes, forever'
    end;
    begin
        dbms_scheduler.create_job
        (job_name => 'JOB_DROPVACCONFLICTS_NOTIFY',
         program_name => 'PROG_DROPVACCONFLICTS_NOTIFY',
         schedule_name => 'INTERVAL_EVERY5_MINUTES',
         enabled => true,
         auto_drop => true,
         comments => 'Job to notify PCM of Dropper Vacation Conflicts'
    end;
    /And I use this to execute the job as needed...
    begin
        dbms_scheduler.run_job('JOB_DROPVACCONFLICTS_NOTIFY',true);
    end;
    /

    Duplicate Post
    Need help using dbms_scheduler to submit an immediate job on the database

  • Help! Plug-In SLL_PI 720_46C needed to use GTS 72 together with R/3 4.6C?

    Hi together,
    maybe anybody can help me with my question:
    We want to use GTS 7.2 together with ERP 4.6C. Do I have to install additionally the plug-in SLL_PI720_46C in my feeder system? Or is it ok if I have only the standard plug-in PI2004_1_46C, SP14 installed? Do I need both?
    Thanks very much for your help and answers.
    Cheers,
    Andreas

    Andreas,
    I believe in your case it would be sufficient to install the GTS7.2 plug-in.  SAP changed its plug-in strategy for GTS 7.2 and went from the plug-in that comes pre-installed with ECC 6.0 to a separate GTS plug in for 7.2.
    I also have used GTS 7.2 with the "old" plug-in which you're referring to.  This will work for the basic Compliance and Customs functionality but I am guessing that you would run into issues when trying to use functionality that is new in GTS 7.2.
    Sascha

  • Need help using Apple Remote Desktop for remote family members

    I am new to ARD and need help. I know there are solutions to do what I am trying to do through LogMeIn and Teamviewer - but I have LogMein right now and the free edtition is going away and I think Teamviewer will do the same sooner or later. I have remote desktop but hadnt used it, so I thought it would be a good thing to implement so I wont have to worry about paying fees for services like LogMein or teamviewer down the road.  Long story short I need to be able to remote help friends and family members with their macs and using applications, mostly through screen sharing and control and file sharing. All of the folks id like to help have home ( not business style ) internet service whith DHCP and non-static IP's.  I have set this up for myselft to test it and I can be at work and search my homes IP address and I can see all the macs with ARD on them and it all works perfectly.  I have a mac mini running Lion Server so the ports are forwarded to that server at my home - this is the only think I can think of that is making my home work and my friends not.  But when I try to help my friends and family after I type in their IP and it scans it sees their computer - ( it shows a grayed out icon and their IP ) but nothing else.  I cannot control or screen share. It says it cannot verify.  I helped my friends put the ARD client ( most up to date client ) on their macs as well.  I was hoping that using ARD would mean not haivng to set up my friends and family's routers for port fowarding and all those details.  Is there anything I can do using ARD to be able to type in my friends IP address have it scan and then see all their MACS at their home and pick the one that needs attention/ help, without port forwarding or heavy set up ?  I guess the root question here is how or what is best way to set up ARD to be used to help people remotley when they are all home users as well, no port forwarding, no static-IP, that kinda thing.
    Any help is appreciated - Im trying to use ARD and not a 3rd party app since im afraid even if they are free now they wont stay that way. Please let me know throughts and sugesstions ;p)

    I poked around a bit and the file seems to be:
    /Library/Application Support/Macromedia/mms.cfg
    I'd like to get some confirmation from Adobe that this is the correct file to push, though (it seems like it as it only contains this):
    AutoUpdateDisable=0
    SilentAutoUpdateEnable=1

  • Need help in connecting to JNDI with JSP

    Hi all
    I am working on LDAP with JNDI, i need to use JSP for front end screens.
    My problem is like this..
    I am not finding a way to pass a user name and password from my jsp file, through JNDI and check for authentication in an LDAP server.
    I am using iPlanet Directory Server as my LDAP server, i have added some users using a JNDI class, and a default password is set for them.
    All I need to do is to authenticate the user for LDAP and return a boolean value to the jsp page and then proceed for further operations.
    I would be thankful if anyone could help me solve this problem, urgent...........
    Thanks
    Swaraj

    Hi
    One way to do this would be:
    1. Write a sample program which will read the username & password as command line parameters. This will authenticate this data against the LDAP server that you have setup. Once you have this working proceed to step2.
    2. Write a Java Bean with two attributes that will hold the username and password. Add a method authenticate user which will contain the code you have written in step 1.
    3. Create a JSP with username & password fields. Let the form post to the same JSP or a different JSP/Servlet.
    4. In the JSP use the <jsp:useBean> tag to create a bean coded in Step 2. The scope bean should be "request". Set the username and password fields using the <jsp:setProperty> tag. Once you have this , just use the beanId from the <jsp:useBean> tag to call the validation method.
    Keep me posted on your progress.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc.
    http://www.sun.com/developers/support

  • Need help on enhancement of 0CO_OM_OPA_1 with Material and Plant

    Hi,
    I have a requirement that need to build a BW report which shows Actual costs and Planned Costs of Service Orders. We are getting Actual costs from 0CO_OM_OPA_6 and now i am getting planned costs from 0CO_OM_OPA_1. For actual costs we are getting Service Orders, Material and plant from Satandard DS 0CO_OM_OPA_6. Where as For Planned Costs standard data source 0CO_OM_OPA_1 is not having Material and Plant information. For this we decided to enhance 0CO_OM_OPA_1 with Material and Plant.
    But we are not sure the source tables for material and plant and the logic to extract these data from the tables. Can anybody please help me out.
    Thanks for your supprt in advance.

    It's possible you may need to use a CO-PA (profitability analysis) datasource instead of 0CO_OM_OPA_6.  0CO_OM_OPA_6 extracts data from CO tables. 
    Based on the path you provided "...Profit. segment...", the requested data might exist with CO-PA.
    If you determine the required data resides in CO-PA, you'll have to create a datasource based on the operating concern.  You can perform a search within the online docs for steps to create this datasource.
    Hope this helps.
    Rod

Maybe you are looking for

  • Getting Error While coping a page from one appication to another appication

    Hi Team, I am using 3.1 version of APEX. i am trying to copy a page from one appication another appication but getting below error. All the List of vlaues are same in both appications. Copy Lists of Values report error: ORA-06502: PL/SQL: numeric or

  • Copying and pasting attributes and styles of text track

    Simple question, I have two text tracks and would like to copy and pasts the attributes and style tabs in "inspector" to another text track. How could I do this without having to manually set each individual track as I create it. Thanks,

  • "filewatcher labview"

    Hallo Hat jemand von Euch bereits einen filewatcher (ein Programm das nachsieht ob ein anderes Programm Daten in ein file schreibt, und mir dann den zugriff auf diese Daten ermöglicht.) Ich benötige ein sollches Programm dringend Version 7.1 bis 8.2

  • No mails received when trying to reset password

    I don't receive emails when trying to reset my sync password. I have gmail account and have also checked spam folder. I have done this several times without success. How can I regain access to my bookmarks and passwords?

  • To index data in external hard drives

    I'm using Time Capsule 500GB and Seagate external hard. My iMac and these two hard drives are connected wirelessly. I want to index data in those drives by using Spotlight but I can only index information in my iMac's internal hard. What should I do