shouvik.d 33 Junior Poster

Product: Matlab, Simulink
Problem Statement: Complex feedback loops implying usage of Unit Delay Block. At certain simulation frame calculation of required values for test generation is becoming complex. Is there a way to override the Unit Delay block output without changing the model (as I am not allowed to do so) rather by using set_param. I am using cvdata/sim/cvhtml combination for my simulation. I tried extracting all the assocaited aparameter sfor Unit Delay using

get_param(gcb,'ObjectParameters');

but was not able to find a suitable parameter to use owing to lack of help information on each parameters.

Kindly help me out if this approach is possible.

shouvik.d 33 Junior Poster

There must be group policies set within your system. If you are using corporate systems then there is not much you can do about it

shouvik.d 33 Junior Poster

Hi All,

Currently I have an excel workbook which can send emails using smtp mail server on a specific trigger. The limitation I am having is the mail body is in Plain Text. Is there a way to create HTML emails via the Macro and send it across using SMTP mail servers?

If SMTP cannot send HTML content what could be an alternative to this?

shouvik.d 33 Junior Poster

Hi Mike,

It seems it cannot be done. When an application is using a bat file to run a set of DOS commands windows will use a named pipe for the CMD.exe window. Now even if you can get the handle of the window by ensuring that the PPID of the CMD.exe is the calling application's PID, you still cannot intrude in the pipe. This is the inherent characteristic of any OS. They would not allow you to hook to the handle one the process is created. So I think it is impossible to do what I was thinking of.

Correct me if I am wrong. :)

shouvik.d 33 Junior Poster

Hi Mike,

This thing wont work as the EXE i am using does not provide any output. It in turn creates a .bat file with necessary contents from the command line options provided to the EXE and then calls it. After that the batch file is deleted. So it is only through the EXE i can have the batch being run.

Hence you see a new CMD window opens by this EXE which runs the batch file content. Now I want to capture the contents of the batch run from that particular bat file.

In the above example provided by you, netstat.exe itself will provide an output. It does not call any other batch file hence the output is captured but it is not the case with me.

Let me know if you find out the solution to my problem

shouvik.d 33 Junior Poster

Hi All,

I could do the required by doing the following "<drive>:\Program Files\Microsoft Visual Studio\vb98\LINK.EXE" /EDIT /SUBSYSTEM:CONSOLE <my_app_name.exe>" .

But then whenever we open the VB Application in UI mode it shows a CMD window at the background along with the Form. So to hide it I had to do the following as well

ConsoleHandle = FindWindow("ConsoleWindowClass", App.Path & "\<my_app_name.exe>")
ShowWindow ConsoleHandle, SW_HIDE

in the Sub Main()

Now it works fine both for Console mode as well as UI mode.

shouvik.d 33 Junior Poster

Hi All,

I have a VB6 application which can work in UI as well as in CMD mode. Now when I am running it in CMD mode I need to write few line into the console after completion of the program before quitting the application. The rest of the application is working perfectly fine but I am not able to write something into the console

I tried the following but it does not work

Option Explicit
Declare Function AllocConsole Lib "kernel32" () As Long
Declare Function FreeConsole Lib "kernel32" () As Long
Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Declare Function GetStdHandle Lib "kernel32" (ByVal nStdHandle As Long) As Long
Declare Function WriteConsole Lib "kernel32" Alias "WriteConsoleA" (ByVal hConsoleOutput As Long, lpBuffer As Any, ByVal nNumberOfCharsToWrite As Long, lpNumberOfCharsWritten As Long, lpReserved As Any) As Long
Declare Function SetConsoleCtrlHandler Lib "kernel32" (ByVal HandlerRoutine As Long, ByVal Add As Long) As Long
Public Const STD_OUTPUT_HANDLE = -11&
Public hndl As Long

Sub Main()
   Dim strWord As String
   Dim cWritten As Long
   Dim successStat As Boolean
   
   On Error GoTo Hndlr
   strWord = "Hello!" & vbCrLf
    hndl = GetStdHandle(STD_OUTPUT_HANDLE)
    successStat = WriteConsole(hndl, ByVal strWord, Len(strWord), cWritten, ByVal 0&)
Hndlr:
   Debug.Print Err.Description
   Debug.Print Err.Number
   Resume Next
   
End Sub

Kindly help. I need to write the output in the same console window from where the application is invoked, not in a new window that the application would open.

shouvik.d 33 Junior Poster

Hi Eggi,

Problem Solved.....Dude you are genius :). See you around

shouvik.d 33 Junior Poster

Hi,

