Data logging with gpib device

I have a lock-in amp controlled by labview via gpib. My goal is to use the
"advanced data logger" supplied with labview to log data from a daq card
and the output from the lock-in amp. I have the lock-in vi working correctly
and have the output on the screen. I don't know how to get the pre-packaged
"advanced data logger" to read in data from the gpib device. I can only
read in data from my daq card.
Any assistance in this matter would be appreciated.

1.  An OR function should work just fine for you.  I don't understand what you mean that the functionality changed.  If the reset button is true OR the Trip button is true, then a True gets put in the notifier and the Trip file functions are executed.
I don't understand your "Scale".  Right now you have a zero if the button is true and 100 if it is false.  You don't have anything else going on with it.  I don't understand the stay at zero part.  How would it ever get to the point where it isn't zero.
2.  For the main log file, you could detect when 43200 iterations of the loop have passed and at that time, just reset the writing to the beginning of the file.
See attached.
Attachments:
Save_Previous_10_SecondsMOD3.vi ‏27 KB

Similar Messages

  • Multi-task data logging with DAQmx

    I was wonder is it possible to use 'DAQmx Configure Logging' VI and 'DAQmx Start New File' VI for multiple tasks?  I'm doing synchronized high speed DAQ with NI PXI-6133 cards.  Each card (there are 16) must have its own task.  Although the DAQ is continuous, the user (software trigger) determines when data is saved to the disk and for how long.
    In my scenario the test length could be up to an hour with various test events scatter throughout.  The users want to display the data during the entire test length.  However they only want to write the data to disk during an event.  The event could last from 10 sec to 1 min.  That is why the users want to control when data is written to the disk.
    DAQmx Logging seems to work for a single task only, but I need to do multiple tasks.

    I've attempted to implement your suggestion, but I still do not acquire data for all channels for all tasks.  I've enclosed my VI.
    Attachments:
    TDMS Logging with Pause LoggingFSPR.vi ‏55 KB

  • Problems with GPIB devices

    When running my program to control a measurement, everything works fine.
    The program can communicate with all the GPIB devices. When I start
    the program again (without rebooting Win2K), from time to time it
    refuses to communicate with the GPIB units. Now I found out it helps
    to start MAX2.2 (Measurement & Automation Explorer) and to scan the GPIB
    bus. MAX identifies all devices without problems and my LabVIEW program
    also runs fine now...
    So why do I have to call MAX to have my LabVIEW program have a communication
    via GPIB?

    [email protected] (Gerd W.) wrote in message news:<[email protected]​com>...
    > When running my program to control a measurement, everything works fine.
    > The program can communicate with all the GPIB devices. When I start
    > the program again (without rebooting Win2K), from time to time it
    > refuses to communicate with the GPIB units. Now I found out it helps
    > to start MAX2.2 (Measurement & Automation Explorer) and to scan the GPIB
    > bus. MAX identifies all devices without problems and my LabVIEW program
    > also runs fine now...
    > So why do I have to call MAX to have my LabVIEW program have a communication
    > via GPIB?
    Do you use VISA or regular GPIB functions? If use VISA, you may have
    to close it properly when your software exit, oth
    erwise the resources
    may be locked up. And by using MAX somehow the resources is freed by
    it after it's operation.
    Irene
    www.geocities.com/irene_he

  • Pulsewidth data logging with counter channel

    Hello everyone.
    i have query with data logging of pulse duration measured with counter input into .lvm file
    pulse signal contain frequency of 100 hz with pulse duration vary from 2 to 8 ms
     i want to log pulse duration in .lvm file.
    when running vi(below screen shot) i find data logg with duplicate instance of time.
    i want to log pulse duration data with every ridging or falling edge of pulse.
    so if i run vi for 20 sec i sould have 2000 reading of pulse duration in my.lvm file with appropriate time  in time column
    Attachments:
    pulsewidth using counter.jpg ‏659 KB

    Hello Karthik,
    I can think of two ways I would approach this. One would use software timing, and the other would use hardware timing.
    1. Software timing: This might be the easiest approach. The idea is you would use your example much as it is written, then use a loop with a delay as the "Time between samples" to call your counting code over and over. In this case, I have a few suggestions for your code. First, instead of the loop, you could start the counter, use a delay in a sequence structure (use "Wait (ms)", not "Wait Until Next ms Multiple")for your "Sampling time", then read the counter and stop. After the stop you'll need another "Wait (ms)" in a sequence structure for your "Time between samples". Finally, wrap a loop around all of this to r
    epeat it. One advantage of this approach is the user can change the between time on the fly.
    2. Hardware timing: The idea behind this would be to use two counters. The first would count, the output of the second would be wired to the gate of the first to control when the first counts. The second counter would be programmed to output a pulse train where the positive portion of the pulse would be your "Sampling time" and the negative portion would be your "Time between samples". The creative part for this approach would be figuring out when to read the count. One way to do this would be to also connect the gate of the second counter to an analog input, then read the count whenever the input goes low (say, below 1 volt). This approach might be the more accurate of the two. However, you would always be getting a total count, so you would have to subract the previous count each time. Also, you would not be able to change your sampling time or between time once you start.
    Finally
    I'd suggest looking at some examples - you can usually find code to help you.
    Best Regards,
    Doug Norman

  • Establishing communication with GPIB devices

    I am a newbee to GPIB and a novice at VB (6.0). Have been unable to establish communication with devices from the VB .exe. I think I am not declaring something in the right place? Any suggestions?

    TG,
    What kind of trouble are you having reading data from the instruments? There's information that addresses some of the common issues about why communication with instruments might fail. For more information, please refer to:
    Why Can't I Communicate with My GPIB Instrument?
    A couple of useful tools that you can use to check out communication to the instrument before writing your Visual Basic app are NI-488.2 Communicator and
    Interactive Control (IBIC)
    If you are still having trouble after trying out some of the suggestions listed above, it would be helpful if you capture the ibwrt and ibrd calls using NI Spy, save the Spy capture, and then attach it to this forum. If you are unfamiliar with Spy, here's a link with information about how to use Spy:
    NI Spy
    Hope this information helps with getting data back from the instrument.

  • Continuous Data Logging with NI 9236 an cRIO 9076 with FPGA

    Hey all,
    i'm a beginner in LabVIEW/FPGA. My goal is it to
    continuous acquire and log data. I've a 9236, CH0 is
    connected to a strain gauge and the cRIO 9076.
    I've written a code and I see the incoming data on the FPGA.vi.
    On the Host.vi there is no outcoming data out of the FIFO.
    There is no error messages or an error during the compilation.
    Do I have a timing problem? Where ist the big mistake
    Thank you!
    Attachments:
    1.jpg ‏98 KB
    2.jpg ‏71 KB
    4.jpg ‏337 KB

    In your first image one problem is that you are starting the module on each iteration of the loop.  I can't tell how your FIFO is configured, but take a look at the example "Hardware Input and Output->CompactRIO->Module Specific IO->Analog Input->NI 923x Continuous DMA.pvproj.  I don't know which LabVIEW version you are using but I found this example in 2012.

  • I need timed data logging with continuous graphing

    I am graphing continuous temperature measurements, but I only want to log onto a spreadsheet measurements every hour. How do I do that?

    Hello,
    In order to log the measurements every hour, you will want to implement a "Wait (ms)" function. This function can be added to the block diagram by [right-clicking] and selecting the following:
    [All Functions] >> [Time & Dialog] >> [Wait (ms)]
    You will want to place this wait function inside your code and wire a constant to the wait function with a value of 3,600,000 (60min/hr x 60sec/min x 1000ms/s). To wire a constant to the wait function, [right-click] on the input terminal of the "wait (ms)" icon and select [Create]>>[Constant].
    I hope this helps. Please let me know if I can further assist you.
    Kind Regards,
    Joe Des Rosier
    National Instruments

  • 64 channel 1450 Hz data logging with PCI-6033E card, on-line averaging and viewing the raw and averaged signal in CWGraphs.

    I'm acquiring 64 channels at sampling rate of about 1450kHz continuously and showing the data second by second in a CWGraph. Now, I would like to add an on-line averaging for all of those 64 channels and show it in another CWGraph. The averaging should occur with respect of external trigger and the sample should consist of about 100ms prestimulus and 500ms poststimulus period. Has anybody been handling this sort of things? How it's solved with ComponentWorks and Visual Basic?
    I'm using double Pentium 700MHz processors and NI-DAQ PCI-6033E card.

    1. To get started with external triggering check out the examples in the Triggering folder that install with CW under MeasurementStudio\VB\Samples\DAQ\Triggering.
    2. Create a prestimulus buffer that always contains the latest 100 ms of data. Just modify the CWAI1_AcquiredData event to transfer ScaledData (the data acquired) to your prestimulus buffer. See how there will always be a prestimulus buffer of data regardless of trigger state?
    3. On the trigger, you can use the same CWAI1_AcquiredData event to route the data into poststimulus buffer and average the 2.
    I see something like this:
    if no trigger
    100 ms of data to prestimulus buffer
    if trigger
    500 ms of data to poststimulus buffer
    averaging and display function
    reset trigger and buffers
    good luck
    ben schulte
    application engineer
    national instruments
    www.ni.com/ask

  • Data Logging with Fluke 189 Multimeter

    I am trying to get LaBview to read a signal coming off a Fluke 189 Multimeter, and I keep encountering the error code-1073807341. I installed the driver fl18x, and LaBview will still not talk to the multimeter. I have been able to use the fluke 189 multimeter before, but on a different computer and a newer version of LabView. I was able to get the fluke to work with LaBview 7.1.0, but not with LaBview 7.0.0 express. Should I be able to use the fluke with LaBview 7.0.0 express?

    Hi,
    Yes, you should be able to use LabVIEW 7.0 with the Fluke 189.  The fl18x instrument drivers are available on the Instrument Driver Network, and there is a version for LabVIEW 7.0.  You may need to repair or reinstall the NI-VISA and NI-VISA Run-time Engine.  Make sure that you select support for LabVIEW 7.0 when installing the NI-VISA driver.  Also make sure that you installed LabVIEW 7.0 before installing LabVIEW 7.1, and that you installed the drivers after installing LabVIEW.
    Regards,
    Rima
    Rima H.
    Web Product Manager

  • How can I use iTunes with 3 devices with 3 different apple-id

    Hello.
    My problem is that we purchase 3 different devices (iPod, iPhone and iPad1) on different times and activate them with different apple-id´s - niot knowing the problems we get.
    Now I buy an iMac and want to organize the data of all 3 devices (which unfortunaly have different purchases of music, books and films)  with that new iMac.
    What can I do to get the data synchronised with all devices without loosing data? Out of this pool I than want to synchronise only selected items of music and books to the different devices.
    Apple says that it is not possible to merge that 3 accounts to one account. Also my try to share the date with home shareing doesn´t work.
    Any help out there?
    Thanks

    Log out of your Apple ID with iMessage at Settings > Messages > Send & Receive > Apple ID. Select your Apple ID and at the menu window that appears, select Sign Out. Follow this by turning iMessage off.
    Turn iMessage back on and try to re-authorize your iPhone with your Apple ID with iMessage which should register your new cell phone number.

  • How to print 2D barcode with SAPGOF device type

    I only see some pre-defined standard barcode like BC_93, BC_C128B in the SAPGOF device type.
    How can I define and print a 2D barcode like QR Code or Data Matrix with SAPGOF device type?
    Please advice me. I promise to grade you.
    Thanks

    Hi,
    Zebra printers are very good usable for printing your kind of barcode.
    You can use the barcode designer of Zebra.
    Below a example of ZPL code tp print your QR barcode (with explanation behind).
    ^XA                           "start statement
    ^FO100,100               "x,y position
    ^BQN,2,10                " set barcode
    FDMM,AAC-42FS   "data to be printed as barcode
    ^XZ                           "sluit statement
    syntax ^BQa,b,c,
    a: fiedl position
    b: model
    c: magnification
    Look in the ZPLII manual for more details
    suc6
    Gr., Frank

  • Problems with GPIB-PCMCIA card

    Hi all
    I am using a PCMCIA-GPIB with driver version 2.2 on a Windows XP with a PCI-to-PCMCIA Adapter from Ricoh (device manager says: Ricoh R/RL/RT/RC/5C475II,R5C520 or compatible cardbus controller).
    The Win XP detects the card without any problems and there are no resource conflicts.
    However, I cannot communicate with GPIB devices and the NI-488.2 Troubleshooting Wizard says:
    1. NI-488.2 Software Presence = verified
    2. GPIB Hardware Presence =
    And then a new screen: "The trouble shooting wizard has detect that no GPIB interfaces are configured on your system"
    Can someone help me? There are no resource conflicts and I have also tried changing the PCI slot. The same problem also occurred when I installed the card in
    another computer.
    Regards,
    Juan"

    Hello Juan,
    the first thing I would do is to check that the board is working OK. You will need a laptop to test it.
    Once this is confirmed (if not, contact NI for a repair), it can be safely attributed to some incompatibility with the adapter.
    At that point, I would check with Ricoh as they may have an updated driver for their board that fixes the issue, or they may have an idea on what's going on. Another thing would be to check your PCs BIOS configuration and see if any setting may help into solving the incompatibility (PCI settings, IRQs, bus-mastering, etc..)
    As side suggestions, although I don't feel this will be the issue:
    a)it's always advisable to use the latest version on the driver software -NI-488.2-, available at the web
    b)check for an updat
    e to the motherboard's BIOS at the manufacturer's site.
    Regards,
    JorgeM.

  • I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.  Will Time Capsule work with this and how?

    I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.
    1. Will Time Capsule work with this and how?
    2. Can my printer USB be plugged in and then shared between the devices?
    3. Can I create a network and how?
    4.  What happend when a visitor logs onto my existing wireless router?
    I'm new to Macs (well a returning user having started with Mac Plus!!) and not very technical.  Any help / advice will be much appreciated.
    Ray

    The key to what you seem to want to do is to be able to get Apple's Time Capsule router to "join" the network that your Conceptronic router.  I believe that works with some third-party routers, but I've never seen a list of those that work in such a configuration and I have no experience with Conceptronic equipment.
    You might be better off with a Network-Attached Storage (NAS) device instead of a Time Capsule.

  • Help In keithley 2400 VI!!(Problem with the data logging and graph plotting)

    Hi,need help badly=(.
    My program works fine when i run it,and tested it out with a simple diode.The expected start current steps up nicely to the stop current.The only problem is when it ends,i cannot get the data log and the graph,though i already have write code for it.Can someone help me see what's wrong with the code?I've attached the necessary file below,and i'm working with Labview 7.1.
    Thanks in advance!!!
    Attachments:
    24xx Swp-I Meas-V gpib.llb ‏687 KB

    Good morning,
    Without the instrument it might be hard for others to help
    troubleshoot the problem.  Was there a
    specific LabVIEW programming question you had, are you having problems with the
    instrument communication, are there errors? 
    I’d like to help, but could you provide some more specific information
    on what problems you are encountering, and maybe accompany that with a simple
    example which demonstrates the behavior? 
    In general we don’t we will be unable to open specific code and debug,
    but I’d be happy to help with specific questions. 
    I did notice, though, that in your logging VI you have at
    least one section of code which appears to not do anything.  It could be that a small section of code, or
    a wire was removed and the data is not being updated correctly (see pic below).  Is your file being opened properly?  Is the data being passed to the file
    properly?  What are some of the things
    you have examined so far?
    Sorry I could not provide the ‘fix’, but I’m confident that
    we can help.  Thanks for posting, and
    have a great day-
    Message Edited by Travis M. on 07-11-2006 08:51 AM
    Travis M
    LabVIEW R&D
    National Instruments
    Attachments:
    untitled.JPG ‏88 KB

  • Sometimes unable to talk to device with GPIB-ENET

    I am using a NI GPIB-ENET device with my own application on a VMS Alpha computer. It is issuing commands to the device correctly but if I restart quickly the application it sometimes does not work.It seems that if I wait long enough the it works ok. Are the sockets on the GPIB-ENET configured to linger ?

    Hi zemaitis,
    The GPIB-ENET device is not "configured" to linger, but it does have more lag time than, say, a PCI GPIB card. The reason is that you have an increased amount of lag time due to the time it takes to transmit data over the ethernet cable. Here is a link to a Knowledge Base article that does not address this issue directly, but does point out that the ENET device has a larger lag time than other GPIB devices:
    Knowledge Base 38M9C9FJ: Execution Difference Between GPIB-ENET and PCI-GPIB
    Because of this extra communication time, you may not be able to restart your application extremely quickly. I hope this information is useful to you. Have a g
    reat day.
    -John M

Maybe you are looking for