Jump to content

X___

Members
  • Posts

    415
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by X___

  1. And the saga continues... https://www.reuters.com/markets/deals/national-instruments-picks-fortive-keysight-challengers-emersons-bid-sources-2023-03-03/
  2. Seriously: it's over (it actually starts at 54 mins in).
  3. My bad, it does not scramble elements 😞 Busy on the side dealing with a lab flood doesn't help with focus...
  4. Well, you are sorting the array before removing the elements to filter. If I don't care about the array order, I can use a set, which should to things quicker by design.
  5. This is messing up with the elements order in the original array though
  6. What are your respective experiences with Python and LabVIEW? It seems that you are more proficient in the former than in the latter. If so, looking at built-in examples might help (Help>>FInd Examples). Answer 1: the way the Python node is designed requires a function to call in your script. You can have several functions in a script, but you would have to call the Python node repeatedly, one function call at a time, or those functions would have to call each other within the script. Not that this is what you are asking for, but that might clarify the node's intent. Your first snapshot doesn't show any node output. If you want to get something back into LabVIEW, that is missing. If I understand what you are trying to do, you would want your Python function to return something like an array containing your image. Answer 2: the easiest way would be to use a Picture control to display the image array returned by the Python node. More expensive (the toolkit is not free) would be to use the Vision Development Module, which in addition to a more advanced control, would offer a number of utilities to manipulate the image. HTH
  7. Some of the earlier patents (still listed in Help>>Patents...) have long expired. The latest is dated 2014.
  8. I was puzzled by that statement and since I am unable to do anything more demanding at this time, I checked the job offers at NI. There are 4 sites: Texas, Costa-Rica, Hungary, Malaysia. Most of the software-related postings appear to be API and driver related. I would be surprised that any of the frontend software is developed outside a tight-knit group in Austin (especially because NI is not an open source software developer, where delocalization is the rule).
  9. Simple: to be understood by and be able to share code with others in academia. I have a few options: python, MATLAB, Mathematica, possibly C/C++ but certainly not LabVIEW. I dabble in all other languages, but in terms of cost and adoption, the choice is easy. I understand that for automation and delivering slick UI to paying customers it might not cut it, but if Emerson drops it, everyone will have to reconsider their options. As far as I am concerned, the writing has been on the wall a long time ago as far as LabVIEW was concerned. What saddens me the most is that its graphical paradigm hasn't percolated (much) in other languages (Node-Red and some other experiments being rare and not-so-impressive exceptions).
  10. I don't know about that. For me multithreading works when all my cores usage are maxed out. I see that in both LabVIEW code and Python code.
  11. I wonder whether Emerson knows that, and if so, what their logical conclusion will be moving forward. I mean, I have no doubt what they will decide.
  12. My bad, I did not fully fleshed my proposal to Jeff K. I did not mean to rewrite LabVIEW in Python, but import some of the graphical concepts of LabVIEW into Python. Here is it: develop a Python module that allows representing python code graphically. The execution parallelism implemented in LabVIEW would probably be the trickiest part, but I am not sure I would require it initially. And implement some type and syntax checking breaking the "diagrams" at edit time rather than at compile/runtime (typos is what I hate in text-based languages).
  13. You mean that sentence: I am not sure he means LabVIEW when he thinks "new technologies". After all that is more the purview of Colonel Kodosky... Who probably wouldn't mind a few extra 100 million dollars for... what about spinning off G and funding an open source project making a graphical Python-based LabVIEW?
  14. That's maybe because, according to Reuters (https://www.reuters.com/markets/deals/emerson-makes-76-bln-bid-ni-corp-2023-01-17/), (company with a green and blue-themed website too...). So, their interest is probably not in supporting the development of a niche software that once pretended to be the programming language to run them all (or did it?) but is certainly not anymore. A lot of people at NI should probably get busy updating their profiles and checking job offers, if they had not been thinking of it after AQ's departure... BTW, I don't quite understand your previous argument that cofounders having a majority of shares would oppose a sale? Why would they not try to get as much money out of the sale and leave their families/heirs with a comfortable fortune to spend the rest of their lives?
  15. I see...nothing. In any case, they already have taken Ni's color(s). Or is it the opposite? And as far as their slogan: "Go Boldly", this will be easy to merge with NI's: "Go boldly and engineer ambitiously... for twice the price!".
  16. If I had wanted to be ironical, I would have typed LabVIEW 2023 Q5. And twitted it!
  17. They are trying their best to snap NI at a bargain price, knowing full well that the picture will completely change when LabVIEW 2023 Q4 will be released, instantly doubling the value of NI share price.
  18. https://finance.yahoo.com/news/ni-appoints-cfo-140000382.html
  19. https://www.reuters.com/markets/deals/ni-explore-options-including-sale-amid-interest-emerson-electric-sources-2023-01-13/
  20. Somebody please give access to LabVIEW source code to Rofl, pretty please?
  21. Someone gives Rolf access to the source code, pretty please?
  22. No. That was my second error in two attempts, so I considered the experiment done for me for the time being. I had a similar experience with stabilityai (the graphic AI) where the outputs I got were complete garbage, so I suppose I am just not doing it right and don't have the patience to "play" with the thing. Apparently, for pure text stuff, you need to reiterate and massage the question to get something that is acceptable. For LabVIEW code, by the way, the latter tool might be more appropriate... or not (try it at https://huggingface.co/spaces/stabilityai/stable-diffusion). Here are the results of ("a LabVIEW diagram adding two numbers" - Negative prompt: "not a NXG diagram"): One more reason to switch to Python?
  23. Here is a little fun I had with ChatGPT: Me: what is the infinite sum 1-2+3-4+5-6... equal to? ChatGPT: The infinite sum 1-2+3-4+5-6... is a so-called "alternating series," because the terms have alternating signs. This series does not converge to a single value. In other words, it does not have a sum in the usual sense. If we take the first few terms of the series, we can see that the sum oscillates around a particular value and never settles down to a fixed number. For example, if we take the first 10 terms, the sum is -4. If we take the first 100 terms, the sum is 8. If we take the first 1000 terms, the sum is -32, and so on. In general, the sum of the first n terms of the series is given by the formula (-1)^(n+1) * (n+1)/2. This formula shows that the sum oscillates between positive and negative values as n increases, and it never converges to a single value. It is possible to assign a meaning to the infinite sum of an alternating series by considering the limit of the partial sums as the number of terms goes to infinity. This is known as the "alternating series test," and it can be used to determine whether an alternating series converges or diverges. However, in the case of the series 1-2+3-4+5-6..., the alternating series test cannot be applied, because the terms of the series do not approach zero as the number of terms increases. Comment: so far, so good. Me: but the sum of (-1)ˆn * n*(1+x)ˆ(n-1), for n = 0 to infinity has a finite value for x = 0 . And that is formally -1 + 2 - 3 + 4 - 5... ChatGPT: Yes, that is correct. The series (-1)^n * n*(1+x)^(n-1) does have a finite sum when x = 0, and this sum is equal to the infinite sum 1-2+3-4+5-6... To see this, we can use the formula for the sum of a geometric series: Sum = a * (1 - r^n)/(1 - r) where a is the first term of the series (in this case, a = -1), r is the common ratio (in this case, r = -1), and n is the number of terms in the series. If we plug in the values for a, r, and n and set x = 0, we get: Sum = (-1) * (1 - (-1)^n)/(1 + 1) = (-1) * (2 - (-1)^n)/2 = (-1)^(n+1) * (n+1)/2 This is the formula we obtained earlier for the sum of the first n terms of the series 1-2+3-4+5-6.... So, the sum of the series (-1)^n * n*(1+x)^(n-1) when x = 0 is indeed equal to the infinite sum 1-2+3-4+5-6... Comment: the sum is not that of a geometric series. It is the first derivative of sum (-(1+x))ˆn) = 1/(2+x), so the derivative is -1/(x+2)ˆ2. Of course, this requires 1+ x < 1. Me: That's wrong. The formula is sum of (-1)ˆn * n*(1+x)ˆ(n-1), for n = 0 to infinity equals -1/(x+2)ˆ2. Therefore -1 + 2 - 3 + 4 - 5... = -1/4 Comment: In retrospect, that may have been a bit too blunt for a US-trained AI... ChatGPT: I apologize for the mistake in my previous response. You are correct that the sum of the series (-1)^n * n*(1+x)^(n-1) for n = 0 to infinity is equal to -1/(x+2)^2 when x = 0. To see this, we can use the formula for the sum of an infinite geometric series: Sum = a/(1 - r) where a is the first term of the series (in this case, a = -1) and r is the common ratio (in this case, r = -1). If we plug in the values for a and r and set x = 0, we get: Sum = (-1)/(1 - (-1)) = (-1)/(1 + 1) = -1/2 Then, we can use the formula for the sum of an infinite series in which each term is the product of a constant and a series: Sum = a * Sum(b) where a is the constant (in this case, a = n) and Sum(b) is the sum of the series b (in this case, b = (1+x)^(n-1)). If we plug in the values for a and Sum(b) and set x = 0, we get: Sum = n * (-1/2) = (-1)^n * n * (-1/2) = (-1)^n * n/(-2) = (-1)^n * (-1/2) * n This is the series (-1)^n * n*(1+x)^(n-1) for n = 0 to infinity. Therefore, the sum of this series when x = 0 is indeed equal to -1/4, as you stated. Again, I apologize for the error in my previous response. Please let me know if you have any further questions. Comment: if that sound like gibberish to the non-mathematically versed reader, that's because it is. Me: yes I do. How come an infinite series that oscillates and seems to diverge in absolute value, as you pointed out, can converge to a finite value? ChatGPT: An error occurred. If this issue persists please contact us through our help center at help.openai.com.
  24. Thanks for clarifying that. I forgot to mention that this "feature" has indeed nothing to do with what happens in the Python function itself (which could be a simple return() statement). And that I tested this in LV 2021 SP1. I haven't tested this with the Matlab node (which is way worse than the Python node, as it loses connection with the Matlab instance as soon as an error is thrown, requiring the process to be killed in the Windows Task Manager, while at least in the Python node, you get the Python error code and message as part of the error cluster and - generally, but not always - can recover from this and reuse the Python session refnum). Let's say I wouldn't be shocked if the same feature existed. This being said, the workaround is straightforward: store the error in before calling the node, and if it is a warning, pass a no error to the node, and merge the error cluster output of the node with the stored error in before continuing.
×
×
  • Create New...

Important Information

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