GPIB Synchonization with DAQ

Currently I'm in the position of implementing a software-timed solution so that my data acquistion hardware (analog inputs) can be synchronized to an average reponse time for a GPIB query to an instrument. Yes, this sounds like fun! I was wondering, I seem to remember the GPIB analyser software (CVI app) had timing information for the various line state transitions. In general, is there any way to get hardware timing information from a NI GPIB controller?? The reason for this approach is that the DAQ AI samples may be corelated to the instrument data - we don't know at present!

Hello-
The GPIB analyzer software does have a triggering menu available. However, there is currently no API for the analyzer available. However, it might be possible to tap the EOI line with a second GPIB cable. Then, a DAQ card can monitor the progress of the GPIB communication. There may be some easier software solutions as well. Try using Datasocket if it is necessary to have interprocess or intermachine communication. There are plenty of Datasocket examples in CVI and LabVIEW.
Randy Solomonson
Application Engineer
National Instruments

Similar Messages

  • I have problem with daq..when it is connected with laptop it asks for all the options like sampling rate etc..It displays building VI and it stops..it is not processing further..cau u plz help to solve this problem

    i hav problem with daq initialisation...plz help to solve the above mentioned issue

    Hi muthu,
    we also have a problem: to less information…
    - What is connected to your laptop?
    - What is "it" in "it displays building VI"? Do you use the DAQ Assistent ExpressVI?
    - What means "plz"?
    And could you please put less text in the title of your message and more text (with relevant information) into the message body?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Position for Programmer experience with DAQ and C++/Labview

    We are company located in the Bay Area of California and looking for
    a programmer experienced with programming (from scratch) DAQ boards for
    signal generation (sine/triangle/sawtooth) waveforms as well as DAQ
    digitizers, FFT, and data displaying.
    You should be
    able to program these cards using C++, but should have strong knowledge
    of labview as well. You may be asked to translate and migrate labview
    VI's to the C++ enviroment.
    Job applicants from
    the Bay Area, as well as abroad are welcome to apply.Those outside of
    the Bay Area can develop code at your own home office and must have
    C++/labview on a suitable computer for programming.
    Applicants should apply by sending an email to: jobs at intereasemedical dot com and indicate IE002 as the job position code.
    Do not post your resume as a reply to this forum post.
    Do include your resume in PDF or DOC format
    Do
    include your billing rate and if you are authorized to work in the U.S
    if located in the Bay Area. We do not provide H1B sponsorship. 
    Responses without the above information will not be considered.  
    Thank you! 

    Hello, I have much experience with DAQ, C++ and Labview. How to apply for this position?

  • Need help with daq problem

    Hi,
    I need to generate a clock with a period of 20 micro seconds, duty cycle of
    approx 20% and a data line as well as an address line all linked to the clock
    pulse.
    I have tried many different solutions, all using the Daq PCI-1200 but nothing
    seems to work correctly. Usually the system bombs and I have to do a manual
    reset to over come the problem.
    Any suggestions?
    Ken

    Hallo, Ken,
    Du meintest am 20.02.00 zum Thema Need help with daq problem:
    > I need to generate a clock with a period of 20 micro seconds, duty
    > cycle of approx 20% and a data line as well as an address line all
    > linked to the clock pulse.
    You'll need an external clock, expecially under Windows.
    Windows ticks with appr. 18 Hz, and the CPU tick isn't always available
    when Windows tasks multi.
    Viele Gruesse!
    Helmut

  • Pulse width modulation with daq mx

    Im trying to change the pulse width modulation on the fly with daq mx. All I have found so far are examples useing traditional DAQ, but not DaqMX. It would be a lot easier if I were to use DaqMX since I will be useing other daq applications in my program and would rather use mx.

    Does this help?
    Attachments:
    PWM-Counter_Output_Folder.zip ‏63 KB

  • GPIB Labview NI-DAQ, Micro 1401 and Windows 7

    Does anyone know if:
    a) GPIB, Labview/NI-DAQ is essential for running a Micro1401 unit?
    b) If it is, will it work in Windows 7 please?
    Thanks loads!!!!!
    Jo

    If you mean this then I cannot see any easy way of making it run in LabVIEW... unless you have an older version of the Micro1401 that has a GPIB interface?
    Mark B
    ===If this fixes your problem, mark as solution!===

  • Why do error comes when trying to use NI ISA GPIb and NI DAQ card (both PnP)together while they work well when one at a time?

    we configured gpib pnp and at-mio-64e3 cards (isa) in the same pc.gpib function was invoked to take the device to remote and listen mode.now when daq function getDeviceInfo is called the remote mode of the device is removed and after this it always shows no gpib board until pc is rebooted

    Hi,
    I have some questions:
    What OS are you using?
    What driver versions?. You can find the driver versions in the Windows Add/Remove programs utility. DAQ driver is NI-DAQ anmd GPIB driver is NI-488.2.
    Is there any error code?
    I haven't found any known issues between these two drivers. How are the board's resources configured? Base address, IRQ, DMA.
    Let see if with this information we can clear out what is going on.
    DiegoF.

  • At-GPIB and NI-DAQ 7

    at-GPIB was working and correctly configured with labview under windows 98, then insalled NI-DAQ 7 and no longer working (I think it is a DMA problem). What could have changed? Repasted gpib16.dll and gpib32.dll but did not help.

    Hello Seth,
    Thank you for contacting National Instruments.
    What exactly do you mean when you say that your GPIB card is not working? Is it still showing up in Measurement and Automation Explorer (MAX)? Is it showing up in your Device Manager? If you can see it in MAX, what happens when you try to open a VISA Session? Can you communicate or does it time out?
    Please respond with more info and I will be glad to help you out.

  • GPIB issue with solartron 1260 and 1287

    Our old computer of Solartron 1260 and 1287 was down recently, I managed to transfer the GPIB card to a computer with Windows 2000 system, and installed NI-488.2 v2.7.3 driver. It seems the computer recognised the GPIB. However, when I tried to run the CorrWare, the computer automatically restarted without any warning. I wonder what's the solution for this problem? Any hint for additional installation I might missed? 

    More weird thing is I tried Communicator to send query by clicking the 'query' button of the device 0, for just once the string received was ‘Schlumberger balabala’
    Easter Egg!   What do you say when you are asked silly question?  That device seems to say Schlumberger balabala.  and hangs onto the bus.
    Follow Dennis' excellant advice and read the manual
    Oh, each instrument probably has two addresses; one to talk, one to listen.  That wasn't common even for the really old instruments but the IEEE 488 standard supports it.  (No one does that anymore because, we learned better in the last 50 years)
    {Edit} Yup http://www.solartronanalytical.com/Support-Center/​FAQ/FAQ-General/How-can-I-troubleshoot-GPIB-proble​...
    Solartron products only support even numbered addresses..This was a common way of preventing the talker address from being "Automatically" assigned to 32..
    MAX will not find Solartron devices...
    You probably do not have a problem here.  Things work as advertized.
    I love the "If this does not help then consult the National Instruments Troubleshooting DAQ and GPIB Installation Problems web page. " (No hyperlink provided)  statement
    Jeff

  • USB 6009 DAQ to use in Simulink at External mode with DAQ toolbox

    hi
    Currently I am using usb 6009 daq board for data acquisition in using simulink. I have created a model with taking analog input from data acquisition toolbox. Then when i want to run in external mode and try to connet to target, the following error is coming up:
    Could not execute target data map file 'untitled_rtwin_win32\untitled_targ_data_map' or it does not exist. Stop the target, delete the untitled executable, rebuild the code,and try again. Note that execution of external mode requires the build directory to be present...
    How can I solve this problem? For your info, I am using 32-bit matlab, version: 2012a
    For your info, a snapshot of the error is attached,
    Any help would be appreciated Thanks
    Attachments:
    Untitled.jpg ‏130 KB

    Hi Mahmudur,
    what does MathWorks say about this error message?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Problem with DAQ in while loop and Graphs

    Hello,
    I'm new here so I apologize if I posted this on the wrong board  
    This is my "situation":
    I need to make a simple PID controller which takes information (process variable) from an outside source (a NI's DAC connected through the USB port ) which is accomplished using NI-DAQ as an input, and the PID's output goes to the second NI-DAQ which is also connected using DAC to an actuator which in my case regulates the air pressure. (VI attached)
    My problem is the following.
    Both of the NI-DAQ I placed using DAQ Assist, require to be in a while loop.
    -If I place them in separate loops, I have the problem of passing information between the Input NI-DAQ and the PID, and also between the PID and the Output NI-DAQ.
    -If I place them both in one big loop, an error occurs saying that the selected buffer size is too small (Error -200609).
    The timing settings for the DAQ's N samples, 100 samples to read at the rate of 1k (I also tried with Continuous samples and many different combinations of Samples to Read an Rate but without success).
    Should I wire them with the same dt(s)?
    The other thing I need to do (I'm also writing it here in order not to open new topics) is show the following 3 signals on a Graph (process variable (dynamic data type)(range 4mA - 20mA), PID output (double)(range 4mA - 20mA), and the Set Point (double)(range 0 to inf))
    Firstly, is it possible to show the first two on a scale from 0 to 100 without changing the PID's output which needs to be 4-20?
    Secondly, which graph should I use if I have different data types? (I tried the Waveform Chart, and succeeded in showing the first two; the third just messes everything up)
    I would also have to make a legend explaining which signal is which (I see that this is possible with the Mixed Signal Graph).
    I know this is probably too much to ask, but I'd be grateful for any help
    Thank you in advance
    Attachments:
    PID while.vi ‏100 KB

    My problem is the following. Both of the NI-DAQ I placed using DAQ Assist, require to be in a while loop.
    -If
    I place them in separate loops, I have the problem of passing
    information between the Input NI-DAQ and the PID, and also between the
    PID and the Output NI-DAQ.
    This is the best option---Use QUEUE or Functional global or something else to tranfer the data to and fro
    How  do I make that QUEUE or Functional global?
    -If I place them both in one big loop, an error occurs saying that the selected buffer size is too small (Error -200609).
    Have
    you tried increasing the buffer? Is the acquisition happening
    parallelly (means to say the first DAQ not wired (error terminal) to
    second DAQ)
    Well the buffer is, at least how I understood it, the option Number of Samples when in Continuous Samples mode. Concerning the parallel acquisition, do you mean I should wire the error ports of both of the DAQs?

  • How do I set a PFI to High on a 6602 Board with DAQ Traditional

    Dear All,
    I am using LabVIEW 8.5 on 32-bit Windows XP with an NI 6602 DAQ board. In the past I've used DAQmx but for compatability with older software I need to do a few simple things using Traditional DAQ, which I have never used. Specifically I would like to make a simple VI that sets PFI 5 to high when the user presses a button and then low when they press the button a second time. How do I set PFI 5 for output and then write true to it?
    Thanks,
    Ed
    Solved!
    Go to Solution.

    Dear All,
    Apparently its as simple as using the Write to Digital Line VI. However, the non obvious thing is the port width of the 6602 board is 32 not the default 8. Buried in the LabVIEW help files is a list of physical port widths that one must stumble upon. Like the bat cave. In the attached image of the super simple VI I've made the 16 refers to PFI 16. Good to know.
    Best,
    Ed
    Attachments:
    write_low.JPG ‏5 KB

  • How to load a custom waveform for use with DAQ voltage generation

    I would appreciate some advice on how to take a custom waveform (just a modified triangle wave with pauses at the tops and bottoms) and use that to control the voltage output from a DAQ. 
    Some background:  My intent is to use the waveform to control mirror scanning for a LADAR imaging application .  Because our DAQ (NI-6251) only has one clock, it cannot update the X and Y channel voltages independently. I'm using a triangle wave to control both axes, which works fine for the X direction.  However, to prevent the Y axis from incrementally steping up after every X pixel, I'd like to construct a waveform, similar to a step pyramid, so that the Y axis remains constant over the X sweep and only updates to the next row after all X pixels are collected.
    I assume I can make the desired plot in excel, and then read it in somehow - but this is where I start to get fuzzy.  Can any one point me to an example or tutorial on this?
    Some other questions:
    1. Do I needto worry about scaling? will my custom plot need to contain a specific number of points (perhaps the exact number of pixels in the image)?
    2. If I change the image dimensions, will I need to revise the control waveform in the Y axis?
    Thanks in advance,
    jimmy

    This thread didn't appear to go anywhere.  I am trying to do something similar and was looking for help.  I want to create a repeating output voltage wave based off the excel file attached(with times).  Is there a way to have my program match the output voltage and time with the table attached on a repeat and send that signal to the output?
    Thanks,
    T
    Attachments:
    Sig Gen.xlsx ‏34 KB

  • LV 8.21: strange behavior with DAQ tasks, parallel running VI's and shift registers

    Hello,
    I have made a VI using DAQmx vi's. The VI uses shift registers to store DAQ tasks and other (internal) information. I have implemented  several modes of operation (enum control with a case structure) like 'init', 'read AD', 'config AD' etc. If I use this multi mode VI in a single main VI everything work as expected. I have attached a jpg that shows one example where the DAQ VI is called from 2 parallel running while loops. One loop aquires the data (LOOP 1) while the other loop configures the aquisition task (LOOP 2). If I implement the same thing by putting LOOP2 in a different VI that runs seperately from the first VI I get an error message (200428):
    Possible reason(s):
    Measurements: Value passed to the Task/Channels In control is invalid.
    The value must refer to a valid task or valid virtual channels.
    Task Name: EasyDAQ_AD
    Of course, the second VI is started manually after the 1. VI has passed the initialization part. The error message is triggered from the 1. VI that executes the DAQ task. From my understanding of the LV execution system this seems like a bug to me. Does anyone have an idea what could go wrong here?
    klaus
    Attachments:
    problem.jpg ‏30 KB

    1. In general, this kind of technique is something I've been using successfully for years.  (Ben recently wrote up a very nice treatment of these "Action Engines" as a "Community Nugget.")  So I don't start by expecting this to be a bug in the LV execution system.
    2. Your description of the problem sounds almost backwards.  You say you manually start the 2nd vi ("Config AD") *after* running the 1st vi ("Read AD").  Seems like you'd need to do the Config 1st and then do the Read, right?   I kinda suspect you actually did it in the right order, but described it wrong.
    3. The next likely scenario is that the Config failed, but you didn't trap the error and were unaware of it.  Then it makes sense that the Read would also fail.
    4. A couple issues I regularly deal with in these DAQ Action Engines is internal error handling.  I often keep a shift register inside to store errors generated inside the Action Engine.  But it can get a little tricky doing sensible things with both the internal error and any other error being wired in as input.
    I said all that so I can say this: if you have complex nested case statements, or lots of different action cases to handle, double check that the task wire makes it from all the way from left shift register to right.  Sometimes they get lost if they go through a case statement, the output tunnel is set to "use default if unwired", and 1 or more of the cases don't wire the output.
    -Kevin P.

  • What is the best method to query for older GPIB equipment with ID? and newer with *IDN?

    Good day,
    I am writing a test executive where it needs to scan the bus for support of older (HP/Agilent 856x series) and newer (Agilent 440x and 444x series) spectrum analyzers. *NOTE* I originally posted this question in my NI Community blog. I apologize for redundancy but someone recommended I re-post here.
    The first frame looks for the newer analyzers with *IDN? then if that fails sets the boolean in the error cluster to TRUE. The next frame then uses the error cluster's boolean to decide whether an older HP analzer is connected instead using ID? query. Disclaimer: the second frame is a clone of the ID query of the 856x Initialize VI. I just want to use what already worked - no reinventing the same wheel?
    But, lo and behold, it doesn't work as expected. If I have the frames in this order and connect a HP8563E the GPIB time's out error. This code works with the newer 4407 or 4440 since the *IDN? query passes and the second frame is not executed.
    Now, when I move the second frame to become the first frame and run it with HP8563E the query works but will have a GPIB timeout if I have the 4407 or 4440 connected.
    Long story short, how do I support both older GPIB ID? and newer IDN? in my code?
    I have attached the query VI created with LV 2012.
    Many thanks!
    Aldrin
    Attachments:
    Query ID and IDN.vi ‏11 KB

    I think Michael Aivaliotis of JKI and NI have an elegant solution:
    https://decibel.ni.com/content/groups/large-labview-application-development/blog/2015/05/14/what-is-...
    Cheers!
    Aldrin

Maybe you are looking for

  • J2SE 5.0 Qns

    Hi i have a qns. why when i use the J2SE 1.4 the transformer factory got no error but when i upgrade to 5.0 i got the following error: Exception in thread "Thread-9" javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.

  • Forgotten itunes password

    Does anyone know how I can reset the itunes password on my son's ipod?  We have forgotten the password, and when we request an email, it doesn't show up in either of our mailboxes, junk or otherwise.  And, apparently, I used a made up birth date for

  • Can someone please tell me how to get a flash player for my Mac 10.8.5  ?

    I keep getting asked to install Adobe Flash Player for some sites, but my Mac 10.8.5 doesn't appear on the drop down menu. Is there an alternative?  Thanks.

  • Can't Drag Clips To Edit

    http://www.youtube.com/watch?v=0cfRKRJ9tRo Can anyone help me?

  • Lingo Applications and Source Code

    The freeware applications have been around for a while, and now the source code is available as well. Applications - http://www.axiomx.com/free_software.htm Source Code - http://www.axiomx.com/algorithms.htm I decided to make the code available becau