I am using a scheduled task that runs every night to take backup of important files. This task creates a folder in the following format

Backup_DD_MM_YY

where DD_MM_YY denotes the date when the backup was taken.

Now everytime this scheduler runs I need to remove the older directory and create a new one with current date. In order to remove the directory I tried the following but it doesn't work. for %%A in (C:\Backup*) do rmdir /s /q %%A Can somebody please help

shouvik.d 33 Junior Poster

Thanks Mike,

I'll have a try and let you know. Thanks a lot for digging it out for me :)

shouvik.d 33 Junior Poster

Does the exe open up an xterm window and just run a command in there or are we looking at a full-blown gui?

Actually this is a Windows Console application so no question of xterm. And to answer your question it is an exe which will create in runtime a batch file and call the same. I cannot call the batch separately because it gets created in runtime only when the exe is called and thereafter deleted. The exe takes care to create it with the user provided options and then call it, complete the run and then delete this batch file.

Conventionally I can redirect an output of the batch but since the creation is only with the help of that of the exe hence I cannot do the same.

shouvik.d 33 Junior Poster

Hi There,

I have a third party EXE file (on which I have no control of any modification) which invokes a new CMD window in order to execute itself. In other words it a windows console application.

Now it executes with some switches for runtime options <exe_name> /opt1 "param" /op2 All I want is if by any means I can capture the New Console output forked by this exe. Right now simple redirect as <exe_name> /opt1 "param" /op2 > File.txt cannot work.

Please help me out in order to obtain the output of the new CMD window as explained above.

shouvik.d 33 Junior Poster

HI There,

I am a user of Excel 2003. I need to open a text file via Macro and read it from the bottom one line at a time moving up with conditional match to a pattern of String. If the conditional String is found I have to read the next two lines (which I already cover while traversing up) and extract few information. Can anybody please help me with this?

shouvik.d 33 Junior Poster

As far as I know you cannot edit a portion of the frame in Windows Movie Maker. You need to use some good Video Editing Software. May be you can dirty your Hands in Blender which even though is a 3D modeling and animation software, still has some video editing features in it.

you can find it in the following link
http://download.blender.org/release/Blender2.47/blender-2.47-windows.exe

shouvik.d 33 Junior Poster

Hi All,

I have a shared excel sheet which is simultaneously used by couple of users placed in a network share. At certain instance of time I want to know who all are using the Workbook. You would say goto Tools-> Share Workbook. Instead I want to obtain the list of users via a macro and then want to send custom messages. Right now I want to give some updates specifically to the members who are using the sheet at certain point of time I have to see who are using the sheet from the Share Workbook menu and then IM them or Mail them. It becomes time consuming.

Is there a way to have a macro which can use the list of users and all the active workbooks in each of the users' desktop can receive a customized message I need to send them.

It would be of immense help if somebody can guide me through this

shouvik.d 33 Junior Poster

Hi All,

I could do this in the following manner

Workbooks.Open Model_Template
Workbooks(Master_Template).Activate
Workbooks(Master_Template).Sheets("Master_Sheet").Select
Workbooks(Master_Template).Sheets("Master_Sheet").Copy before:=Workbooks(Model_Template).Sheets("Sheet1")
Workbooks(Model_Template).Sheets("Master_Sheet").Name = New_Name
Workbooks(Model_Template).Save
Workbooks(Model_Template).Close

Master_Template is the original template
Model_Template is the new file.

I used a while loop by which I could create 1272 new Excel Workbooks with the Master_template format but data content varying. It took some 30 minutes to create and populate the new 1272 Workbooks.

shouvik.d 33 Junior Poster

Hi All,

I am need of using a excel file as a standard template and then use a list of .csv files to populate certain rows and columns of this standard template and save it with a different name so that I can always reuse the standard template and it does not get altered..

Can anybody get me a solution. I prefer to use a VBA so as to have minimal effort to get the csv data and populate the excel.

Please help me.

shouvik.d 33 Junior Poster

What was the error actually. This is a .m script and better if you post the error message.

shouvik.d 33 Junior Poster

The table design and relationship is not frozen as of till now. I thought it would be better to actually form a schema first and then go ahead designing the tables, keys and the respective relationships.

For this only I need some help.

shouvik.d 33 Junior Poster

Hi All,

I am trying to develop an application which would use a combo box to obtain a set of records from a database table. Now on the count of number of records that are available in the table I need to populate a JPanel say Parent with another JPanel say Child which has a set of swing controls viz. checkbox, label and a TextField. The number of occurrences of this child JPanel should be equivalent to the number of records in the table.

