Eval commands and Matlab num2str
I searched all the 12 pages of this forum and this solution is not found. If this is a repeat, I am sincerely sorry.
I try to use the MathScript matlab Module "eval" and 'num2str' orders. For example:
II = 01:10;
eval (['w' num2str (ii) ' = ii ;']);])
The problem is that 1) it says that it will slow down the program (I get only) and 2) it does not seem to run the script. I'm looking for some 'w' matrices/vectors/scalars as output.
In addition, as part of the script that I have other variables that I would use as output. When I try to add them, labview stipulates that: "you must set this variable in the script and then set its data type. I get the output variable: right click--> Add out--> click variable. Even variables that are not used in the script I want to pass give the same error.
input variables x = y z
II = 1:x
eval (['y' num2str (ii) ' = ii ;']);])
output (by above method) variables will show all three, but even with just passing through "z" I get this same error.
This error does not appear when I do basic math in the node and pass the unused variables.
Ideas, suggestions, solutions would be appreciated. If necessary I can post some of my code; However, I gave the relevant information above.
Tags: NI Products
Anyone know why there is a lag in the absolute levels of the results of the function in LabVIEW and Matlab FFT?
See the VI attached for an example of my code to LV.
Also attached is the plot generated in Matlab, which seems to be compensated by ~ 37dB.
This was generated by using the command "plot (10 * log10 (abs (fft (x))))", where x is the same as in the VI input array.
Thank you very much
I see you are using the VI of spectrum FFT which returns a unique range of face. To convert a transformation both sides (IE FFT) in one spectrum sided with RMS units there is a standardization of sqrt (2) / n, where N is the number of points in x (t). You can prémultiplier your x (t) by N/sqrt (2) and get the same results as Matlab. Or, you can use the FFT.vi so you compare transform to transform instead of spectrum to transform.
I can't erase useless files more pressing option, command, and then J. Help, please. Thank you
option, command, and then J is not listed as a shortcut KB
My TB version 31.1.0 and 31.1.2 drop-down menu commands and commands "right button" very slow... All other menu programs bars will work perfectly. Tried disabling McAfee, no diff. TB collects e-mails, wrote e-mails to a normal speed without problem. Control S, V, P, etc work but slow... what to do?
To diagnose problems with Thunderbird, try one of the following:
- Restart Thunderbird with disabled modules (Thunderbird Safe Mode). On the Help menu, click "restart with disabled modules. If Thunderbird works as usual, there is an add-on or theme interfere with normal operations. You will need to reactivate the modules one at a time until you locate the offender.
- Restart the operating system in safe mode with network. This loads only the basics needed to start your computer while allowing Internet access. Click on your operating system for instructions on how to start in safe mode: Windows 8, Windows 7, Windows Vista, Windows XP, OSX
- If the safe mode for the operating system to resolve the problem, there are other software on your computer that is causing problems. The possibilities include but not limited to: AV scanning, virus/malware, background downloads such as updates of the program.
does anyone have experience with the new MacBook (2015/2016) and MATLAB?
I am currently using the MacBook Pro now after 6 years I want to something new, but I'm quite bad if I have to buy Air or the new one (1.3 GHz dual-core Intel Core m7, Turbo Boost up to 3.1 GHz, 8 GB memory SDRAM 1866 MHz LPDDR3, 512 GB PCIe-based embedded flash storage Intel HD Graphics 515).
I am a student of neuroscience so I use matlab x times per week as well as spss, otherwise its all the usual stuff (office, senseless surfing the internet, average of much netflix etc.). I will still use my Pro, with a new hard drive, but carrying 2kg of Mac around campus is horrible.
I regret the new 12 '' MacBook?
See you soon
I use the new Macbook and Igor Pro that is similar in the CPU usage and data processing capabilities. I also have a 15 inch MB Pro, which is a pain to lug around... you will be happy with the new Macbook and don't suffer from the "slower" processor if only using MATLAB.
One thing to keep in mind is that there are only two hearts, then if you don't have any parallel treatment (whether through Matlab or other calculations) they will be slower. If you do not I recommend the Macbook.
This happened to me twice. While I was relax play skirmish Command and Conquer 3, computer laptop turns off suddenly. I was running an external power supply and the battery was full. What is even more strange, it was impossible to next turn to the until I removed the battery and plugged in.
I bought this game around March and was able to beat the 3 campaigns without these attractions.
I suspect that this may be caused by overheating, because after the laptop is pretty hot. What do you think? I bought it in January.
In my Office I occasionally removed the fan and radiator vacuum, there accumulates a lot of dust sometimes. It is not easy in the case of laptops. Any suggestions? See you soon.
You should do a bios update, because I had a similar problem with my A100 and after updating the bios to the version the most recent (5.60) I had no problem more. Maybe it helps.
The other thing is, if you have a ventilation system which is clobbed with dust, then you should take a container with compressed air (you can get it in every electronic market/store) and gently lead some air to breath through the ventilation holes. (like 2 seconds. Wait, then wait 2 seconds and so on; just make short sounds :))
Then, ventilation must be clear.
Otherwise bring your machine to a service partner for a checkup of material because some loose cables inside the machine could probably be a reason that the machine feeds not correctly on...
I work with a Council of PCI6251, driven by an executable labview.
I get measurements from several sensors (pressure, temperature, etc.) which are read by the executable of labview.
I would like to know if it is possible to send these Matlab measurements at the same time.
I mean: is the PCI6251 card can send data to Labview and Matlab at the same time of acquisition?
Or I need to install a second PCI card for that?
(Labview and Matlab are installed on the same PC now)
If you want to transfer data from LabVIEW in MATLAB, you have to use ActiveX connection between 2 software or to add the node to MATLAB in you program LabVIEW (see http://digital.ni.com/public.nsf/allkb/2F8ED0F588E06BE1862565A90066E9BA?OpenDocument)
Another solution is to use the of MathWorks Data Acquisition Toolbox, because the card PCI-6251 is supported by this Toolbox (http://www.mathworks.fr/products/daq/supportedio14005.html)
But here you have a LV executable so if you can't change it you will not be able to use your exe and a Matlab Script at the same time, if you need another PCI card.
I control my physical robot with labview and my rio. I also have a matlab (m.file) code that uses it the Robotics Toolbox in Matlab. I would like to add this m.file to my labview program. Can I create a matlab script in the program labview and matlab code inside and deploy code to myrio? It will work in this case?
AFAIK, the nodes in script call script software MATLAB server to run scripts written in MATLAB language syntax. But I don't know about adding my rio to the loop.
Thanks for the reply.
I also later get to know that this can be done by establishing communication between Matlab and myrio wifi.
Hello, I want to interface LabVIEW with MATLAB using the TCP/IP protocol for data transfer. Can anyone, please give me an instruction step by step how to do this? If not, can point out you where I can get them? Thank you.
TCP/IP is a generic protocol then you should easily be able to build enough interfaces TCP/IP for your LabVIEW and Matlab code and data transfer on ASCII or variants, etc., depending on what kind of data you are trying to transfer. I'm not too familiar with Matlab, but on the end of LabVIEW, there are a few examples of server and client very good TCP/IP provided with LabVIEW.
Another option you may want to, and the reason why I answer it is that I did recently a project through which we took some legacy code MATLAB which we wanted to transpose into LabVIEW, so that we can automate then completely a test system that we use TestStand. A big part of it, we have been able to derive equivalent LabVIEW, but some functions where LabVIEW does not have an equivalent appropriate, or where it was simply more effective, simply copy us and paste Matlab code in any event in the first instance MathScript nodes (not dependant on Matlab) or Matlab script nodes (which will return if all goes well at a later date to transpose in full) LabVIEW for that is no longer dependent on a Matlab license).
In both cases, the facility to do this was very impressive, and we were able to wrap huge amounts of code Matlab LabVIEW with very few problems. As an idea, have you considered your functionality of Matlab of packaging in this way and keeping all the customer TCP/IP and comms server in LabVIEW?
Note: If you have not found it pick up the palette "Matlab Script.
There's this game: Command and Conquer Zero Hour
He used to work on windows XP but now on windows 7, it does not work I do not know why...?
This is the same version that worked on XP...
I FOUND THIS POSTED BY SOME GENIUS CALLED DARKRAJIN AND IT WORKS ON THE GENERALS AND THE GENERALS ZERO HOUR
This I found on another page and thought I'd share it here as long as it worked for me.
I have a core i5 laptop running windows 7 Home premium 64-bit with an ATI graphics card and I had exactly the same problems to make C & C Generals and zero hour to work.
Good news - just managed managed to make it work, and it IS Windows 7 that causes the problem, specifically, it is to do with permissions to access the folders - Windows 7 blocks access to the folders that uses General to run.
The way I fixed it was:
In 'My Documents' (usually to the C:\users\YOURNAME\documents), there should be a folder named "Command and Conquer Generals data" or "Command and Conquer Generals Zero Hour data", which was put there when you installed the game. You must create a text file in Notepad, and then save it in that folder. However, you need to click on ' Save as ' and change the drop-down list box as text (.txt) file type to "all files". Then save the file as "options.ini."
Before you register, paste this text into the file to start:
Anti-aliasing = 1
BuildingOcclusion = yes
DynamicLOD = no
ExtraAnimations = yes
GameSpyIPAddress = 0.0.0.0
Gamma = 50
IPAddress = 0.0.0.0
IdealStaticGameLOD = high
LanguageFilter = true
MaxParticleCount = 5000
MusicVolume = 55
Resolution = 1024 768
Retaliation = yes
SFX3DVolume = 79
SFXVolume = 71
ScrollFactor = 50
SendDelay = no
ShowSoftWaterEdge = yes
ShowTrees = yes
StaticGameLOD = custom
TextureReduction = 0
UseAlternateMouse = no
UseCloudMap = yes
UseDoubleClickAttackMove = no
UseLightMap = yes
UseShadowDecals = yes
UseShadowVolumes = yes
VoiceVolume = 100
It's just how the game remembers what options you chose (the music volume, brightness and others) and you can change them once the game is running using the menu options.
Now the bits of the key - first, make sure you have full read/write permissions for the folder Command and Conquer Generals data: to do this right click on the file, then properties then the Security tab and change the permissions for all users. It could also be useful in making sure that no file is 'Read only' in this folder.
Change the compatibility mode of the game by right-clicking on the game in the start menu, click Properties, click the Compatibility tab. I used the "Change settings for all users" button down and changed to Windows XP (SP3), as well as to check the "run as Administrator box".
Hey Presto! It worked, demystify the myth according to which C & C Generals will not work on 64 bit systems (as some people have said). In all honesty, I have not tried online multiplayer yet, a few skirmishes.
Original title: Hello, I am trying to get my command and conquer Generals game to play, but he won't play I am running windows 7 ultimate.
programs have problems with windows 7
Thank you for visiting the Microsoft answers community.
I found a thread on the Forum to conquer and control that well that is not the exact error you receive, is very similar in nature. After reading the steps found that these should be followed by you as well as to start troubleshooting.
Hope this helps
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think.
I am currently trying to install Command and Conquer: red alert on my computer, which is running Windows 7. I have scoured the internet for answers and found the following two sites which, although not specifically designed to Windows 7, I thought may help: http://www.ehow.com/how_4852443_conquer-red-alert-windows-xp.html and http://www.ntcompatible.com/compatdb/details/command_and_conquer_red_alert_windows.html. From the second link, I downloaded the compatibility tools kit which, I suppose, has allowed me to get to step 10 on the first link.
Which means that I did everything up to actually be able to install the game. When I try to install the game I get the following error: "the version of this file is not compatible with the version of Windows you are using. Check your computer's system information to see if you need a x 86 (32 bit) or x 64 (64-bit) version of the program and then contact the software publisher. "I looked at the system information and Windows 7 is a 64-bit program (which many of you probably already know, I'm not very tech savy). In any case, I wonder if there is a way in which I can get this Windows 95 (32 bit of sense game I guess) to run on Windows 7. Any help is appreciated thank you.
Command and Conquer: red alert is not at all compatible with windows 7. Red Alert 3 is good.
Hello! I tried to install Command and Conquer on my new computer that is running Windows 7, but it not even will let me install it, much less play. I insert the disc, click on 'Install Red Alert' and it gives me a progress bar indicating "Preparing Install Wizard" then the page install red alert rises, but a windows message said "this game is intended to be run from Windows 95." Whethee I click the X or 'OK' it just cancel the whole process.
I searched the database "Help and Support" (from the start menu of windows 7) "Installation old games. I clikced on the result "make older programs run in this version of windows" from there, I clicked on the link to open the document "program Compatability Troubleshooter." The program I want to run (red alert) did not appear, so I clicked "unregistered". It prompted me to enter the location of the file, so I typed in the location "" E:\setup95\SETUP. "» EXE"was from there, I clicked on the"Try recommended settings"as my troubleshooting option. He gave me the "Compatibility of the test settings" page, so I clicked on the button "Start the program" (at this point, the default compatibility selection is Windows XP). From there on, a 'user account control' shield appears, so I type my user name and password. The same thing happens as before: preparing to install the shield, and then cancel it. So from there I click 'next' on the compatibility of the program window. He said "Troubleshooting is complete, is solved the problem? I say, "No test using different settings." This gives 4 options to select, and one applies, so I will select "the program worked in earlier versions of windows but won't install or run now." Then it takes me to a list where I can choose windows 95 and one host of others. I selcet Windows 95 and click Next. I was excited, but exactly the same thing happened as when I tried with the XP settings applied. I give myself a user account control screen, I type the name and the password, but the same thing happens. 'Windows 6.1 is running. It is a single product from windows 95. "And then I have to close it. Any suggestions?
What version of Command and Conquer you trying to install?
Follow the link to the Windows 7 Compatibility Center that provides information on the different versions of the game.
You can try to copy the configuration file for the game on your computer and so it works in compatibility mode and check if that helps. Execution of convenience store compatibility is just a workaround solution, if this does not help, you might need go to the new version of the game.
You can also contact the Publisher of the game and check if they can help you in the installation.
Hope this information is useful.
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think.
Install the game itself works fine, but when I try to download the patch I get this error stating: "failure Naming or remove file C:/Program Files (x 86) \EA Games\ command and Conquer Generals\English.big" does anyone know how can I fix? I want to because I want to install zero hour as well and run mods.Thank you
The question you have, are related to the game and should be better in the EA forums, I suggest that you post your question on the EA forums. You can check out the link below to ask your question:
Irfan H, Engineer Support Microsoft Answers.
Original title: does not load in entriely
I command and conquer the first decade on my computer, so about 4 days ago. If the disk loads up in the game selection menu, I click on red alert 2 with the file of the revenge of yuri. My computer screen everything turns black and acts as his charge, when all the brough sudden im back to the selection menu... help?
· What operating system do you use?
· Were you able to play forward on the system?
Try the game CD in another computer and check if you are able to play the game or not.
If you use Windows 7, then the game is not compatible. Click on the link below.
The game is not compatible with Windows Vista.
I suggest you to uninstall the game and reinstall in compatibility mode and check if you're able to play the game or not. Follow the steps mentioned in the articles given below to uninstall the game from the system and install compatibility mode.
Uninstall or change a program
Make older programs in this version of Windows
Thanks and regards.
Microsoft Answers Support Engineer.
Visit our Microsoft answers feedback Forum and let us know what you think.
Maybe you are looking for
Hello A little bit ago, I experienced a few problems with my Satellite Pro L20. After he brought to life, I found out that the USB ports no longer work. Things I've tried so far: Reinstall the chipset driversUpdate the BIOS.Ensure USB is enabled in B
Here's my Situation: I have a Toshiba Satellite L505D-s5695 laptop, and I had to put a new hard drive in it, but not before I have copied files on an external drive recovery partition. So I have no recovery disks and no original hard drive.For this r
Hello When I open certain video games that have been made prior to Windows Vista (it seems that way), the video game will open, but there are black borders on the sides of my screen, and it is really hard to see what is happening in the game. On my o
Hi people, to support I have XP and WMP 11. I love working with WMP very much but I have a big problem with the creation of playlists. First, he must know that. If I make a playlist of different artists like this and sync it to my MP3 player, the pla
I am running windows XP and trying to install MS Office 2010, the error came that the installation could not be completed because I had no access to this folder. When I looked in the folder through "my computer", it gives me the error message abov