Problem using the Write to SGL VI and Read from SGL VI

Hello Sir, I have a problem using the Write to SGL VI. When I am trying to write the captured data using DAQ board to a SGL file, I am unable to store the data as desired. There might be some problem with the VI which I am using to write the data to SGL file. I am not able to figure out the minor problem I am facing. I am attaching a zip file which contains five files.
1) Acquire_Current_Binary_Exp.vi -> This is the VI which I used to store my data using Write to SGL file.
2) Retrive_BINARY_Data.vi -> This is the VI which I used to Read from SGL file and plot it
3) Binary_Capture -> This is the captured data using (1) which can be plotted using (2) and what I observed is the plot is different and also the time scare is not as expected.
4) Unexpected_Graph.png is the unexpected graph when I am using Write to SGL and Read from SGL to store and retrieve the data.
5) Expected_Graph.png -> This is the expected data format I supposed to get. I have obtained this plot when I have used write to LVM and read from LVM file to store and retrieve the data.
I tried a lot modifying the sub VI’s but it doesn’t work for me. What I think is I am doing some mistake while I am writing the data to SGL and Reading the data from SGL. Also, I don’t know the reason why my graph is not like (5) rather I am getting something like its in (4). Its totally different. You can also observe the difference between the time scale of (4) and (5).
Have a Good Day
Regards,
Krishna
Attachments:
LABVIEW_Files.zip ‏552 KB

As already discussed a while ago, your binary data does not contain timing information. You need to tell it the scan rate so it can reconstruct the time axis correcty.
From the data, it seems the sample file was recorded at 0.5MHz. Take the inverse and set the time increment. Voila!
Your sample file is two column data with one colum all zero. You need to set the number of columns to two, to only get the good data in channel 1.
Your acquisition program contains unecessary FOR loops, you can remove the inner loops without change in result.
It makes no sense to convert to SGL if you initialize the shift registers with an empty DBL array. You need to initialize with an empty SGL array.
(The code could be simplified quite a bit more, but this should give you some directions).
The attached zip shows some ideas (LabVIEW 7.1).
LabVIEW Champion . Do more with less code and in less time .
Attachments:
LabVIEW_FilesMOD.zip ‏195 KB

