Jump to content

Yair

Members
  • Posts

    2,869
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by Yair

  1. You create an array control or indicator and drag a string control into it. This is really quite a basic thing. You should learn this from going through tutorials (hint, hint).
  2. You can see one example for this here. Unfortunately, since LTR (where those VIs were published) went out of business, those VIs are no longer available on their site. I may have some others in one of my other computers, but I will need to search for it. If you want, you can try going to the MSDN (Microsoft Developer Network) and read more about the other functions available in GDI32.dll, but unless you have some experience with calling DLLs from LV, this may be hard for you. There are some tutorials on NIs site for working with external code.
  3. Yair

    The book

    I don't know. Personally, I'm using 7.9.3, so I guess I'm not quite as evolved as others. :headbang:
  4. Yair

    The book

    Don't forget, when comparing floating point values you should compare a range, so "equal to approximately 8.0" isn't good enough - you should give a range of precision.
  5. Yair

    TCP/IP

    Then convert it to a string using the number to string functions instead. Then, you can send the string. Type cast simply takes the bit pattern (since a DBL is 8 bytes, that should be 64 bits) and reads those 64 bits as a string (of 8 characters, since each byte is an ASCII char). When you convert to a string, each digit will be turned into its ASCII value, which JAVA can easily understand.
  6. Yair

    TCP/IP

    The first question would be "how are you translating the number into a string?". If you're simply flattening it, this may not help you outside of LabVIEW. Look at the LV data represntation paper available in the bookshelf (in the help menu) for more details. One thing you can do is to convert the number to a string and then you can send that string. The other thing to check is endianess. You may need to reverse the bit order of each byte in one of the sides. I think that if you want to do this in LV, you will have to convert the string to a byte array, convert those numbers to boolean arrays and reverse them and then convert back to a string, although there probably are other ways.
  7. Most of the LV interface became very intuitive to me once I got used it and disabled all the "help" like just-in-time advice and the express palette view. The big rule is "when in doubt, right click". Even so, there are many options you will never guess are there and are not really documented. LVs menus do tend to be a bit annoying and NI does have a rather disturbing habit of rearranging them occasionally (like in LV 8). I'm not sure whether every option needs to be in the menus, but I've never designed a program with so many features, so I don't know. And if you switch to the classic palette view, things should hide less of your window space (mostly).
  8. Like I said, I basically agree, since there aren't too many stupid questions here (plus, I normally do have the patience to answer them). I just brought it up as a point for discussion. BTW, Michael, congratulations on becoming extremely active!!! :thumbup:
  9. That's not necessarily a bad idea. I know the web is open and all, but remember, the forum does have the word "Advanced" in the title. I have seen some people ask stupid simple questions here and on the NI forums on the same time. A simple LV test might be enough to make them not be here. Persumably, such a decision should be left to those who actually finance the site. What do you think, Michael? Maybe a poll? Just to make it clear, I don't really care either way since the numbers of such posts here is minimal. I'm only bringing this up as a point for discussion, so don't stone me if you think this should be completely open.
  10. There is a shipping example called XY chart which I believe does just what you want. I'm attaching a somewhat improved version of this. The main advantage of this over a chart is that the chart needs to have a constant multiplier whereas here you can have different gaps between data points and still have accurate timing. Download File:post-1431-1134896705.llb
  11. It seems LTR is gone forever (look here), which is unfortunate, because I did appreciate their coding challenges.
  12. The variable can't "die" or disappear, but you can right click the output tunnel and set "Use default if unwired" and this will cause the wire to recieve the default value for it's data type for every case where you didn't wire it.
  13. 1st line - wire up a 2 input function (add, multiply, AND...). 2nd line - hold down ctrl and hover over the inputs. The cursor will change to allow you to "flip" or reverse the inputs. The thing is it doesn't work with the select function (which is actually a three input function, but it would be nice if the T and F inputs could be flipped). One other nice thing about the select function is that you can wire an error wire into it as the selector, the same as you would do with a case structure.
  14. If all the VIs have the same name, you can close everything, rename your new VI to the same name, open the new VI and then open the top-level VI. Since LV (at least versions 7 and lower) can only hold one VI of a given name at any point, it will take the VI you already loaded instead of the original VI.
  15. Add the line hiderootwindow=true to your application's INI file inside the [whatever-your-application-name-is] section. If the file is empty, you will need to create that section.
  16. That download is the evaluation version. It will fully work (including the app builder, I think) for 30 days, and you can activate it using a license at any point. The problem is that it doesn't include some of the hardware VIs and the modules, and if I rememeber correctly, installing LV with some of the modules can be a pretty delicate operation if you want to get it right (specifically the modules which include hardware and drivers). If you have subscribed using SSP, then you should probably get a seperate full version of 8.0 with the CDs and the keys and everything (I think).
  17. You can do it, but it's an OS setting, even if you use the standard listbox, and as such will affect the rest of your OS. Look at Michael's post here for the exact method.
  18. I don't understand this either. I haven't looked at the 8.0 version, but I know exactly what the 7.0 version does and I assume this does the same. I still say that if you can't access the classes exposed using this tool, then it is still partly irrelevant (it's good to know the class tree, but you can't do anything with it, so it's "worthless"). Like I said, I assume that when you use the INI key which exposes these properties and methods, you will see them in NI's class browser, thus removing that "flaw" in it.
  19. I'm not sure what the problem is. The equal? node has been made smarter. Until now, it couldn't compare different references to the same object if the references were strict and non-strict or if they were opened seperately. Now it can. Page 58 of the upgrade notes -
  20. But since we can't access those classes anyway (at least for now), that seems to be at least partly irrelevant. It appears that the LV class browser exposes classes according to how you use LV (which makes sense) - if you used the scripting key we know about, you get some of the hidden stuff. I assume (perhaps wrongly) that when the other key is used, you will get the other classes as well.
  21. Just in case you haven't noticed it, 8.0 already has a built in class browser, which also allows you to drag property and invoke nodes directly to the diagram (yeah!!!). Is there any advantage your version has over it (other than working for earlier versions - I have it in 7.0)?
  22. Sorry Mike, I don't buy this. Have a look at the VI attached here. Note that if you open the FP of the subVI and run the calling VI once (to populate the control values of the subVI) and then run the subVI itself - it manages to initialize the caption all by itself. That just looks like they only went part of the way through with the change (assuming it was deliberate). I don't care if they initialize it in advance or not, but I don't want to run into problems with upgrading - I just want it to work. Unfortunately, this is still the case in 8.0.
  23. Yes, there is an error, because you have to tell the function how much time to wait. If you have a loop with no wait function, LV will try to run that loop as fast it can, and it will take all the CPU time it can get. If you put a wait function (you have to tell it how long to wait), then the loop code will execute very fast and the wait function will wait until the time you told to wait has elapsed, allowing the CPU to do other things. Only when the wait function is done, the loop can proceed to the next iteration. Wait for FP activity waits until you do something on the FP, and if you don't wire anything into it, it has an infinite timeout - meaning it will wait until you do something. In any case, you should not use it, because it has been superceded - if you want to have a loop which is controlled only by the user interface, you should use an event structure. Try reading the help for these functions to see exactly what each one does. You should also try reading more on data flow programming - have a look at the LV FAQ part of this site.
  24. Maybe NI is starting to remind you of Microsoft a bit too much - did you know that MS intends to put its Antivirus into the next version of windows? This will probably pose a problem for Symantec and the other players in that market. The question is what will happen when NI and Microsoft go one-on-one. I can already imagine it as a scene from the Might Morphin' Power Rangers (or maybe the Beastie Boys' Intergalactic video) - two giant robots fighting each other, with big sparks appearing around them.
  25. I managed to download 130 MB of the file using IE (which varied between 8-80 KB\s) before I experienced a local power outage, which caused my internet connection to die. I also think I remember downloading other files which were several hundered MBs using IE (I don't remember which files, though), so either I'm the one in ten, or IE works OK now. After the power was back I restarted with DAP and got it all at around 200 KB\s (DAP simulates several users downloading at the same time, allowing you to get better speed).
×
×
  • Create New...

Important Information

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