Difficut in designing some part of this MATLAB program in labview

Program of Transmitter (matlab)
clear        
clc
block=2;
n=1;                    %no.of users
m=2;                  %data length
sl=2;                 %spread length
chiplen=m*sl;        %chip length
itnum=30;
ebnostart=0;     %step iteration
ebnostep=3;
ebnonum=8;
%spreading sequence producing {+1,-1,+1,-1--------}
for i=1:sl
    spreading(1,i)=1-2*rem(i-1,2);
end
%spreading sequence generation ends
%interleaving sequence generation begins
for i=1:n
    for j=1:chiplen
        scrambrule(i,j)=j;
        first(i,j)=j;
    end
    for j=1:chiplen
        k=j+rem(randint(1,1,1000)*randint(1,1,1000),(chiplen+1-j));
        tmp=scrambrule(i,j);
        scrambrule(i,j)=scrambrule(i,k);
        scrambrule(i,k)=tmp;
    end           
end
%interleave design ends
%the simulation process begins
for z=1:ebnonum
    ebno=ebnostart+z*ebnostep;
    snr(z)=(10.^(ebno/10))/sl;
    sigma=sqrt(0.5/snr(z));
    error=0;
    for bloc=1:block
        %transmitter section begins
        %generation of data randomly
        for i=1:n
            for j=1:m
                data(i,j)=randint(1,1);
            end
        end
        %end of generation of data
         %data spreading begins
        for i=1:n
            l=1;
            for j=1:m
                tmp=1-2*data(i,j);
                for s=1:sl
                    chip(i,l)=tmp*spreading(1,s);
                    l=l+1;
                end
            end
        end
        %end of data spreading
       %transmitting data production begins
       for i=1:n  
           for j=1:chiplen
               transmit(i,j)=chip(i,scrambrule(i,j))
           end
       end
       %transmitting data produced
      %transmitter section ends
    end
end