I would also like to refresh (repaint) the Parent JPanel with newer numbers of child JPanels once somebody selects another table name from the combo box.

Can somebody help me out with this implementation

shouvik.d 33 Junior Poster

Hi All,

We have many test artifacts and each unit is known as Unit Under Test (UUT). Each UUT is unique entity so it can be considered as a Primary Key.

Also there are various defect categories (viz. CAT-I,CAT-II). Moreover each Category can be broken down into exact defect name. so CAT-I would have a table of its own having the IDs for each of the exact defect. Similarly for CAT-II


Now each UUT can have multiple defects associated with it. e.g. UUT1 has a defect in CAT-I and two defects from CAT-II.

Now even if I have a foreign key I am not able to associate multiple defects to one UUT in form of a table. Can anyone suggest a good schema so that I can be able to associate a UUT to multiple defects.

I want to have the facility of bi-directional search like...I should be able to search what are the defects and what category in a UUT. Conversely I should also be able to find a defect exists in which UUTs.

Kindly guide me on this aspect. I had thought of a junction table with a many-to-many relationship but still I am not able to associate a single UUT to multiple Categories and the defect names inside each category.

I hope I could explain things properly.

shouvik.d 33 Junior Poster

As a quickfix solution OpenLM has immensely helped me.It is a great License Manager with an additional feather on its cap being under GNU GPL.It has provided great details for each user who hooks up to the license server even with report creation and usage metrics.

But I would still like to get inputs for the question that had initiated this thread. Please let me know some architecture or design that can help me achieve the solution I proposed earlier.

shouvik.d 33 Junior Poster

Also what is looks to me like is that only if FlexLM is already installed I would be able to use this as an Optimizer

shouvik.d 33 Junior Poster

I am always getting this error

Error getting status: Invalid returned data from license server system. (-12,16)

shouvik.d 33 Junior Poster

I definitely could use the solution from openlm had been having the administrative access of the License Server. I am just a user of the license server and in no way can have any installation done as it is an Organization Wide server.

shouvik.d 33 Junior Poster

Hi,

We, in our office use a remote Matlab License server running FlexLM license manager. Since we have very few floating licenses we end up asking to release the license from the fellow engineers many times a day.This creates confusion as we are not knowing who is actually using the license.
To automate this I plan to make a simple application wherein I'll monitor the connection to that particular matlab server and see which user has actually hooked up a license if a socket to that server:port becomes alive. Then I would start broadcasting to the rest of the users that this user is using the License.
This can be achieved my making a service that would feed a frontend application with the broadcast details which would let people actually know who is using the license. It is a simple License viewer.
Since I don't have administrative access to the license server (it is organization wide server) so I just can monitor connections from my system or from a group of users who actually install the service I am planning to make.

My only concern now is since I am to use broadcast mode for letting others know I have hooked up a license I would be in trouble with network bandwidth.

Does anybody have a better architecture to prevent the broadcast and use some other tricky method.

shouvik.d 33 Junior Poster

hope this link throws some more light on the running topic. U can download this book for free
http://www.pdfchm.com/book/google-analytics-8159/28147/

the cover page of the book has been attached. I could not attach the whole book because of it's massive size (12MB).

shouvik.d 33 Junior Poster

Follow this link to know more about us :)

http://www.networksolutions.com/whois/results.jsp?domain=daniweb.com

See the attachment for the location info.

shouvik.d 33 Junior Poster

yes. you are correct. actually it would be a pseudorandom number generation on the number of tracks

shouvik.d 33 Junior Poster

When i had webroot spy sweeper, and trend micro antivirus installed on my computer it started having connection errors. I cant ping up to any games. any idea of how i can fix this, other then getting rid of my new antivirus programs?

If I am not wrong the problems started after you have installed the Trend Micro Antivirus aka PC Cillin. Whatever version be it it is known to Block ICMP requests (both outbound and inbounds) and that is the sole reason that you are not able to ping. You uncheck this ICMP blocking and put it in exception list of the AV.
I hope things would work fine henceforth.

shouvik.d 33 Junior Poster

OK Steve,
Just try downloading fresh drivers from NVidia Site and give it a try. If at all it works you might be exempted from the hassle of changing the Graphics Adapter/Motherboard. In turn you can ask for more Info from Gatewey's Solo care center.
good luck:)

shouvik.d 33 Junior Poster

please connect this HDD in some other laptop and see if it works in case it does then the IDE controller of your Laptop is out! you either need to replace it or try your luck by updating the drivers.
ALL THE BEST

shouvik.d 33 Junior Poster

