Logging data with LabView and FP-DI-330

Hi,
I have a problem.
I am monitoring 6 ports of the FP-DI-330, via LabView.
I have it runing in a while loop that desides the update frequency. It then get stored in a txt file with the time in Hours, Minutes and Seconds. I need the time in milli seconds to skill betwen the diferent input times. Because the different input´s can come in the same second.
i have added the vi file
Enyone have an sugestion?
Attachments:
FP_DI_330.vi ‏75 KB

First of all...
i will throw away the boolean display. But the Spreadsheet is the formation of the logfile is it not?
I will need that to get the data nicely organized.
I dont know how to get milli seconds displayed enywhere. If i use for example the tick count (MS) it starts with a number around 3287101, should it not start with 1 and then count up?
"Further in your vi, you forgot to connect the current time to the Get Date/Time string. Can't you use the millisecond values for building the time-values?"
How can i connect the current time to the Get Date/Time String? And how should i use the ms timer values for building time-values.
file-info of the log-file? What?
Thanks for the ideas but i could really use some help.
I would think th
at it could not be that dificult making a simple ms count to add to the time for every line of the logfile. But i cant get it to work.

Similar Messages

  • Questions on Saving and mining data with Labview and DIAdem

    Hi,
    I am sampling two signals at 200k sampling rate. I am trying to save the data on harddisk and analyzing the data using DIAdem.
    If I save the data using mesurement file format .tdm and .lvm, the file size will be about 4 Gigabytes for only 10 mins' acquisition. It is very slow to process it.
    I used the software Clampex and pCLAMP(Axon Instruments) before. At the same 200k sampling rate and also acquiring two signals, these programs save the data as .atf format and the size is only 400 MB for 10 mins' acquisition.
    I wonder if there is also a good way to handle this situation using Labview and DIAdem, and how to do it?

    Hi, Jonathan:
    I tried the TDM binary file format. The file size is 800 MB per min acquisition and it will take a long time to just open these files. For my application, I have to take data for several hours. I am looking for a way to reduce the size of files.
    Is there any other type of file format that can reduce the size significantly and can be handled easily?

  • How to switch central frequency fastly with labview and USRP?

    Hello everybody,
             Recently I was making a frequency hopping receiver with labview and USRP N210 and SBX. The transmitter works on the 2.4G band, and it changes from one central frequency to another every 65536us. As I think, if I start receiving at the correct time, and  change the central frequency of the USRP every 65536us, I should be able to receive the data.
        But I find that, when usrp switch form one central frequency to a different one, it spends nearly 48ms and when it switch from one frequency to the same one, it only spends 3ms(I test the performance by modifying the niUSRP EX Rx Continuous Async Reconfig on the Fly.vi example). So if I want to follow the hopping sequency, I may can only receive 17ms data because I have to save time for switching central frequency. 
         My problem is that: why usrp changes central frequency so slow,  how can I make the process faster? If I want to follow the hopping sequency, can anybody give me some good advice? Thanks

    There is an attribute "LO Frequency" that you can use to lock down the frequency of the local oscillator.  Then, when you set the "Carrier Frequency" attribute, the difference between the carrier frequency value and the LO frequency value will be realized by frequency shift in the DSP in the FPGA.  Changing this "digital" frequency shift value is much faster, since you don't have to re-tune the local oscillator.
    Let's say you're sweeping from 2.44 GHz to 2.46 GHz.  Set the "LO Frequency" to 2.45 GHz then Commit.  Then, in your loop, program the "Carrier Frequency" attribute from 2.44 GHz to 2.46 GHz.  In the loop, it will only program the digital frequency shift, which will happen much faster.
    Another tip is to use the property node to program only the attributes you want to change, rather than the niUSRP Configure Signal.vi (which sets many at once).
    For more details, see the "Configuration:Advanced:LO Frequency Property" in the NI-USRP Help, and look at this example:
    <LabVIEW dir>\examples\instr\niUSRP\niUSRP EX Fine-Tune LO Frequency.vi

  • Record audio with labview and audio dataplugin

    The thing I would like to do, is write waveforms to WAV/wma/mp3 files.
    The way to do this, is probably with the help of the audio data plugin.
    However, it is far from clear how to configure and use this plugin with LabView. There is documentation available for DIAdem, but what good is that to me, as a simple LabView user?
    There is also an example for reading dataPlugin data with LabView, but this example is:
    A) not working, e.g. it cannot open a simple WAV file, when using "uspAudio" as DataPlugin Name
    B) not documented
    C) not handeling errors
    D) only reading, not writing, which is slightly more complicated.
    So, tips for writing waveform to audio files and/or
    tips for working with dataPlugins in LabView would be welcome...

    Ok, so, now I can read a WAV/WMA/mp3 file, see attached VI
    There's still one problem: writing data to a WAV/WMA/mp3 file. In my "DataPlugin Write Audio File.vi" I try to read from / listen to a microphone connected to a AD card. On the Waveform graph, I see my signal correctly, but in the WAV file, there is only a flat line (zero's).
    Perhaps it is needed to add properties to the group, but I don't know which properties to add...
    All advice is appreciated...
    Message Edited by bram@tno on 08-08-2007 07:00 AM
    Attachments:
    DataPlugin Load Audio File.vi ‏46 KB
    DataPlugin Write Audio File.vi ‏229 KB

  • What Are The Minimum Permissions In Order An User To Be Able To Access User Profile Data With JavaScript And REST API

    The question says it all:
    What Are The Minimum Permissions In Order An User To Be Able To Access User Profile Data With JavaScript And REST API.?
    In the User Profile -> Permissions there is only the option for "Full Control".

    Hi Nikolay,
    Thanks for posting your issue, you need to set permissions on User Profiles = Read. Kindly find the below mentioned URLs to get the code and more details on this.
    http://www.vrdmn.com/2013/02/sharepoint-2013-working-with-user.html
    http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html
    http://sharepoint.stackexchange.com/questions/61714/sharepoint-2013-call-the-rest-api-from-sharepoint-hosted-app
    http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/04/09/how-to-query-sharepoint-2013-using-rest-and-javascript.aspx
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • How can i work simultaniously with labVIEW and Excel ?

    Hello . I study engineering and need some help with labVIEW, and the connection to microsoft excel.

    Hi
    NI offers an "Report generation toolkit". You get some VI's with this toolkit and so you can directly create your reports from LV.
    Another possibility is the communication through ActiveX. There is a nice link with application notes and LV examples for that:
    http://zone.ni.com/devzone/devzone.nsf/webcategories/C3E56C69D399361E86256AB7006A9149?opendocument&node=DZ53003_US
    Regards,
    Luca

  • Anyone got experience with LabView and JTAG ?

    Anyone got experience with LabView and JTAG ?
    Especially in system programming of Altera and FLASH

    Yes, I've actually driven JTAG using DIO, but this was a project in itself.
    I guess you're just wanting to get the job done! I'm currently evaluating
    gear to do the same job myself, in addition to interconnect testing. I've
    been looking at JTAG Technologies equipment. They do PCI/PXI cards and the
    SW, with a LabVIEW interface.
    They're at:
    www.jtag.com
    You'll need to be sitting down when you get their quote though - their development
    system costs about the same as a decent car!
    Cheers
    -Sean.
    [email protected] wrote:
    >Anyone got experience with LabView and JTAG ? >Especially in system programming
    of Altera and FLASH

  • Controling heating/cooling element with labview and usb 6008 DAQ card

    Greetings All
    I'm looking for a heating/cooling type of element that I can control with labview and my usb-6008 card. Heating/Cooling will just be for clean water and the temperture range will be from 0 C to 100 degree C.
    Thanks
    The heating and cooling elements can be seperate products. Any recommendations

    A simple kettle element will of course be sufficient for upto 100°C
    To get the temperature down you need a cooling system, what springs readily to mind of course is a refrigerator.
    Just a note of warning, water and electricity are dangerous bed fellows.
    On that note perhaps one of those vortex air units would be safer - they blow hot in one direction and cold in the other, nominally to 100°C
    see: -
    http://www.airtxinternational.com/how_vortex_tubes_work.php

  • How do I control a data log session with period and sample time?

    I need a data logging system where the operator can select 2 logging parameters: Log Period and Sample Time. I also need a START and STOP button to control the logging session. For example, set the log period for 1 hour and the sampling time for 1 second. (I may be using the wrong jargon here.) In this case when the START button is clicked, the system starts logging for 1 second. An hour later, it logs data for another second, and so on until the operator clicks the STOP button. (I will also include a time limit so the logging session will automatically stop after a certain amount of time has elapsed.)
    It’s important that when the STOP button is clicked, that the system promptly stops logging. I cannot have the operator wait for up to an hour.
    Note that a logging session could last for several days. The application here involves a ship towing a barge at sea where they want to monitor and data log tow line tension. While the system is logging, I need the graph X-axis (autoscaled) to show the date and time. (I’m having trouble getting the graph to show the correct date and time.) For this application, I also need the system to promptly start data logging at a continuous high rate during alarm conditions.
    Of course I need to archive the data and retrieve it later for analysis. I think this part I can handle.
    Please make a recommendation for program control and provide sample code if you can. It’s the program control concepts that I think I mostly need help here. I also wish to use the Strip Chart Update Mode so the operator can easily view the entire logging session.
    DAQ Hardware: Not Selected Yet
    LabVIEW Version: 6.1 (Feel free to recommend a v7 solution because I need to soon get it anyway.)
    Operating System: Win 2000
    In summary:
    How do I control a graphing (data log) session for both period and sample time?
    How do I stop the session without having to wait for the period to end?
    How do I automatically interrupt and control a session during alarm conditions?
    Does it make a difference if there is more than one graph (or chart) involved where there are variable sample rates?
    Thanks,
    Dave

    Hello Dave,
    Sounds like you have quite the system to set up here. It doesn�t look like you are doing anything terribly complicated. You should be able to modify different examples for the different parts of your application. Examples are always the best place to start.
    For analog input, the �Cont Acq&Chart (buffered).vi� example is a great place to start. You can set the scan rate (scans/second) and how many different input channels you want to acquire. This example has its own stop button; it should be a simple matter to add a manual start button. To manually set how long the application runs, you could add a 100 ms delay to each iteration of the while loop (recommended anyway to allow processor to multi-task) and add a control that sets the number
    of iterations of the while loop.
    For logging data, a great example is the �Cont Acq to File (binary).vi� example.
    For different sample rate for different input lines, you could use two parallel loops both running the first example mentioned above. The data would not be able to be displayed on the same graph, however.
    If you have more specific questions about any of the different parts of your application, let me know and I�ll b happy to look further into it.
    Have a nice day!
    Robert M
    Applications Engineer
    National Instruments
    Robert Mortensen
    Software Engineer
    National Instruments

  • Problems with Labview and Windows XP with error -214721786​5

    Hello. Im a new beginner in Labview and am having a problem with a error message
    I dont understand. Im running Labview on a pc-logger with windows XP.
    The program is written by a guy on my university, and logs voltage from
    a solar cell panel. He doesnt have the time to check in to it, so Im supposed to
    find out what's wrong.
    The error message is as follows :
    Error -2147217865 occured at Cmd Execute.vi->DB Tools Insert
    Data.vi->Solcelle.vi
    Possible reasons :
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers,
    [MySQL][ODBC 3.51 Driver][mysqld-3.23.38-log]Can't open file :
    'solcelledata.MYD'. (errno: 145). in Rec Create - Command.vi-
    >Cmd Execute.vi->DB Tools Insert Data.vi->Solcelle.vi
    I really hope someone can tell me what's wrong and specifically what to do
    with it, or possibly guide me to someone who could suggest a solution to this
    problem.
    Reguards
    chrisdee

    Hi Chrisdee,
          (.. not to discount what TimoS has suggested, however...) 
    Embedded in the error information you provided:
    ... Can't open file : 'solcelledata.MYD'.
    Sounds like the program needs this file?  Has the program been moved to a new location?
    just a wild guess!
    Cheers
    Message Edited by Dynamik on 10-06-2005 04:53 AM
    When they give imbeciles handicap-parking, I won't have so far to walk!

  • DSC 8.6.1 wrong timestamps for logged data with Intel dual core

    Problem Description :
    Our LV/DCS 8.6.1 application uses shared variables to log data to Citadel. It is running on many similar computers at many companies just fine, but on one particular Intel Dual Core computer, the data in the Citadel db has strange shifting timestamps. Changing bios to startup using single cpu fixes the problem. Could possibly set only certain NI process(es) to single-cpu instead (but which?). The old DSCEngine.exe in LV/DSC 7 had to be run single-cpu... hadn't these kind of issues been fixed by LV 8.6.1 yet?? What about LV 2009, anybody know?? Or is it a problem in the OS or hardware, below the NI line??
    This seems similar to an old issue with time synch server problems for AMD processors (Knowledge Base Document ID 4BFBEIQA):
    http://digital.ni.com/public.nsf/allkb/1EFFBED34FFE66C2862573D30073C329 
    Computer info:
    - Dell desktop
    - Win XP Pro sp3
    - 2 G RAM
    - 1.58 GHz Core 2 Duo
    - LV/DSC 8.6.1 (Pro dev)
    - DAQmx, standard instrument control device drivers, serial i/o
    (Nothing else installed; OS and LV/DSC were re-installed to try to fix the problem, no luck)
    Details: 
    A test logged data at 1 Hz, with these results: for 10-30 seconds or so, the timestamps were correct. Then, the timestamps were compressed/shifted, with multiple points each second. At perfectly regular 1-minute intervals, the timestamps would be correct again. This pattern repeats, and when the data is graphed, it looks like regular 1-sec interval points, then more dense points, then no points until the next minute (not ON the minute, e.g.12:35:00, but after a minute, e.g.12:35:24, 12:36:24, 12:37:24...). Occasionally (but rarely), restarting the PC would produce accurate timestamps for several minutes running, but then the pattern would reappear in the middle of logging, no changes made. 
    Test info: 
    - shared variable configured with logging enabled
    - data changing by much more than the deadband
    - new value written by Datasocket Write at a steady 1 Hz
    - historic data retrieved by Read Traces
    - Distributed System Manager shows correct and changing values continuously as they are written

    Meg K. B. , 
    It sounds like you are experiencing Time Stamp Counter (TSC) Drift as mentioned in the KB's for the AMD Multi-Core processors. However, according to this wikipedia article on TSC's, the Intel Core 2 Duo's "time-stamp counter increments at a constant rate.......Constant TSC behavior ensures that the duration of each clock tick is
    uniform and supports the use of the TSC as a wall clock timer even if
    the processor core changes frequency." This seems to suggest that it would be not be the case that you are seeing the issue mentioned in the KBs.
    Can you provide the exact modle of the Core 2 Duo processor that you are using?
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • Interfacing dolphin 6500 with Labview and windows 7

    Hi,
    someone has created and installed a application of labview in device dolphin 6500.
    I need to develop a aplication for capture data in honywell dolphin 6500  with labview but I have trouble to connect the device with my windows 7 for send the app.
    Any thoughts or assistance would be greatly appreciated.

    Hi,
    http://www.ni.com/white-paper/4577/en/
    Please refer this link. Also please send screenshots of any error messages if you get.

  • How to compile COM 1 data with LabVIEW?

      I have a device connected to my COM 1 port. How do I input data with that into labVIEW? The program that comes with it is really elementary, it only shows me the data that the comes straight from the device, no analysis.  Its like labVIEW and MAX dont recognize the device, but my device manager says its connected and works fine. How do i input that data and compile it with labVIEW?

    Much better
    MAX will not detect instruments connected to a com port. The reason is that there is no standard for serial instruments (unlike GPIB). You should only have your com port listed in MAX. If the instrument is listed in your device manager, then it sounds like the driver you got with the instrument is a little weird. It may be that the driver software has taken control over one of your serial ports. Normally, all you would have to do is use the serial functions on the Instrument I/O palette. However, if the instrument driver has taken control of the com port, you won't be able to do this because the OS will only allow one process access to the port at any one time. You can test this by trying to open a Hyperterminal session to the com port. If you can an error indicating that the port is in use, then that's the driver running in the background. You can uninstall the driver and everything should be okay. You could also try to use the driver as provided. I'm assuming it's a DLL. You could call the functions in the DLL with the LabVIEW Call Library Node function. You will need documentation from the vendor on the DLL in order for this to be done. It's probably simpler, though, just to use the LabVIEW serial functions. You would still need the command set/syntac from the instrument manufacturer in order to communicate with it.

  • Troubles with LabVIEW and the SR830 Lock-in Amp.

    i'm quite new to LabVIEW and am trying to use the sr830 instrument drivers
    to control the Lock-in from a computer, but the instrument drivers don't
    seem to want to send or recieve any data. if anyone who is more proficient
    in VI programming couild help me out with this, i would greatly appreciate
    a response. thanks.

    Lackey wrote:
    > i'm quite new to LabVIEW and am trying to use the sr830 instrument drivers
    > to control the Lock-in from a computer, but the instrument drivers don't
    > seem to want to send or recieve any data. if anyone who is more proficient
    > in VI programming couild help me out with this, i would greatly appreciate
    > a response. thanks.
    Are you using the instrument driver downloaded from Nat Inst ??
    If you are this thing looks terrible, but should work.
    You could try building a simple VI to see if all the communication is working
    properly.
    Check to make sure you have the correct GPIB address and that all the cables
    cards etc are properly connected and working.
    Kevin KEnt
    Attachments:
    Kevin.Kent.vcf ‏1 KB

  • Read Calibratio​n Due Date with Labview

    Greetings Everyone,
         I figured out a way to read the configuration of my PXI-1044.  I would like to read the External Calibration section of the Calibration Tab in MAX for my PXI-5114 and PXI-4065 (Last Calibrated and Recommended Next Calibration Dates) by using Labview to read it.  The preferred format I am looking for is similar to the configuration of my PXI-1044 that extracts data in a Tab delimited format.  Thank you in advance for any information that this forum can shed on this subject.
    Regards,
    Scott
    Solved!
    Go to Solution.

    Hi Dennis,
         Thanks once again for your reply.
         I searched all examples that are loaded into the computer and the search came up empty for the file you mention.  I even searched for the file on Google and stil came up empty.  Is this file something that came with Labview 2011 or Labview 2012?  If so I don't have access to that since all computers are running Labview 2010. 
         I appreciate your efforts in helping me out.  I'm still a little confused as to what System Session Refnum is to be expected on the input of Measurement I/O>System Configuration>Hardware>Property Nodes (Hardware).  Looking at the slew of stuff that the property node offers and tying a couple to Text Indicatorsto them it looks like the stuff I'm after.  The only thing I would need is to connect the PXI-4065 and/or PXI-5114 to this node in order to extract the data that I need.  Property nodes are very new to me and I'm sure they can be very useful.  This information is going to be used for a Test Rack Self Test program that I'm developing above and beyond the embedded self test protocol that NI has in its software.  I look forward to your response or anyone elses that will push me forward in my education of this software package.  Thank you in advance.
    Regards,
    Scott 