Similar Messages

  • How can I write to port C and read from port A&B simultaneously using 6503 DIO-24

    I attempting to read from Port A and B which are grouped together and at the same time I want to write to Port C. The problem I having now is that every time I want to read from Port A and B, Port C seems to be effected. I have only used the easy dio's vi this may be the root of my prblem

    Hello,
    You will need to use the advanced digital VIs to accomplish what you are trying to do.
    The Easy DIO VI's are simply a combination of two DIO advanced VI, so you will use the same two advanced VI with a little different calling method. We want to call both PORT Config VI first to configure two ports for read and one port for write. Then we can simply read and write to the ports as desired, perhaps in a loop.
    The best place to start would be to look at the LabVIEW examples for Digital Input and Output operations. In LabVIEW, go to Search Examples then under I/O interfaces select DAQ (or Data Acquisition)-> Digital Input and Output->Immediate Digital Input and Output. From her you will want to look at the examples under the 8255 chip which is the chip on
    the DIO-24. I would recommend looking at Read from two digtial ports and the Write to one digital port VI's.
    From here you will simply need to combine the two together. One note: you will want to make sure that both port config VI are called before either Port Read or Port Write VIs.

  • With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    This isn't an issue. Notice the screen prior to the one that shows usage has an iCloud section and a Manage Storage button. For this button to activate ios needs to download a few kb from icloud. Switching back to this screen forces ios to download those few kb.

  • I have a big problem :( why is it i cant update my ipod touch 2g into ios 4! im using the latest version of itunes and everytime i click "update" it stucks on the "contacting server" please help :( i want to update it now

    i have a big problem why is it i cant update my ipod touch 2g into ios 4! im using the latest version of itunes and everytime i click "update" it stucks on the "contacting server" please help i want to update it now

    Maybe here:
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server

  • So here's my problem. I just used the "reset all settings" option, and accidentaly restored an old backup. It deleted all my photos and contacts, but for some reason I still have all the apps from after the backup date, is there a way to get it all back?

    So here's my problem. I just used the "reset all settings" option, and accidentaly restored an old backup. It deleted all my photos and contacts, but for some reason I still have all the apps from after the backup date,and it also kept the notes from after the backup. The "reset all settings" option clearly says no loss of data or media, so I don't understand why some stuff got deleted. My question is, is there a way to get it back?

    If you still can find a recent backup listed in iTunes/Edit/Preferences/Devices, use this one to restore from.
    If there are no recent backups listed, your data is gone. Only if you included the iTunes backup folder into your computer backup routine, you could be able to restore this folder and find one of your latest backups listed again.
    iTunes: About iOS backups

  • Does anyone have problems using the  highlights, shadows and sharpness edits in iphoto? Since I uploaded Mountain Lion, those editing tabs do not work!

    Does anyone have problems using the highlights, shadows and sharpness controls in iphoto 11? Since I uploaded Mountain Lion on my
    mac mini, those editing features no longer work!!!!

    Sorry, I booted into 10.8 just to test this, but I only have iPhoto 08.

  • I have just installed Digital Editions 4.3 but am having poblems downloading digital books as I get an error message stating 'Error! Check Activation'. I have Windows 7 and didn't have any problems using the previous version of Digital Editions. Can anyon

    I have just installed Digital Editions 4.3 but am having poblems downloading digital books as I get an error message stating 'Error! Check Activation'. I have Windows 7 and didn't have any problems using the previous version of Digital Editions. Can anyone advise?

    Hi Siobhan ,
    Please refer to the following link and see if that helps.
    https://helpx.adobe.com/digital-editions/kb/error-e_act_not_ready.html
    I would also like to know ,does that error message has any specific number ?
    Regards
    Sukrit Dhingra

  • I have an Itel based iMac on which I created a Wifi network using Airport. My iPhone5 uses the Wifi on my iMac and still works.My problem is that I can't remember the Wifi password and it is not in my Keychain.

    I have an Itel based iMac on which I created a Wifi network using Airport. My iPhone5 uses the Wifi on my iMac and still works.My problem is that I can't remember the Wifi password and it is not in my Keychain. What can I do so that I can connect other devices to my Wifi?

    Read the router's user manual on how to change your password.
    If you are going to select another password, make sure it's one that you will NEVER forget AND no one else can figure it out.  Print it out & keep in a safe place.  A place that ONLY you know about AND never forget.

  • The new ibook app and ibook update is designed for iPhone 5 operating system.   When my iPhone4 recently updated the ibook app, it created many problems using the ibook to download and read my books.    Can I get the previous ibook app back on my phone.

    The new ibook app and ibook update is designed for iPhone 5 operating system.   When my iPhone4 recently updated the ibook app, it created many problems using the ibook to download and read my books.    Can I get the previous ibook app back on my phone.

    Check your trash can on the desktop. The old version is automatically moved to the trashcan. You should be able to move it from the trashcan back to the Apps folder within the iTunes folder. The update that was pushed out was for iBooks to work with iOS 7 not iPhone 5. iOS 7 was released today.

  • Problem using the FederatedSearch / Result set empty

    Hello,<br>
    <br>
    I've the following problem using the FederatedSearch:<br>
    In my KM-Folder I've two documents.<br>
    I created a simple search AbstractPortalComponent to search in the special KM-Folder.<br>
    If the query is "*" I will get the right number of documents.<br>
    But If I will access them the iterator is empty...<br>
    Please see the code below:<br>
    <br>
    Best regards<br>
    Klaus<br>
    <br>
    <br>
    IIndexService indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);<br>
    <br>
    SearchQueryListBuilder sqb = new SearchQueryListBuilder();<br>
    <br>
    sqb.setSearchTerm(query);<br>
    IQueryEntryList qel = sqb.buildSearchQueryList();<br>
    RidList ridList = new RidList(); <br>
    ridList.add(RID.getRID(OR_KM_ROOT_PATH + "/" + OR_KM_CURRENT_PATH));<br>
    ridList.add(RID.getRID(OR_KM_ROOT_PATH + "/" + OR_KM_ARCHIVE_PATH));<br>
    IResourceContext resourceContext = new ResourceContext(user);<br>
    IFederatedSearch federatedSearch = (IFederatedSearch) indexService.getObjectInstance(IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);<br>
    IFederatedSearch search = (IFederatedSearch) indexService.getObjectInstance(IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);<br>
    ISearchSession session = federatedSearch.searchWithSession(qel, ridList, resourceContext, null, null);<br>
    response.write("-"+session.getTotalNumberResultKeys()); ### writes 2-ok-<br>
    response.write("- "+session.getNumberResultKeys()); ### writes 2-ok-<br>
    ISearchResultList sresults = session.getSearchResults(1,session.getTotalNumberResultKeys());<br>
                   <br>
    ISearchResultListIterator iter = sresults.listIterator();<br>
    response.write("> "iter.hasNext()"<br>");          ### writes "false"!???
    <br>               
    while (iter.hasNext())<br>
    {<br>
    ...<br>
    }<br>

    The plan is to be running with more than just two sites (though at the moment I am testing with only two).
    What happens is a client comes on-line and requests a list of sites from a router. It then picks one of the sites from the list and adds that as a replication site in the repmgr.
    It then goes about opening up the database and doing some other bookeeping. Finally we start the replication manager and once the NEWMASTER event is recieved a sync is done.
    So while this DELAYCLIENT/rep_sync is a bit overkill for the two-site test I am doing now, the design I am working towards will be a multi-site setup.

  • I have problem using the BufferWriter

    I have problem using the BufferWriter. I try to write the data to a *.txt file. However, I do not know how to add the data in but not over write the previous data. Can anyone help me please?
    Also the productID cannot be written into the *.txt file, the type of productID is int. Don't know why this happen...
    public void writeInfo()
        try{
        PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("C:\\Documents and Settings\\Charles\\My Documents\\testing.txt")));
        out.write("\n");
        out.write(productID);
        out.write("  ");
        out.write(productName);
        out.write("  ");
        out.write(originalCountry);
        out.write("  ");
        out.write(Double.toString(price));
        out.write("  ");
        out.write(productCategory);
        out.write("  ");
        out.write(Double.toString(vatPrice));
        out.write("  ");
        out.write(manufacturerName);
        out.write("  ");
        out.write(manufacturerAddress);
        out.write("  ");
        out.write(warranty);
        out.flush();
        out.close();
        catch(IOException ex)
         ex.printStackTrace();
      }

    Charles_Wong wrote:
    Also the productID still cannot be written into the *.txt file...
    and where can I find the line.separator?
    Edited by: Charles_Wong on Dec 12, 2007 2:56 AMSystem.getProperty("line.separator")

  • Why do shadows appear before the letters when using the write-on effect

    I am using the write-on effect.  I am casting shadows on a wall but the shadows of the letters are appearing whole prior to the letters being written.  How can I get the shadows to appear in sync?

    I apologize for not supplying enough information.  I am using AE CS6 and I am using 3D layers with lights. I have also used a single layer for each letter in the message that is slowly appearing.  The lights are creating the shadows but are rendering the shadow before the effect write-on, as the shadow letter appears first.  Then the letter is drawn second.  I thought it must be something in the render order, but I couldn't figure out how to make it happen correctly.
    After I posted my question, I found an Adobe video tutorial on render-order.  Although the video didn't address my problem, it did remind me that an effect that I could use - drop shadows.  I inserted the drop shadow effect above the write-on effect on each letter and the world is good.  The shadow appears at the same time as the letter.  And with a whole lot less effort.
    I appreciate you taking the time to think about the problem.  If there is a simple solution I would still be interested in knowing what it might be.
    Steve

  • I tried using the Voice Memos iPhone app and ended up with a red banner on top of the screen that flashes "recording 00.00" but I can't locate what I thought I was recording.  can you help me?

    I tried using the Voice Memos iPhone app and ended up with a red banner on top of the screen that flashes "recording 00.00" but I can't locate what I thought I was recording.  can you help me?
    jacknil

    I found an answer to this on another page (I was having the same problem) This worked for me:
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    more here: https://discussions.apple.com/thread/5596831

  • I  have a problem with the synchronisation of my iPhone and iPad with Outlook 2007 on my 64-bit Windows 7  PC. For several years, I have had no problems with the synchronisation by cord connection and iTunes between these programmes. However, a few months

    I  have a problem with the synchronisation of my iPhone and iPad with Outlook 2007 on my 64-bit Windows 7  PC. For several years,
    I have had no problems with the synchronisation by cord connection and iTunes between these programmes. However, a few months ago I decided to use Mobile Me. However, there were problems with duplication of calendars and then “rogue events” – which could not be deleted – even if deleted on Outlook and on the iPhone (or both at the same time) – they would just reappear after the next synchronisation.  All other synchronisation areas (eg Contacts, Notes etc) work fine.
    I have looked for help through the Apple Support Community and tried many things.  I have repaired my Outlook. I have repaired my .pst file in Windows. I have re-installed the latest version of iTunes on my PC. I have re-installed the firmware on my iPhone. I have tried many permutations on my iPhone. I have closed down all Mobile Me functions on the iPhone. I have spent upwards of 24 hours trying to solve this problem.
    What am I left with? Outlook works seamlessly on my PC. My iPhone calendar now has no events from  my calendar, but does not synchronise through iTunes. Nor does it send events initiated on the iPhone to the Outlook. I am at the point of abandoning iPhones and iPads altogether.  I need to have a properly synchronising calendar on my phone.  Do you have any suggestions?

    In the control panel goto the "Lenovo - Power Manager" and click the battery tab, there is a maintenance button in there that will let you change the charging profile for your battery.   (from memory, so exact wording may be off)
     The lower the numbers you use there, the longer the battery *should* last.    These batteries degrade faster at higher charge levels, however storing them at too low of levels is also not good for them... I've read that 40% is optimal, but just not realistic if you use your computer.
    --- ThinkPad T61 / Win 7 / Core 2 / 4gb RAM / Nvidia / Still used daily --- ThinkPad Edge 15/ i5 / Win 7 / TrueCrypt / 8gb RAM / Hated it, died at 1 yr 1 mo old --- ThinkPad T510 / Win 7 / TrueCrypt / i5 / 8gb RAM / Nvidia / Current primary machine --- ThinkPad X220 / i7 / IPS / 4gb / TrueCrypt / My Road Machine

  • Could not complete the command because of a problem using the Adobe Color Engine

    Hi all
    This bizarrely started this morning - completely out of the blue - and I've no idea why.
    Setup: Mac 10.8.2 / Creative Suite Premium PhotoShop CS5 extended (patched to 12.04)
    Am working on images exported from LightRoom 4 (16bit A3 Pro Photo RGB PSDs) in PhotoShop CS5.
    As part of my image grading process I have a PhotoShop Action that does the following: copy layer to new document (document respects all of copied layer settings) > Image > Adjustments > HDR toning > apply a certain HDR preset > copy to resultant image back to original doc > set opacity as 40%.
    Totally out of the blue, after having this action for about 2 months, this morning I start getting a warning dialog of "Could not complete the command because of a problem using the Adobe Color Engine" and the action fails. The failure seems to take place at the 'make document' part of the action and seems to somehow be related to the contents of the clipboard.
    I've tried trashing and re-creating the action. It works first time out fine and then - on the next image - errors again.
    At present I can only safely carry out the work 'manually' by completing all the actions myself.
    I can think of no settings that have changed and the OS hasn't been updated in a while.
    I have found one other thread on a similar problem in PhotoShop Elements, but no definitive solution.
    Any help appreciated as I have a shedload of stuff to process.
    Best wishes
    TP

    OK: trash of prefs didn't work. Tried thrice. Re-created orig action. same problem.
    BUT!
    Your 'Image > Duplicate' suggestion does seem to work. If I use that in a new action as the method for creating the HDR version doc (instead of 'Select > Copy > New > Paste), it seems to work.
    Will try that out this afternoon, but for now: WIN!
    Many thanks for the suggestion!
    TP

Maybe you are looking for

  • SESSIONS3_INITIALIZATION_FAILED error in installing windows xp

    In the process of installing WinXp I selected the wrong option ie leave alone in formatting. After that I have tried to reformat the disk and start over but each time after the drivers are load from my XP dvd the installation halts with "A problem ha

  • Weird one with my fx 5200 after deleting old drivers and installing from scratch.

    Ok, now I got a weird question, but seems to be a problem. I have a MSI Geforce FX 5200 as seen here and I was having a few problems with my drivers, and I figured it was my video card since it would mostly happen in games with 3D acceleration. So, I

  • Apple Mail.app in Leopard removes HTML formatting

    Hi, This is not something I see universally, but in many of my mails (Exchange account, company ID, hence, can't post screenshots), sometimes, Mail.app strips the html formatting! Sometimes, something as simple as a table is missing. All I see is the

  • Using MBP Speakers with output

    is there any way (like when im running xp) that i can have my speakers on as well as my external speakers?

  • IMac 24 & firewire ?

    One thing i noticed on the iMac spec page was the power to the fw bus on the 24". Was wondering what the implication might be ... anyone smart enough to clue me in ? http://www.apple.com/imac/specs.html "Peripheral connections 17-inch and 20-inch mod