Take your Time. Now if the Graphics Display is Nvidia one more good thing would be to go an check in NVidia site for this kind of problem. and in GeForce 2 which model?

shouvik.d 33 Junior Poster

Sorry for disturbing you both.

Hey Pal! No issues. Just stick around:) We need your help too

shouvik.d 33 Junior Poster

Could you please send a screenshot of Booting Linux. I mean before all graphics turn up. If it is not difficult for u you can just send it over like yesterday.

shouvik.d 33 Junior Poster

do one thing Steve. Go to Start-> Run. type sysdm.cpl and go to hardware tab. Then device Manager. There all your devices will be listed. Go to Display Adapters and check out if any Yellow Exclamtion/Interrogation mark appears.

If not then couble click on it and then give update drivers. You must have the Driver CDs with you. Just navigate to that path and let it install.

shouvik.d 33 Junior Poster

Can I add any Virtual Hard Disks to already existing vmdk files. If so then part of my problem gets solved.

shouvik.d 33 Junior Poster

Could anybody please tell if we can Edit or Post messages in MSDN forum using opera browser.

shouvik.d 33 Junior Poster

yes...it has be conveyed to Steve. :) BTW that was not the major issue there so it is lower in my priority chart. Thanks for your help.

shouvik.d 33 Junior Poster

but then I'm using IE7 over XP Prof SP2. I'm not getting the same pop up which you are getting what could be the reasons

shouvik.d 33 Junior Poster

oh fine. In India we don't have such interface. at the recievers end how does it work? I mean here we have something called as Cable Internet. It used the same cable (CoAxial with BNC Connector) which comes as a feed to Television from the supplier but from Supplier end we have Optic Fiber connections running to ISP so the same cable can be used for high speed internet. they would just gve u an IP.

you can use even a set top box and use your TV to surf net. Are u speaking something of same kind?

shouvik.d 33 Junior Poster

which browser are you using?

shouvik.d 33 Junior Poster

thanks for hanging in and helping

It is my pleasure sir. I would be most happy once your problem gets solved.

Wish you good luck

shouvik.d 33 Junior Poster

BTW I assume by page rank you are assuming Google's Page Rank

Increasing Page rank is not a pie on the plate. there are many parameters on which page ranks are calculated.
You can have some quality links on your page and also you should have higher hits on your page so that the page rank increases.

In short and cute
Google is mysterious :D

shouvik.d 33 Junior Poster

visit http://xinureturns.com
It will give you more info about your page

shouvik.d 33 Junior Poster

hi Steve,
Linux Live Router must be Router OS.
if you think you can invest anymore time with this linux thing then you can download this
http://www.distromania.com/distro_info.php?distro=645
Actually Live CD means you need not do anykind of installation. The kernel spaws into your main memory and takes some temporary space in your Harddisk. initializes all hardware. So it is like loading the OS from the CD instead of Harddisk.

AFAIK Ubuntu 7.04 is fully a live CD. I think you need to do some BIOS Settings in order to boot it from CD.

The above link i gave u is also for a Live CD of Debian Linux. Now I really feel this Linux thing is dragging you a li'l bit. But if you are an enthusiast you might learn many things.

shouvik.d 33 Junior Poster

really I think I'm giving you a hard time. See anywhere on the CD if it is written as LiveCd. if so you just need to pop it in your CD Drive and press f12 (mostly works else f1) while boot up and boot from CD. I still have a feeling that your Laptop display is working fine. the problem is with windows.

shouvik.d 33 Junior Poster

U mean you have external CD Drive. If so try booting from USB. I think you would have it in your Boot Options once you pluggin.

But with your Internal CD Drive too u just need to keep your CD in And Boot

shouvik.d 33 Junior Poster

u need not install. U just need to boot up from the CD. That's y I said there is no need to disturb your installation of Windows.

shouvik.d 33 Junior Poster

good one arjunsasidharan
mine too is a bit same
First-year students at Medical School were receiving their first anatomy class with a real dead human body. They all gathered around the surgery table with the body covered with a white sheet.

The professor started the class by telling them, "In medicine, it is necessary to have 2 important qualities as a doctor: The first is that you not be disgusted by anything involving the human body."

For an example, the Professor pulled back the sheet, stuck his finger in the butt of the corpse, withdrew it and stuck it in his mouth. "Go ahead and do the same thing," he told his students.

The students freaked out, hesitated for several minutes, but eventually took turns sticking a finger in the butt of the dead body and licking on it.

When everyone finished, the Professor looked at them and said, "The second most important quality is observation. I stuck in my middle finger and licked on my index finger..... Now learn to pay attention..."