Jump to content

Jubilee

Members
  • Posts

    20
  • Joined

  • Last visited

LabVIEW Information

  • Version
    LabVIEW 2010
  • Since
    2004

Jubilee's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. The link is cool since it handles many users which I totally forgot. I guess I'll work with it along LVM files. However, I still don't get TDMS/Variant enough and wish I could use a single binary file like TDMS to save my entire data (both scans and parameters). Thanks Yair.
  2. Hi Tom, It is good to know that TDMS properties can't contain sub arrays or clusters. However, in my case I tried to convert a cluster of simple booleans, strings and doubles (Variant seems to have a problem even with paths). Saving a cluster into an ini/xml/LVM file is so easy yet I don't want to use any text based file and TDMS makes it hard both since it works with Variants and since it can't handle sub arrays/clusters. After some more testing I think I miss understood some blocks from OpenG. The VData array of values behaves differently than I expected. Is there a way to use LVM files, for example, yet making them password protected? I simply don't want the user to be able to see/change the parameters files by hand. I want to save the last state of the control for the next time I run the program. I could have updated the control with the new values and turned them to be default yet since the program runs from an install those settings won't be saved for the next run, thus, I need to save them in a file outside of the installation. Dror.
  3. Hi, the legacy code I'm working on used to have lots of wires running wild between a control reference from the front panel to what ever logic in the BD or just in order to be saved into an xml file. I'm trying to separate my GUI layer and my logic layer by using a class control that holds the current state allowing the logic to change it and for the GUI to update from it (a GUI change sends a command to the logic that changes the control from where the GUI updates. However, now that I want to save/load my control state from a TDMS file I found that it is not as easy as it once was with the xml files. I turned to the OpenG TDMS blocks which helped a lot yet it appears I can't enter a data type outside of the Variant limits and cast it back according to the cluster I have. In any case it turned out to be much harder than I thought it should be. Moreover, it is frustrating that I can see a Variant indicator with the data I want and can parse yet with no option to correctly flatten it into string. Am I missing something? Do you guys know of an elegant way to save a cluster into a TDMS file and then load it's values back into the vi? P.S. - I attached a jpg with some initial ways I took to solve this issue. Thanks in advance, Dror.
  4. HeyBen, I stopped fallowing this thread that I myself opened and missed your greatpost. Since I posted it I came across a related "bug". For some unknownreason my app hangs for a few seconds from time to time and I guess it isbecause some big while loops work simultaneously and prevent the user eventfrom working instantaneously. Setting each loop on a different peak time might work yet giving each adifferent thread won't help me much I guess, moreover since there are more thana few of those big while loops. After searching a bit around I came to think that the best way to handle userevents is by pausing any other background action until this first priorityevent is dealt with (I'm using the UI Framework). I'll be leaving the threads handling for LV to handle in most cases. Thanks again you all, I finally started enjoying working on LV. D.
  5. Thanks LogMAN. I guess XNodes are a bit like projects or llbs since I keep getting an error trying to add one to the palette. Adding vi works just fine, however, it adds it's content monolitically and not like when I add a while loop which is resizable dynamically. If I'll find a way to add an object from a project or a XNode into the palette I'll post back and let you know. As for the license, I guess that means I can start using OpenG Builder (LGPL) as my app builder. And last but not least, the JKI RCF Bundle Wire works just as I expected it to be. I love it Now I'm going to study the vi tester and how to creat automatic tests, choose the proper design framework which is both testable and flexible and see if GOOP can help me with those tasks (and if it is free at all). Thanks again for all the help LogMAN and crossrulz.
  6. Hi, I want to build a commercial product with the OpenG tool which is LGPL licensed. Does LGPL mean that I can use the builder while I won't have to make my own code open? Is it the best free builder toolbox available? Thanks.
  7. Besides questions 2 and 4 I still have some questions regarding question 3: Under the user.lib library in labview I simply added vis with the code I wanted to use from the palette or simply a vi I wanted to use. I then went to Tools->Advanced->Edit Palette Settings and saved the changes. All went great till now and I didn't have to use Vimp build palette. However, I wonder, how can I add a vi from a class or a ctrl into the palette? Should I add the entire project into the user.lib? Moreover, I added the entire library of an xnode into the user.lib yet once I try to use it from the palette I the control file and the xnode file are missing.
  8. Thanks Crossrulz! It is indeed a toolkit and your directions for (3) went smoothly. Customizing pallets along scripting makes the coding faster and bug free since I can observe a coding style among my team and as a result have more time spent on design and reading LV blogs. Cool. Now that 1 and 3 are solved how about questions 2 and 4?
  9. 1. What are the structures that seem to minimize the code in this picture I saw? What are those arrows instead of simple wires? 2. I want to use some code from examples I found inside a commercial product. How do I know if it is ok to use it freely without even having to turn my code into open source? The code I want to use it: https://decibel.ni.c.../docs/DOC-15014 https://decibel.ni.c...ator-in-labview https://decibel.ni.c...t/docs/DOC-2401 https://decibel.ni.c...d-or-ipod-touch other community examples JKI's RCF free with no limitations? 3. How do I add functions to the function's pallet user library? For example, I want to add a vi I frequently use of a decorative while loop that I want to use. Is this the way to create a template or I should write a vit instead. I read a bit about mnu files yet I am still not sure how to use them. Is there a simpler way like marking something and drugging it into the function pallet? 4. I wanted to use the Quick Drop shortcut ctrl+shift+i in order to bundle many wires automatically yet it doesn't work as I expected. Is there another way to auto bundle wires maybe with JKI's rcf?
  10. Hi Yair, It took my some time to get there but I finally caught up with you. The XNode works just fine. No, not just fine, it is awesome man! It is justwhat I imagined in functionality and even better than what I imagined as forthe way it looks and works. Thanks Yair! You and the one who wrote the damn thing are the best! I'm going to study those examples now so I could do magic too As for the collapse option, it seems like any good idea I have someone thoughtof it before I did and I'll have to search lava better next time. Hope to pay you back someday soon and maybe even publish back an XNodetutorial. Take care, Dror.
  11. Thanks Yair. I still have no clue as for xnode and xcontrol yet the scripting is finally on, had to activate it through tools->options on LV 2010. I'll post here the final code. Yet, since the other implementation (which looks great and is exactly what I meant - great work guys) is closed and uses xnodes I still ask for help about my design which can be very similar to the design they decided on but without xnodes unless someone can show me a tutorial. Besides that, is there a way to colapse code into a single block without turning it into a sub vi? Thanks in advace, Dror.
  12. Thanks. Yet, the working example there is based upon xnodes. Wasn't it deprecated long ago? How do I use xnodes? I love the idea yet I'd prefer implementing it over regular vi scripting. Should I use xcontrols? Is it ok to use it inside a commercial product? I took a look at JKI Right Click Framework, will it suite my needs?
  13. jjj I don't consider writing stand alone vis in the university as LabVIEW programing. I've been working on large scale projects with LVOOP for just 6 month now. As for scripting, less then a week of experience. D.
  14. I find nested cases to be cumbersome and hard to debug. Thus, I prefer having a single case structure with all the different complex cases I need. For example, instead of having two case structures one inside the other with the first if (a=true) and inside it another case structure if (b=false) I want a single case structure with if (a=true & b=false). Moreover, I want the different cases of this case structure to be filled automatically. I attached a vi that does exactly that by turning a ring with the inner cases into a constant enum and connecting it to the case structure to fill the initial values into the case structure. Then, I entered the different Boolean inputs into a formula node to decide which case I'm handling and connected it's output into the case terminal. Since the formula node handles numeric value I had to convert it into the right string value before I entered it into the case. Once the vi is initialized the user copies the created case structure that is disabled into the calling vi. I'm trying to learn scripting to automatically do the next steps: 1. read a text file with the input variable names and the cases we want to create and automatically enter the data into the formula node (change input labels according to the input variables and the equations as the text inside the formula node) 2. input the different cases from the user's text into the ring control and initialize the case structure values 3. add additional inputs and expand the existing code automatically In the future, instead of having the user/programmer enter the formula there might be a window with options like in outlook's contact list selection panel to help create the different cases by marking the elements and relationships in each case. Since I'm relatively knew to LabVIEW I would love some input/help. Is that the right way to do it or should I use some other tools like express vi and polymorphic vis for example? Thanks in advance, D. P.S. - the formula node is efficient and turning it into a subvi makes it a bit less efficient. Is there a way to collapse some code on the block diagram into a single block visually without turning it into a subvi? mux.vi
  15. Thanks. I'll look into it. As for whether or not courgette can work with LV I guess I'll have to ask them.
×
×
  • Create New...

Important Information

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