Jump to content

PJM_labview

Members
  • Posts

    784
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by PJM_labview

  1. Since I don't have a 'Projects' folder ('project' ?) and the 'Tools' menu is very unlike the VI palettes that can have icons added to them, what exactly is this in reference to?

    2339[/snapback]

    What it mean is that if you copy the utility in LVROOT\Project\Tunnel_Wiring_Wizard.vi ; next time you restart labview it will shows up in under your tool menu (note: LVROOT is most of the time on windows machine C:\Program Files\National Instruments\LabVIEW x.x\)

    PJM

  2. Thanks for the info. I contacted NI Belgium and this is indeed an example of functionality that cannot be used in an executable since the new default values cannot be saved to the vi because it is embedded in the exe. I have to do it using a configuration file (an ini-file).

    Don't you think the application builder should give a warning in such cases?

    Greetings,

    Manu.

    2321[/snapback]

    Check the help window (or right click on the node and click on help for....)

    For every method property the help will tell you if the method/property is available in the run time engine.

    Example for the Make Current Values Default Method

    "Make Current Values Default Method

    Inherits from VI Methods.

    Changes the defaults of all controls on the front panel to be the current values.

    The following table lists the flags for this method.

    Is settable when the VI is running No

    Requires the block diagram to be loaded No

    Is available on local LabVIEW only No

    Requires the front panel to be loaded Yes

    Must wait until user interface is idle Yes

    Is available with control VIs No

    Is available with global VIs Yes

    Is available with strict type definitions No

    Is available with polymorphic VIs No

    :!: Available in Run-Time Engine No <------------- here

    "

    PJM

  3. Hi guys,

    I'm new to this forum, but already thrilled with what I saw. I was amazed by the scripting possibilities. My question : has anyone cursed at the "relink to subVI" feature when there were many instances of the subVI that changed? Especially in big projects this can be annoying. There doen't seem to be a "relink to all" option.

    Maybe someone here can do this using scripting?

    Thanks for the ideas,

    Manu

    2217[/snapback]

    Here you go

    PJM

    Download File:post-121-1097506860.llb

  4. Suppose you want to list all files of a number of types, e.g. only image files of the types bmp, jpg and png. I would like to do it like this :

    dirlist.png

    But this does not work, you have to do it for each type seperately and then combine the different lists. I wish you could separate patterns to match with commas for example.

    Manu.

    2225[/snapback]

    Manu

    Check out OpenG.org and more specifically the OpenG Toolkit.

    You will find the following enhanced list directory SubVI.

    PJM

    post-121-1097505795.png?width=400

  5. I have a need to make a VI extremenly thin (a special dialog). When I try and resize the VI in the edit environment it does not go thinner than a certain width.  :angry:

    Do I need to do this programmatically or is there a way to remove this limitation?

    6.02 code only please  :headbang:

    2144[/snapback]

    Alex

    This is true, in edit mode you can not get as small as you want, but programmatically you can get very small. I had VI getting as small as 4x4 (this is 4 pixel by 4 pixel). I had not done this in 6.02, but I dont see why it should not work.

    PJM

  6. Hmm, interesting idea. I don't think you can invoke the clipboard with scripting but you can use some windows API. After the past you might be able to use a scripting function for re-link. I'll get right on that...

    2079[/snapback]

    There are exposed properties nodes that allow copy and pasting anything (LV objects) to the clipboard. I have used them in the past and it work fairly well.

    The attached image show where they are located or how to "recreate them" ;) .

    What I mean by recreate them, is that when you know there is a method Pnl:Select All, it does not take much guessing that there will be one call BDiag:Select All or Diag:Select All :) . Getting at it can be as simple as wiring the appropriate classe specifier to the porperty/method (and the property/method "morp" to the class and stay valid) or as complicated as regenerating the whole specifier constante class + property/method node, wire them together and set the property/method class name (all by scripting of course).

    :!: When you use these, watch out as it seem that there is no exposed scripting property for emptying the clipboard (which can be a pain).

    PJM

    post-121-1096904557.png?width=400

  7. Michael, I am astonished  :o otherwise I am starting a topic in this section

    Is this a picture of Toronto?

    My desktop background changes often, sometimes from day to day

    Edit: On this pc I don't have LV installed. For LV I have an other pc with special cards inside (arinc, synchro). And the other pc don't have network access  :headbang:  (I love my usb stick  :worship: )

    1960[/snapback]

    That's one hell of a SCARY desktop picture that you got !

    I can't imagine staring at this all day...

    PJM

  8. Well I've heard rumors of such things before...  My request then would be to add support for this feature so we can have it on the palette and don't have to cut/paste it from some other VI.  Obviously without message boards I would never be able to use this feature in my native LabVIEW environment.  How come I find myself cut/pasting the features I want in LabVIEW instead of NI just giving them to us... rrrrr.....  :angry:

    1878[/snapback]

    The official reason is that it is not yet ready (buggy ?) for release on LV7.x [other than PDA] (there was a thread about this a while back on info labview).

    Regarding how to make it accessible in your palette, this is quite easy. Customize your palette, add the VI with the comment structure then make sure to set merge VI (RMB).

    PJM

  9. Look closely, there is nothing hidden.  Check for data sources and wire directions.  I found the trick with the lightbulb, I was sure LabVIEW would choke trying to run that.... Since the VI was converted from LV4, I thought there was some error, but it's legit code.

    1816[/snapback]

    Ok I think I got it

    The way I understand it, it does the following:

    In any "case", whether the control boolean is true or false, an array is build and wired to the shift register.

    So, initially, my guess is that the boolean control is set to true, and the array is build independantly form the subvi. Also my other guess is that once the boolean control become set to false, it will be reset to true quickly after.

    Then when the boolean control is false and if previous value from the shift register is not equal to the one generated when the boolean control was true, then call the subvi with 2048 as input then again (and here lies another problem) if the boolean control is still false collect all the values from the subvi and display then to the following locals (Barrier A, Barrier B, Dipper, Spare A, Spare B and Relay) then rebuild the array with this value and wire it to the shift register.

    This seem indeed to be legit code...

    It a nightmare to understand that what's wrong with it! :)

    PJM

    Note: Now that I am re reading this, I am not so sure that I understand what's going on ... :unsure:

  10. Sorry PJM but I can't open the file. Don't know why. When I try to open it, says that I have to look for the name of this file, and so on. Could you help me??

    1716[/snapback]

    Odd, there no call to anything in that file (only labview primitive).

    What version are you running ?

    Meanwhile here is a screenshot of the block diagram.

    PJM

    post-121-1094771048.png?width=400

  11. I have a very specific need for an Express VI, basically to use my own dialog message box code instead of NI's so I can move the mouse onto the buttons, set the title, change the appearance, etc.  I can currently use my own code but that doesn't allow me to move the constants off the block diagram that are required to set the title, message and button captions (which I find very very helpful when coding to reduce clutter).  At times I resort to using the Build Text Express VI but that has obvious disadvantages (mainly making the VI hierarchy window unreadable)

    NI charges $500 for their Express VI toolkit which there is no way I'll be able to get.  Does anyone out there have it that might be willing to work with me to create one?  Or is there anyone with a service for this, ie a flat fee to work with end customer (me) to give me something useful in relatively little time, for relatively little $$$ compared to the whole blooming toolkit?

    I'm guessing not but can't hurt to ask...  Thanks...

    1695[/snapback]

    Hi

    It is indeed possible to build express VI without NI toolkit.

    Check this post: http://forums.lavausergroup.org/index.php?showtopic=376

    Read especially post #5 and #6 by Jim Kring. Also NI has a doc explaining some stuff about how express VI work. I will try to dig it up again if you need it.

    If you need more help, let me know.

    PJM

  12. Anybody know how to stop the control feature of the digital display of a knob.  I what the display without the control capability. Thanks.  :D

    1692[/snapback]

    Right Click on the Knob

    Select Visible Items > Digital Display and make sure digital display is unchecked.

    PJM

  13. Jean Pierre,

    Lately I was playing around with the OpenGoop Framework and I realised it would be usefull if we could dynamically update Strictly type VI ref num in each class (being able to keep typedef is important in this case).

    Attached is a llb that does that.

    Also, check out the following VI "Variant to Flatten String {preserve typedef}.vi", I think it could be used as a possible replacement/enhancement to the native Variant to Flatten String primitive.

    Cheer

    Philippe

    Download File:post-121-1093814922.vi

    Download File:post-121-1093814962.llb

  14. ...

    Yes but as commented in Remove Typdef From Variant there was a bug in LabVIEW 6.1 such that Variant to Flattened String did return an invalid type descriptor when used with typedefs. The VI was introduced as a workaround. Typedef information in type descriptors was introduced in LabVIEW 6.1 and this bug was a big disapointment since it did make LabVIEW Data Tools useless on typedef variant.

    ...

    1575[/snapback]

    Ah, I did not know that LV6.1 Variant to Flattened String was returning invalid type desciptor with typedef information.

    ...

    I did not dig in documentation recently but I think that this typedef information is not yet documented for type descriptors (LV7 is shipped with the same old Application note 154). LabVIEW Data Tools have never been implemented to use that typedef information in variants.  The returned type descriptor was invalid anyway.

    Now that you have made me look more closely, it seems that the typedef feature was removed in LV7 (type descriptors from Flatten to String and Variant to Flattened String don't include typedef information anymore...). That makes me wonder if that was a feature in LV6.1 or a simply a plain bug. It is from LV6.1 that typdefs are displayed in variants, wire help and that typedef conversion is indicated with a coercion dot. Internally this information is carried in data type and maybe it was just a bug in LV6.1 that made it leaked in type descriptors.... :unsure:

    Jean-Pierre

    1575[/snapback]

    I did not realized until quite recently that Variant to Flattened String was not working (read was automatically stripping typedef) with typedef in LV 7.x. I think I figure out a way to get the typedef in the type descriptor using flatten to string with expose type def turned on and doing some stripping and "padding". This is not documented anywhere as far as I know, but it seem to work well in LV7x (a quick test under 6.1 seem OK). See attached VI.

    Also, I noticed that the only way to get typedef info from controls on VIs is to used Get All Control Values {variant} methods. Every other way return type descriptors with no typedef info.

    PJM

    Download File:post-121-1093760011.vi

×
×
  • Create New...

Important Information

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