Maybe you are looking for

  • Problem in connecting to database from webdynpro for java

    Hi I have a problem in connecting to database from webdynpro application I am using oracle 10 express edition as database and was able to connect to database from a java application.But  was unable to connect from a webdynpro for java. <b>I guess web

  • Need a help on stored procedure

    I have the sample data like the below. Employee Id Key Value 1 Name Joe 1 Age 28 1 Addr Houston 1 Sex M      2 Addr Chicago      I need to get a result somethin like the below using a stored procedure. ID Name Age Addr Sex 1 Jose 28 Houston M 2     n

  • Tag Query Error

    Hi, I am executing a tag query and I keep getting the following error - OperationList [ERROR] - Error Message: Pending requests found, current request will be retried at a later date OperationList [ERROR] - Error updating com.sap.xmii.applet.common.R

  • Error INstalling Oracle 11g on Windows8 64 bit

    Hi Geeks, I have windows 8 64 bit sony Via system. I want to install oracle 11g on it. I have downloaded the setup in my E:\Oracle 11g setup. Now I get two folder post unzipping the two archivwe files E:\Oracle 11g setup\win64_11gR2_database_1of2\ E:

  • Can't publish or "put" files to remote server

    Dear All, I can't publish my website to the remote server, even though everything seems to be working properly with connection to the remote server.  No error messages and the successful connection message appears.  I have emptied out the Safari cach