Jump to content

cosmin

Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by cosmin

  1. QUOTE(Michael_Aivaliotis @ Oct 5 2007, 10:57 PM)

    What's wrong with this picture?

    Create an XNode, use the Terms ability to create connector pane inputs, set them to required. Place the XNode to a block diagram and open the Generated Code.vi. Make a new VI and drag the Connector Pane of the Generated Code.vi to the new VI. Create the controls and connect them to tha connector pane. Save the VI and voila you have required inputs.

    cosmin

  2. QUOTE(hviewlabs @ Nov 21 2007, 02:30 AM)

    No documentation though, even in the context help for

    those top level VIs. So, Anybody has any idea what

    PackType parameter of the GetValueByPointer.xnode is?

    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).

  3. QUOTE(hviewlabs @ Nov 21 2007, 02:30 AM)

    No documentation though, even in the context help for

    those top level VIs. So, Anybody has any idea what

    PackType parameter of the GetValueByPointer.xnode is?

    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(hooovahh @ May 7 2007, 05:08 PM)

    I'm not trying to flame you but isn't rule number 1 of LabVIEW to have data flow from left to right? Maybe you were in a hurry, but I found it difficult to understand what was happening in your VI because information didn't flow.

    Also there were no comments. What is Count? is it simply the number of rows in the array? What is Count good for? What version of LabVIEW was it made with? Why is there a random constant of "0" in the middle of the while loop which isn't wired to any thing?

    Answering any of these would be greatly appriciated.

    I'd also be glad to show you where you code could be improved if you'd like.

    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

  5. QUOTE(EJW @ May 3 2007, 10:58 PM)

    Anyone know of a way to detect when a USB flash drive has been inserted?

    I was thinking of using that as a way to do automatic updates to existing programs.

    Hi,

    here is a sample which looks at usb devices connected. It uses .NET.

    cosmin

  6. QUOTE(nipon @ Apr 25 2007, 01:20 PM)

    Hi Everybody,

    I have

    Thanks,

    Nipon

    I have created labView for Call winmm.dll at function mciGetErrorStringA.

    I need to know detail in windows error massage, when i input the error code (ex. 253,560 or etc..)

    Then i runing in my code , It that show as pop-up error massage. as attached files

    Need somebody advise me...

    Thank you very much

    Nipon

    Hi,

    change the "input value" from empty constant string to control string and put 256 characters in it, to create the buffer

    cosmin

  7. Hello all..

    When you right click a text file or any other file, you will find under Properties, a tab called 'Summary'. Inside this tab,

    there are many options like Title, Subject, Author, Keywords, and Comments.

    Does anyone know ,How to Read and Write the Title, Subject, Author, Keywords, and Comments information.

    I would like to read and write them to any files.

    If you have some example vi code please share to me ,thank you very much

    Best Regards,

    Hutha, (thailand) :D

    Hi,

    maybe this is usefull for you

    http://www.codeproject.com/file/SummInfoPropSetFile.asp

    cosmin

  8. 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

    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

  9. How can I call matlab dlls in LV? Is it torture?

    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

  10. And if it's an ActiveX dll, register it and call it like an ActiveX object. The same would apply to .NET Matlab dlls, but for some reason I haven't be able to call them from LV yet.

    Saludos,

    Aitor

    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

  11. Being able to specify the time associated with a PV value would very helpful.

    I have written applications that continue to gather data (in cFP units) in the event the PC crashes. If DSC allowed me to specify the time, I'd be able to use Citadel to log my data.

    Lacking that functionality, I had to write my own version of Citadel from the ground up!

    On the other hand...

    I'm not sure how that would affect Citadel being 21-CFR-11 complient.

    Ben

    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

  12. Thanks Cosmin, that is great, it works. Now I want to tell, why I use this Sendinput, not keyboard_event send key store, that is why I was asking to disable/retore title at this forums, as I use "block input" function, sendinput can help to input keys also, that is my goal that I am looking for along, but keyboard_event send key store can't do.

    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

  13. Thanks All,

    thanks cosmin, and I have tried your enclosed vi, I open NotePad to do the test, I highlight the Execution to run the vi, as the vi executes run action, I quickly switch the active window is NotePad, but the result is fail, no any response, no character inputted at NotePad, no matter I input wscan or wVK's count, the virtual key code is from below

    Hex code,

    Key Code

    but we can see the feedback parameter would turn to 1, what is the focal behavior ?

    Hi,

    run the attached vi in highlight execution

    cosmin

    Download File:post-4089-1152982483.vi

  14. thanks rolfK, and I found msdn tells "[out] Pointer to a CURSORINFO structure that receives the information. Note that you must set CURSORINFO.cbSize to sizeof(CURSORINFO) before calling this function"

    I don't undertand well about "must set CURSORINFO.cbSize to sizeof (CURSORINFO)" what is the sizeof that I must pay attenction to ?

    and I set the cbSize to any count, labVIEW prompts error dialog box. that is my error vi. would you help to point out my error at your convenience time? thanks !

    Hi,

    inputs are wrong to the function, create the structure from docs

    cosmin

    Download File:post-4089-1152278395.vi

  15. One possibility is to create a CIN and use its CINAbort functionality. From the PDF "Using External Code in LabVIEW":

    When you abort a VI, LabVIEW calls the CINAbort routine for every reference to a code resource contained in the VI being aborted.

    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

  16. You can monitor the execution state of the vi and react if the vi goes to idle

    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

  17. Hi

    I must be missing something but I do not find the "Move" method at all for any invoke node. I am using Labview 7.1 - is it only available in higher versions? thanks in advance for any advice.

    cheers

    Dave

    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.