Sending time and voltage samples as input to matlab script block

Hello,
I am planning to use Matlab script in labview and the matlab scritp block needs inputs of time and voltage values of sampled signal to post process.
Can someone explain me of how to send the sampled values of time and volatge after every  'x' interval of time to the matlab scritp block I mean if the sampling rate is 100Hz then 100samples will be collected in 1 sec but I want to send both time and votlage values collected after every 10 seconds to the matlab scritp block.
Thanks.

Hi,
I am using DAQUnit 6016 that samples an analog signal of sensor.The vi I tried is attached below.
Attachments:
Labview&Matlab.vi ‏55 KB

Similar Messages

  • Writing time and voltage to a file

    I am using labview 7 Express with Windows XP. I have a PCI-MIO-16XE-10 DAQ card. I want my program to update 5 times a second. It is doing this with a while loop. However, I only want to write the date to a file once every 10 seconds. I want to write the time, and two voltage values to the file. Now it writes the voltages to a file every time it updates, and only the voltages,not the time. I am using the write to spreadsheet file.vi. I was unable to attach the labview file to this question, hope I can still get some help. Thanks.

    If you're using the Write to Spreadsheet File VI, then you're closing the file after each write -- then it should be easy.
    To time when the time should be written, you can either count the number of times your loop has run, divide that by 50 using the Quotient and Remainder VI (5 times a second times 10 seconds), and take the Remainder and any time it is 0, write the time...
    Or you can check the current time every loop, and when the difference from when the last time the time was written is greater than 10 seconds, write the time again...
    Anyway, get the current time string, concatenate a tab after it, and wire that to the Write Characters to File VI, using the same filename that your Write to Spreadsheet VI is using. This will put the current
    time into your spreadsheet file and add a tab, so that your spreadsheet file is still in the right format. (The "spreadsheet" file is just a tab-delimited text file, where the text is your data.)
    Mark

  • Memory timming and voltage

    okay i have 2 512 sticks of golden dragon ddr 3200
    what do you guys recommend for the voltage and timming it is currenlty 2.60 and all eles is auto i dont quite understand timming very well yet so speaking in lamens turms would be much appreicated.
    oh and if any one was wondering im still have problems with crashing w/ the high pitch squeal replace power supplie twice now.

    The voltage you mention (2.60V) should be fine.  If for whatever reason you find that the RAM is making the system unstable, you can try increasing it to 2.65V or (at most) 2.70V.  If you want to specify the other timings, you'll have to disable the "Auto" setting (doing so should bring up a number of new configuration options).  In the new fields that show up, there should be one called either "CAS Latency" or "Column Address Strobe", and you'll want to set that to 2.5 to start out with.  There should be three other fields where you can specify numberic values.  For two of them, the lowest possible value will be '2'.  Enter '3' for both of these fields, and then in the remaining one, enter a '6'.  If you find that your system is stable at these settings (and it should be, it's what your RAM is rated for), you can come back and try specifying lower numbers to see if you can get any extra performance (though in my experience, there doesn't seem to be any measurable performance difference in going from CAS2-2-2-5 to CAS2.5-3-3-6.  Note that if you're overclocking, you will likely need to enter higher values here in order to keep things stable.
    As far as crashing with the high-pitched noise goes, do you have a second HDD you can try in the system?  If so, take your current one(s) out and install the new one and run the system for awhile and see if the problem goes away...my guess is that it might be your HDD letting you know that it's about to fail.

  • Temperature, strain and voltage

    I need an assistance to add Temperature, Strain and Voltage seperately to my input code at FBG Lambda 1, this will allow the waveform of any of the input to varies. just to observe the variation on the input waveform

    "Dear Young, 
    I want to see how to add Strain and Voltage to the input waveform of Lambda1, my simulation is to just to study or observe a change in any of the waveform preferrably FBG waveform lambda1.
    here are the details of what i want to achieve thereafter: 
    Development of  simulation program to assess the capability of the proposed all-optical protection system to detect faults
    Test the model during investigation of different scenarios of fault within the zone and outside the zone of protection
    Investigate the influence and the effect of Temperature changes on the ability of the scheme to provide correct fault identification.
    Investigate the influence of Leakage current capacitance on Power Transmission Cable
    Development of Algorithm to provide fault status information having a binary information to indicate fault duration or no fault occurrence within the protection zone.
    Recieved from olusegunalfred"
    Thanks for your prompt reply. If it's okay, I have put your response here to keep it public and help people in the future.
    Joshua Young
    Applications Engineer 
    National Instruments UK

  • Printer does not print the blue ink and clean printheads does not show the blue blocks

    I cleaned my printheads numerous times and ran the printing test but the blue blocks do not show up.  There are no streak lines in any of the other colors. How do I fix this problem?

    Hey there @mvelalis!
    Thank you for posting on the HP Forums!
    I would be happy to provide some assistance regarding the cyan not printing.  If you have already run the printhead cleaning with no success in getting the cyan to print then I suggest removing the printhead from the printer and manually cleaning the copper contacts.  The printer takes 4 print cartridges and 2 printheads.  The printheads need to be replaced like cartridges but not as often.  The printheads are what actually put ink onto the page.
    To manually clean the printheads click: http://support.hp.com/us-en/document/c01609042
    I was also able to locate a document regarding Fixing Print Quality Problems for the HP Officejet Pro 8500 Premier (A909n) and 8500 Wireless (A909g....  I suggest going through the documents for possible solutions to your issue!
    Please post back and let me know how it goes!
    Cbert
    I work on behalf of HP.
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" at the bottom of this post to say “Thanks” for helping!

  • IMAQ FFT multiplication and MATLAB Script Nodes/Compact Rio

    I would like to automatically generate a frequency kernel to multiply with the FFT of my IMAQ image. I was wondering if there was a way for LabVIEW to automatically set up 2D arrays (with a lower bound, a step size and a higher bound) like what is done in MATLAB.
    I was wondering also, if someone could give me some insight as to what restrictions I face, when uploading code from MATLAB script nodes into the Compact RiO (I have a cRiO-9025).

    Hi Bilaln,
    I think you confused about a MATLAB script node and a Mathscript node.
    A MATLAB script nodes uses ActiveX to call into MATLAB, where as a Mathscript node runs in a NI built environment. The MATLAB script node requires both that MATLAB be installed and the host supports ActiveX. Since cRIO does not do either, you should use the MATHSCRIPT RT module.
    Joe Daily
    National Instruments
    Applications Engineer
    may the G be with you ....

  • Write time stamp and Voltage to text file

    I am a novice 2011 LabVIEW user and am trying to build a program that will write TIME in one column and VOLTAGE in another to a text file for later interpretation with MATLAB. I started to add elements to an existing code, which I downloaded from the examples forum, because it works well for my purposes of sending a finite square signal. The code that I started modifying is attached to this thread. If somebody wants to take the time to provide me with an example of how I can do this with my existing code, it would be greatly appreciated. I learn better from example.
    Regards,
    Sean. 
    Attachments:
    Voltage - Generate and Write.vi ‏99 KB

    This is a pretty simple set of code that every 5 seconds writes to a csv file that is stored in the location shown in the code. In order to apply something similar to your code simply run the data that you wish to store into the concatenate strings in the form of a string and it should be fine. 
    Although after looking over your code a second time you should probably take a look at the convert "Array to Spreadsheet string" function, all you would have to feed it is an array of times and measurements at the completion of your program and feed it into a file and it should do everything for you.
    Attachments:
    Write to File.vi ‏20 KB

  • I have an Imac, OS 10.6.8.  For the last few months I cannot send email from my computer.  I have called my ISP numerous times and they can't help. WHAT is wrong??

    I have not been able to send email from my computer for several months.  I have called my ISP numerous times and they can't or won't help.  Out of the blue something will send that has been in my outbox for days.  A new email address worked briefly but now does not. What is happening here???  Can this be fixed and how?

    The red dots mean that you were unable to connect to the server, either because it's unreachable or because your credentials were rejected. The daisy wheels mean that the server is taking too long to respond.
    Click the Show Detail button in the window, then click Check Again. Post the details shown.

  • I am having multiple problems with my iphone 4s, people can't hear me when I call, text messages don't always send, calls go straight to voice mail. I have all bars, have hard rest 3 times. I have called apple 4 times and gone to a store. No help.

    I have had the 3g, 3gs, 4 and little if any problems. I made a major mistake buying the 4s. What a horrible phone. I must say, apple service is at best, BAD. Here are the basics. I am on the same network, I call the same people, I use the same text messages as I did with the 4. With the 4s, I will call someone and they will not be able to hear me. I have to hang up and recall. Or the phone just does nothing when I press call. Text messages acts like they send but when I go back the have been sent. Sometimes the calls go direct to voice mail.
    Here's what I have done. Reset, did not help. Called apple, advisor said she would call me back in 5 minutes, after waiting for 5 days for the call, I recalled, they walked me through the same things I had already done, then said to take it to a store. So they set up an appointment for the only day I could get to it, 1 1/2 hours away, on my grand son's birthday. That was okay if they fixed it. So they hard reset it, we had to setup 4 email accounts, they would not allow me to restore because they said it was a software problem. So I had to download all the apps, lost a lot of data. No fun. But if it worked! So Monday back at work, guess what, same thing. When home and did another hard reset. Still no lick. Called apple again. They said they would replace my phone, all they needed was to put a hold on a credit card for $899 or drive a 1 1/2 hours to a store.
    So anyone know a good andriod phone.
    PS I got a email asking about the service each time and each time I told them what a horrible phone it was and how bad service was. I have yet to hear back. I guess they do not read them!

    You're not speaking to Apple on in this forum, nor will someone from Apple see this post.   We are just users like you and I.
    Have you tried to restore or reset your phone?
    Or contact your carrier in re: to your sim card

  • I have an iPhone and my 9 year old has an iPad, they are both linked to my Apple ID however I want his to be separate now so that we can send messages and face time. Any suggestions how I do this???

    I have an iPhone and my 9 year old has an iPad, they are both linked to my Apple ID however I want his to be separate now so that we can send messages and face time. Any suggestions how I do this???

    Thank you. I tried changing his id but it changed it on both devices:( Don't really have a clue:( I have set up an email account so that he can get an Apple ID.
    Do you by chance know how I do this?!?

  • I have an HP Photosmart C4180 all in one printer scanner and copier, I can't figure out how to scan more than one page at a time and then send as a PDF file via email

    I have an HP Photosmart C4180 all-in-one, printer, scanner and copier.  I can't figure out how to scan more than one page?  It will only let me do one page at a time and then I have difficulty sending pages 1, 2 and 3 as one docuement.  Any ideas??
    Thank you, Jetteski

    Hello Jetteski,
    Hello Jetteski, Thanks for the post.
    Since you are running a MAC, check the below links for some excellent information on scanning.  Good Luck!
    http://goo.gl/M8Cl2
    http://goo.gl/cufK6
    http://goo.gl/OTQoR
    I work for HP but my posts and replies are my own....Thank you!

  • The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?

    I have recently switched from a PC to a MacBook Pro.
    I have a large number of documents and photographs on a multiterrabite external drive, backed up on a second multiterrabite external drive.
    Both external drives are formatted for MacIntosh. This has been verified by agents at an Apple store and also at Best Buy in two different cities.
    This is the problem:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    Thanks!
    Roderick Guerry
    [email protected]

    Roderick Guerry wrote:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    No, this is a philosophical difference between Apple and Microsoft. Apple believes that it's dangerous to cut a file in case the user never pastes it; in that case the file is lost. Microsoft seems to not have this problem (if I remember Windows correctly) because they don't delete the originating file if it's cut but never pasted.
    Even though Macs have a lot of keyboard shortcuts, philosophically Macs have traditionally been mouse-first. This applies to file copy operations. In your case, what a Mac user would do is open the source window, open the destination window (on your second drive), and then Command-drag the selected files from the source to destination window. This is because a normal drag would leave the originals behind, while adding the Command modifier key tells OS X that this is a Move, not a Copy, so don't leave the originals behind.
    (In addition there are different rules for drag-copying within the same volume or between different volumes. If you drag between two folders on the same volume, the files are moved. If you drag between different volumes, the files are copied unless you hold down Command to delete the copies on the source volume.)
    Roderick Guerry wrote:
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    Two problems in this case. First, batch file renaming is not built into OS X unless you build something with Automator. However, there are many utilities that can do batch file renaming which you can find at macupdate.com or on the App Store. Since I work with media I often batch rename using one of the media managers I have lying around like Media Pro or Adobe Bridge (comes with Photoshop).
    iPhoto is a database front end designed to shield the file system from the consumer and let them concentrate on creativity and sharing. As such it is often a poor choice for managing files directly. When you "transferred the photographs" chances are you moved the originals, not the ones iPhoto edited which are stored in a hidden folder.
    Roderick Guerry wrote:
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    There will not be a way to do it exactly like Windows. As described above, there are ways to do it "the Mac way." If it is possible to remove judgment on which way is "better" you might find the Mac way to be acceptable, but of course sometimes we simply prefer what we're used to.

  • I can no longer send or receive iMessages on my iphone 5. When I try to sign on to my iCloud account it says that my password is incorrect. i have changed my password four times and it still says i am entering the wrong password.

    I can no longer send or receive iMessages on my iphone 5. When I try to sign on to my iCloud account it says that my password is incorrect. i have changed my password four times and it still says i am entering the wrong password, which i know for a fact i am not.

    yes i've tried both my wifi and my 3g network nothing works. ive been talking to apple the last few days and no one can fix the issue, they just keep telling me they'll call back the next day to try something else. i dont understand how i can facetime but im not getting the option to send or receive imessages when facetime and imessage are used on the same server

  • On my itouch 4th gen, I use imessage and message many people, but sometimes when i send a message the send bar on top will go almost all the way and stop. This will happen for some time and then work later. is there anything to avoid the freezinginsending

    On my itouch 4th gen, I use imessage and message many people, but sometimes when i send a message the send bar on top will go almost all the way and stop. This will happen for some time and then work later. is there anything to avoid the freezing problem while it sends

    See:
    iOS: Troubleshooting Messages
    However, I suspect it is just a tempery network problem beyond your control

  • Hi Guys, Im trying to send a 80pages IPhoto book to the store but the uploading fails, I tried several times and always a message "an error occurred" without clarification, can you help me?

    Hi Guys, Im trying to send a 80pages IPhoto book to the store but the uploading fails, I tried several times and always a message "an error occurred" without clarification, can you help me?
    Is there any size limit? or a limit of time to upload? (as it takes more than one hour!!!)

    Preview the book -
    Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
    if it is good boot into safe mode, preview again (only limited fonts are loaded in safe mode) and upload
    LN

Maybe you are looking for

  • Call forward to Unity Connection Fails

    I have CUCM7.1 and UCXN 7.0 and have done sip integration.  When phones call their voicemail it works fine.  When a call to phone is forwarded to vm the main greeting is announced and not the personal greeting.  RTMT port monitoring indicates the cor

  • FRITZ!Box Fon WLAN 7390

    Hi All This is my first post so be gentle!! I was using my BTOpenreach modem with my Draytek 2830Vn+.  Unfortunately the Draytek has now been refunded due to a fault and I'm back on my HomeHub3. After much research I have found FRITZ!Box Fon WLAN 739

  • Stop motion on premiere pro

    Hello, i am trying to make a stop motion film using adobe premiere pro cc, and possibly premiere elements 12 if necessary. I would like to know how i can createa live feed of images from camera to software. I would also like to be able to use the oni

  • Why do I receive error -1073807339 VISA Write

    I have a LV app built using LV2010 SP1 on a WinXP 32-bit machine.  The app uses VISA to communicate serially through a RS232 to USB adpater to a pump.  I can run the compiled app (exe) on another Win XP 32-bit machine without error.  But the app gene

  • SQLLOADER with 8i can't load into views ?

    I'm running Oracle Personnal 8i (8.1.6) under Windows2000. I have a ctl file that load data into a view (called MyView). This wiew is only a "select * from MyTable" When i run sqlldr, i have the following message : SQL*Loader-941: Error during descri