Hi dsk,
when you're not able to program a simple element swap of a 2D array in LabVIEW I would suggest to go through the basics course offered by NI:
One more (maybe more intuitive) way:
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • How to use a Matlab Program within Labview

    Hi
    I saw in this forum that many users are using some matlab program
    executed in Labview program. I have actually Labview 7.1 and would like
    to use some of my matlab program in Labview. Is there an easy way to do
    it ?
    Thanks
    Thomas

    The MATLAB Script function is kinda buried in the function palette, and
    can be found under Functions >> Analyze >> Mathematics
    >> Formula.  Unfortunately this feature is not available in
    the LabVIEW Base package.  Hope this helps!
    Andy F.
    National Instruments

  • How to integrate Matlab program into Labview

    I have a Matlab program to do some data processing.
    The data source is from Labview, and the processed data will pass back to Labview for display.
    Finally the Labview program need to compile into exe program.
    Any way to make it. Thanks.

    hope this helps:
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    matlab.jpg ‏25 KB

  • I'm trying to get into game center to download some things. Enter user id/password then keep getting a "you are not part of this/the administrator group" then a cancel or retry command. What do I do? (I am using a friends wi-fi) What d

    I am trying to get into the Game Center and download some apps. I enter my user id/password the keep getting a "you are not part of the/this administrators group" message then a cancel/retry command. What do I do to become part of this/the administrators group? I am using a friend's wi-fi...Help!

    I am trying to get into the Game Center and download some apps. I enter my user id/password the keep getting a "you are not part of the/this administrators group" message then a cancel/retry command. What do I do to become part of this/the administrators group? I am using a friend's wi-fi...Help!

  • I have purchased my i phone 5 one month back, unfortunately I have got some hardware problem like some part has been broken from inside, but the phone works without any issue, Did anybody face this issue?

    I have purchased my i phone 5 one month back, unfortunately I have got some hardware problem like some part has been broken from inside, but the phone works without any issue, Did anybody face this issue?

    If you believe there is a hardware problem, call AppleCare or make an appointment at an Apple Store if there is one nearby.

  • When i sync my iphone5 on my computer with itune the last part does not stop sync download safari i dont know why is not sync and i cant stop it i am try to download some song and this thing cant stop sync help?

    when i sync my iphone5 on my computer with itune the last part does not stop sync download safari i dont know why is not stop sync and i cant stop it i am try to download some song and this thing cant stop sync help?

    Hi,
    /Users/sarahschadek/Desktop/Safari.app/Contents/MacOS/Safari
    Move the Safari app from the Desktop to the Applications folder.
    Restart your Mac.
    That's why you see this:
    When I try to do the updates my computer says it has ready it goes through like it is downloading them then at the end it says some of the files could not be saved to "/" files.
    After your restart your Mac, click the Apple  menu (top left in your screen) then click:  Software Update ...
    Carolyn  

  • GS60 Ghost Pro - Some parts of Steel Keyboard are not illuminated

    Hi,
    I bought myself a GS60 2PE Ghost Pro a couple of days ago. The Keyboard illumination was working fine at first, but today I noticed that some parts of my Steel Keyboard are not illuminated anymore. My laptop was updated by Windows Update Manager, so I thought it had something to do with newly installed updates. But I did a full system recovery with F3 and the keyboard is still not illuminated properly.
    Any ideas what can fix this issue?

    I have checked out the GS60 2PC (same generation as yours) and I saw what you mean.
    I didn't notice this before when I tested the GS60 models.
    When looking at the keyboard on smaller angle (<70°) you can see there is less light coming from the F1, F7, F8, F9, F11, TAB, CAPS, SHIFT, ENTER and Numpad keys.
    The amount of light that is visible below the keys isn't consistent everywhere and that seems to suggest that the keyboard back-lighting isn't working properly at those keys.
    Looking below the F7, F8, F9 keys, I see that only the top left part of the key is illuminated, while other keys (i.e. F2..F6) are also illuminated on the right part of the key.
    I have checked with our R&D department and this is a design choice.
    The F2..F6 keys have a symbol in the top-left and the bottom-right part of the key and the F1, F7..F9, F11 only have a symbol in the top-left, which doesn't require lighting in the lower right part of the key.
    This also applies to the bigger keys (TAB, CAPS, SHIFT, ENTER and Numpad keys), only the center of the key where the symbol resides is illuminated.
    When looking at the keyboard in dim/dark rooms the keyboard back-lighting works as expected and keys can easily be identified because the symbol on the key lights up.
    I hope the attached pictures clarify the situation (It isn't easy to capture the real effect with a simple digital camera. The situation in the pictures actually look worse than viewing it in real life).
    P.S.,
    More pictures and a video in the attached Zip file.
    The video might show the situation the best.

  • A device which is not part of this management group has attempted to access this Health Service.

    Has anyone found an answer to this yet?  I have uninstalled/reinstalled the agents both manually and through the push. Rebooted the client, rebooted the  sce server. Forced the group policy to reapply, forced the health agent to /reportnow and I still get the error. The client shows up under the agent managed section but under the health state column it shows not monitored. The clients can ping the SCE server by FQDN and RDP to it as well so name resolution is working fine.
    On the the SCE server I get this in the log
    Event Type: Information
    Event Source: OpsMgr Connector
    Event Category: None
    Event ID: 20000
    Date:  6/25/2009
    Time:  10:09:40 AM
    User:  N/A
    Computer: *******
    Description:
    A device which is not part of this management group has attempted to access this Health Service.
    Requesting Device Name : *****
    And this
    Event Type:            Information
    Event Source:           OpsMgr Connector
    Event Category:       None
    Event ID: 21042
    Date:                        6/25/2009
    Time:                       10:25:14 AM
    User:                        N/A
    Computer:                ***********
    Description:
    Operations Manager has discarded 1 items in management group Servername_MG, which came from $$ROOT$$.  These items have been discarded because no valid route exists at this time.  This can happen when new devices are added to the topology but the complete topology has not been distributed yet.  The discarded items will be regenerated.
    On the client I get
    Event Type: Error
    Event Source: OpsMgr Connector
    Event Category: None
    Event ID: 20070
    Date:  06/25/2009
    Time:  10:06:13 AM
    User:  N/A
    Computer: ******
    Description:
    The OpsMgr Connector connected to ****** but the connection was closed immediately after authentication occured.  The most likely cause of this error is that the agent is not authorized to communicate with the server, or the server has not received configuration.  Check the event log on the server for the presence of 20000 events, indicating that agents which are not approved are attempting to connect.
    And this as well
    Event Type:            Error
    Event Source:           OpsMgr Connector
    Event Category:       None
    Event ID: 21016
    Date:                        06/25/2009
    Time:                       10:06:18 AM
    User:                        N/A
    Computer:                ******
    Description:
    OpsMgr was unable to set up a communications channel to **** and there are no failover hosts.  Communication will resume when ******* is both available and allows communication from this computer.
    And this
    OpsMgr has no configuration for management group Servername_MG and is requesting new configuration from the Configuration Service.

    Hey Nathan,
    Yea I have sent the script to eveyone that has aked for it. I dont know if its helped anybody else as none has given me any feedback either way.
    I guess I can post it here for everyone to use.
    Please keep in mind that if you use this script from MS its at your own risk, If your DB blows up, massive catastrophic failure ensues and so forth ITS YOUR OWN FAULT. MAKE SURE YOU HAVE GOOD BACKUPS
    Step 1) Run this against your SCE 2007 DB
    DECLARE @BaseManagedEntityInternalId int
    DECLARE @BaseManagedEntityId uniqueidentifier
    DECLARE @ViewName sysname
    DECLARE @Statement nvarchar(max)
    SET @BaseManagedEntityInternalId = 0
    WHILE EXISTS (SELECT * FROM BaseManagedEntity WHERE (BaseManagedEntityInternalId >
    @BaseManagedEntityInternalId))
    BEGIN
    SELECT TOP 1
    @BaseManagedEntityInternalId = bme.BaseManagedEntityInternalId
    ,@BaseManagedEntityId = bme.BaseManagedEntityId
    ,@ViewName = met.ManagedTypeViewName
    FROM BaseManagedEntity bme
    JOIN ManagedType met ON (bme.BaseManagedTypeId = met.ManagedTypeId)
    WHERE (bme.BaseManagedEntityInternalId > @BaseManagedEntityInternalId)
    AND (bme.IsDeleted = 0)
    ORDER BY BaseManagedEntityInternalId
    SELECT @Statement = 'IF NOT EXISTS (SELECT * FROM ' + QUOTENAME(@ViewName) + '
    WHERE BaseManagedEntityId = ''' + CAST(@BaseManagedEntityId AS varchar(50)) + ''')
    PRINT ''' + CAST(@BaseManagedEntityId AS varchar(50)) + ' ' + @ViewName + ''''
    EXECUTE(@Statement)
    END
    STEP 2) 
    If your problem was the same a mine you should get some GUID’s returned.  (For example 93790c0B-09C4-3A4D-CE72-F4E3Dd917D78 MTV_DeploymentSettings)
    Using the GUID that we got in the output file
    Execute the below given query:
    ==========================
    select fullname
    from basemanagedentity
    where basemanagedentityid = ‘<GUID>’
    ==========================
    Verify that the device or the object mentioned in the above output is not displayed in Operations console.
    Only in case if the object is not displayed then use the below given query to delete it from database.
    ==========================
    update basemanagedentity
    set isdeleted = 1
    where basemanagedentityid = ‘<GUID>’
    ==========================
    Before executing the above query please ensure that you have the backup of the database. Also note that you need to run the above said query only incase if you do not see the object in the Operations console.
    After executing this query, run this stored procedure:
    ==========================
    exec p_Detectandfixinstancespaceinconsistencies
    ==========================
    Once it is done:
    > Stop all the three OpsMgr services: health, Config and SDK on Management Server
    > Cleared the health service state folder.
    > Start all the three OpsMgr services: SDK, Config, and health on Management Server.
    > Wait for 30 minutes and see if the agents start getting monitored.
    I hope this helps everyone

  • My Mac is a 21.5-inch Late 2009 with a 1 TB Seagate HD that must be replaced, according to Apple support, but they denied me that right because the serial is not part of the replacement program: any suggestions to get a plausible solution to this problem?

    My Mac is a 21.5-inch Late 2009 with a 1 TB Seagate HD that must be replaced, according to Apple support Panama, but they denied me that right because the serial is not part of the replacement program: any suggestions to get a plausible solution to this problem?
    I would want to know what are the criteria used by the people al espresslane support to deny the opportunity presented by the replacement program, given the situation that these 1 TB Seagate HD´s have had problems and certainly not only in the batch they accepted, but probable in other batches too.
    The second question is about the powerpc support that is lost when updating from Snow Leopard to Lion X: I can not read my medical application UPTODATE.
    I hope that there wil be some kind of support to help me solve that problem, this is my first petition actually.
    Now, I do not have access to my yahoo email, intermitent access to Apple home page, unpredictable access to Apple store and no access to iCloud in my iMac: when I try to access these web sites, the blue web address bar is interrupted and never goes to the end, no filling up the whole bar.
    I do not know what is the first problem, the Seagate HD or the Lion X, but my life is becoming a miserable one, not having the opportunity to enter in the raplacement program, losing the powerpc support because of the updating to Lion X, the necessity to buy Lion X again because it used to appear as a paid program, but not anymore, and finally having no access to my yahoo email, Apple home website and Apple store and no access at all to the iCloud: I am done.
    Chao, Elías.

    You can have Apple or a competent service shop replace the internal HD for a fee, unless you have AppleCare and the iMac is within its warranty period in which case it will cost nothing. If you must pay the cost will be approximately $350 US.
    PowerPC support is gone with Lion. You can install or retain Snow Leopard on another partition, and boot Snow Leopard as necessary.
    The inability to load web pages is a different problem, unless it is related to your failing hard disk.

  • I got this flashing question mark, i did some research into this and found out that the hard drive is the cause

    i recently found my ibook and decided to see if it would still turn on. it did but i got this flashing question mark, i did some research into this and found out that the hard drive is the cause. so i opened it up replaced the hard drive and closed it up, booted from the disc and crossed my fingers but it did not pick up the hard drive. i thought it might not have been installed properly, so i opened it up to check the connections to make shure they were secure and closed it back up but now it wont even boot from the disc. so dose anyone know whats wrong with it because i really don't just want throw it away if its a simple fix. please if anyone know i would greatly appreciate it.
    <Re-Titled By Host>

    There often were more than one build of Apple computer per model number designation...
    In the instance of iBook (white dualUSB) there appear to be two with number A-1007.
    And both of these were 14-inch display models.
    •iBook G3/800 14-Inch (32 VRAM - Tr) 800 MHz PowerPC 750fx (G3)
    •iBook G3/900 14-Inch (Early 2003 - Op) 900 MHz PowerPC 750fx (G3)
    •Apple iBook Specs (All iBook Technical Specs) for entire series - everymac:
    http://www.everymac.com/systems/apple/ibook/index-ibook.html
    There are a few fairly good repair guides online, some on http://iFixit.com site.
    Here's the link to the early iBook G3 series, includes color + white dualUSB.
    If your iBook is a 14-inch G3 white dualUSB model that one is there, too:
    •iBook G3 Repair guides - iFixit:
    https://www.ifixit.com/Device/iBook_G3
    Either of these may be able to run a system no later than OS X Tiger 10.4.11.
    So a system install disc set could be used to troubleshoot, install, restore &
    prepare a replacement hard drive for a new system.
    Not certain what the issues are behind your situation, there may be more than
    meets the eye. Some models of iBook were more prone to hardware problems
    and as they age, fewer opportunities to affordably repair them exist.
    Good luck in resolving the iBook G3 issues...!

  • How to make some part of front panel transparent?

    There is a property node to make a front panel completly transparent...but is there anything that only makes some part of the vi transparent like if I define a decorative block in the vi which takes 1 quardant of front panel and I have a control to make it transparent during runtime...
    And moreover the frontpanel transparent property makes the whole window transparent, is there any way to retain toolbar of window like stop, run button when front panel is transparent??

    Hi,
    Have a look at this VI (attached). To make it work you need to create an image mask as a .png (open paint, colour in the areas that you want to become invisible and save it as a .png). The VI diffentiates between white areas and black areas of the mask you create, the black areas will become transparent and the white areas will remain the same- this will be implemented on your front panel. I've included an example of a possible paint image in "mask2.png".
    You may also want to play around with the resolution of the mask created in paint, this will effect how the program works (I advise you use a lower resolution than your display- I used 500x300)
    NT: If the front panel controls disappear, go into the block diagram window and attach a false constant instead of a control. Let me know if this works
    Cheers, Tom
    Attachments:
    custom window.zip ‏107 KB

  • The device is not registered as part of iPhone Developer Program HELP! PLEASE! I WANT IT TO WORK!! I am not part of this program, how do I fixed it?

    I'm having some big issues with my iPod touch 4g. It is new and when I want to configure it, I can't because it appears this:
    "This device is not registered as part of the iPhone Developer Program. If you are member of the Program, please register your device in the iPhone Developer Program Portal at http://developer.apple.com/iphone/"
    Please I only want it to work. I am not part of the Developer Program

    I akready tried to restore it, but I cant it marks me error. Please, help me!

  • I want to design some products for resale and I want to know if I can use the included Fonts

    I want to design some products for resale and I want to know if I can use the included Photoshop Fonts and Images or do I have to pay additional licensing fees?  Very new to this and just looking for some basic information or a link to specifics.  Most of what I'm searching for brings up content for publishing and I'm really looking for information about reselling items in a product line.  For example Greeting Cards, Signs etc...  Thanks so much!

    As for fonts, you don't need to do anything as long as you don't try to sell the actual font files. In print or the screen your fine to do as you want. Most fonts include a license EULA for you to read when installing them anyway.
    As for images, that may be a different story, it will depend on the image. If there is a file that accompanies the image that states you can do as you please, that fine, but other wise, assume the image is copyrighted and require permission to use.
    Some programs provide clipart that is for public use this clicpart can be printed and sold. But as with the fonts, you can not sell the clipart files themselves.
    In the EULA that accompanies the software, it should state what can be done with any clipart or fonts that are included with the software.
    If you are still in doubt, contact the company and verify it.

  • Footer image is not showing some part of it.

    I have placed my footer image and used Tile horizontaly in the master page. It previews correctly in the browser from master page, but not from the other pages.
    But when it previews or exports with the different pages, it is not showing as it supposed to. Bottom side of the footer is cut out and shows white.
    This is where it show cutting out the some part:
    But here in the master page preview, it shows it right:

    After exporting the whole project and inspecting the css file, I found it was missing height property in the footer section. I don't know why it is messing up the css when it comes to pages other than master page.
    This is after inserting height property:
    After that, it was showing my footer how it was supposed to be.

  • I recently updated my computer to 10.6 and now I can't get my printer MX340 (canon ) to work. I have installed the new drivers both from Canon's website and from an earlier post directly from apples website. I would surely appreciate some help with this.

    I recently updated my computer to 10.6 and now I can't get my printer MX340 (canon ) to work. I have installed the new drivers both from Canon's website and from an earlier post directly from apples website. I would surely appreciate some help with this.

    Try what Terence Devlin posted in this topic:
    Terence Devlin
    Apr 14, 2015 11:21 AM
    Re: Is Iphoto gone ? i want it back!
    in response to Johannes666
    Recommended
    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

