Jump to content

cosmin

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by cosmin

  1. Hi, just a work I've done few years back, toolkit for power systems simulation. All elements are Xnodes. Cosmin
  2. QUOTE(Michael_Aivaliotis @ Oct 5 2007, 10:57 PM)
  3. QUOTE(hviewlabs @ Nov 21 2007, 02:30 AM) I guess the PackType parameter is refering to the member aligment (how the structures are packed into memory, 1byte, 2, 4, 8 or 16 bytes).
  4. QUOTE(hviewlabs @ Nov 21 2007, 02:30 AM) I guess the PackType parameter is refering to the member aligment (how the structures are packed into memory, 1byte, 2, 4, 8 or 16 bytes).
  5. QUOTE(hooovahh @ May 7 2007, 05:08 PM) Hi, the good thing that comes with these forums is to get started in solving something that you get stuck in, not to expect someone to spend his time to fully solve your problems. If you looked in the block diagram smartly, you could figure out that "count" shows how many usb devices exists, so testing it is usefull to see if something changed in the system (so the rest of the code can be placed in some case structure). If you want to know more, please read msdn. cosmin
  6. QUOTE(EJW @ May 3 2007, 10:58 PM) Hi, here is a sample which looks at usb devices connected. It uses .NET. cosmin
  7. QUOTE(nipon @ Apr 25 2007, 01:20 PM) Hi, change the "input value" from empty constant string to control string and put 256 characters in it, to create the buffer cosmin
  8. QUOTE(victorpiper @ Mar 16 2007, 07:21 PM) hi, just count the number of bytes from the Input structure http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputstructures/input.asp' target="_blank">http://msdn.microsoft.com/library/default....tures/input.asp cosmin
  9. Hi, maybe this is usefull for you http://www.codeproject.com/file/SummInfoPropSetFile.asp cosmin
  10. hi, here is the 7.1 version, the dll and vi are different from the 8.2 ver because of the __int64 var cosmin Download File:post-4089-1164628593.zip
  11. hi, see if the dll and vi works for you cosmin Download File:post-4089-1164553243.zip
  12. Hi, i'm just posting the easier way to do "class by reference" example, just because nobody postit yet cosmin ooops Download File:post-4089-1158784523.zip
  13. hi, actually the issue with mclInitializeApplication and mclTerminateApplication is not a bug. Mathworks web site says that mclInitializeApplication must be called only once per application. So in our case that application is Labview.exe. In the wrapper dll it must be created an init function and close function, to call only once mclInitializeApplication and mclTerminateApplication cosmin
  14. Hi, I've taken a little of my time to put something together, so you can get started. Look in the attachment for VI who use magic function from Matlab. mymagic.dll was created with matlab compiler, and Lmagic.dll is a wrapper for calling the magic function in Labview. Actually the magic.m is an example in Matlab help about how to create shared libraries with Matlab compiler. P.S. the test.vi has a bug in it (I do not have time to look deeper), it works only once. It seems that the mclTerminateApplication function does not terminate de mclapp or is something else. Look in the Mathworks docs for some more info. You have to exit labview for the mclInitializeApplication to work again. cosmin Download File:post-4089-1156256245.zip
  15. Hello, i don't think you can call functions from matlab built dll directly in labview. You must create a wrapper dll, which initialize the mxArray's. cosmin
  16. Hi Ben, as i said, you can log data with custom timestamp in LabVIEW DSC (or lookout with the logger object), I do not see why you needed to create a "new citadel". The only thing way anyone need custom timestamp on PSV is for network psp clients (I got around that by creating timestamps SV). I guess the custom timestamp is not implemented yet for security reasons, as in Lookout you got a special object for logging with custom timestamp. What if you enable logging when declaring SV's and is something wrong with the server who publish them (exp., at one time, the timestamp goes one hour forward and goes back next time)? on thousands of SV you will got thousands of "back in time" alarms and you could get a corrupted citadel and a huge memory usage increase because of alarm logging. Thats why Lookout logs data with computer timestamp. So, you have to do programmed logging with custom timestamp (and make sure that back in time does not occur). cosmin
  17. just remember to send 2 flags for every key pressed (0 and KEYUP) and index the array to pass the pointer to every element from the array not the pointer to arrat itself cosmin
  18. Hi, run the attached vi in highlight execution cosmin Download File:post-4089-1152982483.vi
  19. Hi, work from exp below, your vi is a little messyDownload File:post-4089-1152812598.vi cosmin
  20. Hi, inputs are wrong to the function, create the structure from docs cosmin Download File:post-4089-1152278395.vi
  21. Hi, actually I was talking about the abort that takes place when a user stop a process from services, none of the events works for me (exit, exit?) not even CINAbort . cosmin
  22. I just asked if exist a simple method of detecting abort, if you got a VI that works as process in windows, when you stop the process or windows shutdown, the vi is aborted and any cleanup does not occur. so I had to do cleanup somewhere else and monitoring the state of VI at rapidly to do the cleanup before complete shutdown. cosmin
  23. Hi, does anyone know how to detect if a VI is stopped througth "abort"? cosmin
  24. The "Move" apears as a method for a "Terminal" reference for a control. We get some new fine tools for Labview 8, but... how can anyone create a shared variable with scripting, in a BD? the New control VI ask for "style". Can anyone post the "styles" for Labview 8, or where are located in the Labview folders? If the Labview 8 is still with the scripting locked, the "vi object class" probably does not show everything.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.