Maybe you are looking for

  • SOAP receiver adapter error using Google Search web service

    Hi all, I'm trying to connect and old 4.5b system to XI SP16 to make it receive information from external Web Services. My scenario is made up of a sender RFC adapter and a SOAP receiver which is sending the message to the Google web service (http://

  • SQL statement with union clause

    Hi, I have a scenario where i need to generate a sql statement with UNION . Eg: SELECT B.YY_ID, FROM XXXX.YY B WHERE (B.YY_TY= 'as') UNION SELECT B.YY_ID FROM XXXX.YY_ALT_NAME A, XXXX.YY B WHERE (A.YY_TY= 'zx' AND (B.YY_ID=A.YY_ID)" I tried ns1:table

  • Can't open an attachment

    I just got a nokia xl . And I receive all my mails through my phone but problem is that I can't open an attachment contain in my mails . Please help me out

  • SaveAsCSV() truncating leading zeros

    Hi We have used applet call saveAsCSV() and are experiencing the typical "leading zero" truncation since the value is being treated as numberic. I would like to know if there is any way of specifying certain fields as text other than inserting a char

  • Need help replacing a Netgear router with my old used wrt54g from another house.

    I had a WRT54G at my old house that was working great. Now the renters moved out and I got the router back. I have been having some issues with the netgear router Im using now so I would like to replace it with the Linksys. How do I do this? Do I nee