Jump to content

X___

Members
  • Posts

    426
  • Joined

  • Days Won

    28

Everything posted by X___

  1. Have you considered variant attributes?
  2. I have given up on using complex numbers in JSONtext after discovering this problem, so I am fine with either way but if there was a way to throw an error for unsupported types, this could prevent people like me from building on sand (of course I should have more testing of my code, but I am a one man orchestra, so that is not always an option). Note: the last point appears somewhat related to this issue: https://bitbucket.org/drjdpowell/jsontext/issues/108/from-json-textvim-does-not-return-an-error
  3. Raised here: https://bitbucket.org/drjdpowell/jsontext/issues/103/what-to-do-about-complex-numbers
  4. [Bug Report/Feature Request] The following diagram is self-explanatory: It returns an error 402843: JSONtext.lvlib:Scalar JSON text to Variant (not inlined).vi:5750001<ERR> Unhandled Type: "Double Complex" At least it does return an error. When the complex numbers are within an array inside a cluster, the corresponding data is ignored and the default (empty array) is returned instead without any error. Note that the To JSON text.vim doesn't complain and outputs the expected "1 +2 i" string.
  5. For context, I should have mentioned that the reason my account was not associated with an active subscription license is because my college admin hasn't found the patience to fight with NI to get it re-activated properly. I suspect they will eventually give up (and that I am the only one still using LabVIEW in my Department, or others just reverted to the community edition). As a result, we haven't got an active license for that reason for a couple of years (not that I would have ventured into committing to newer subscription-only versions). As explained elsewhere, I had to personally take care of making sure our years of continuous subscription (or rather permanent license) was not wiped out in the process. It actually was, because of the failure to renew our license, so NI had to create a NEW permanent license number of 2021 and earlier. Yet, there is apparently no way for it to be stored on NI's web servers or associated with my account... I consider myself lucky to have been able to reach a capable employee who managed to verify that the information I was providing was correct and went the extra length to share a private link to an installer (first a web installer, and next, after I told him than not all machines are internet connected, a downloadable installer). I wouldn't be this will last.
  6. Similar story here. A hardware vendor suggested I tried the 32-bit version of LabVIEW to figure out a problem I had encountered. I went to the website to download the installer of my permanent license LabVIEW 2021, only to be greeted with grayed out download links and a message according to which: It turns out there is no way to update any service information, so I called NI tech support and magically got someone to pick up the phone right away, listen to my description of the situation and after verification, offer to send me a link to the installer download. I am still fighting with Microsoft OneDrive to get to that installer download, but the bottom line is that NI Emulsion is apparently willing to waste the time of their tech support employees to access software installer that they were entitled to according to the initial term of their license. Until they won't?
  7. I confirm. Thanks.
  8. Any update on this bug? I can't figure how to check the status on the Emulsion website.
  9. Thanks for the feedback Looking into the code of the Three Button Dialog Core.vi, I found a conditional case structure messing up with the displayed string which I must have added in a late night debugging session and forgotten about. Disabling it restored the expected behavior. For a while I thought that LabVIEW had been spooked...
  10. Here is the output: No better luck with long messages: here is the result: notice the "Standard" added to the text. Windows LV 2021 SP1 64 bit
  11. We need to be realistic and pragmatic.
  12. Koolaid? Not really. I like the sifting through stackexchange, distilling it to the necessary stuff and providing link to the source in case of doubts. PIL does return custom metadata (at least text ones) just fine.
  13. No, it did not. It did mention that groupdocs was not free though! What puzzles me is that it did not mention that this was a standard feature of the python PIL package: from PIL import Image import matplotlib.pyplot as plt filename = '/content/drive/MyDrive/my image.png' # point to the image im = Image.open(filename) im.load() plt.imshow(im) plt.show() print(im.info) print('Metadata Field: ', im.info['Metadata Field']) which is probably the approach I will use in my migration to Python experiment.
  14. This is going away from the original topic, but after a bit of trial and error (and prodding of ChatGPT), I came to the conclusion that there is no other way, in order to extract custom metadata from a PNG file, than to write a custom parser, as .NET only provides access to a series of predefined tags: https://learn.microsoft.com/en-us/dotnet/desktop/winforms/advanced/how-to-read-image-metadata?view=netframeworkdesktop-4.8 https://learn.microsoft.com/en-us/dotnet/api/system.drawing.imaging.propertyitem.id?view=dotnet-plat-ext-7.0 There is a third party .NET framework to achieve that goal (https://products.groupdocs.com/metadata/net/extract/png/) but at $1,700 a year per license, I guess the motivation isn't there...
  15. Thanks. I wished I could, but the link I posted only provides the snippet.
  16. I found this .NET example as a potential path to circumvent requiring to have Python installed to read PNG metadata: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q0000019lbVCAQ&l=en-US Unfortunately, I don't use 2022 (subscription). Would any one be so kind as to down convert it to 2021? Thanks!
  17. ... and LabVIEW for macOS is dead (but with a permanent license).
  18. What is a record number of attendees in metric units? BTW, the program looks interesting. Will it ever get online and will code be shared?
  19. Where is the popcorn emoji when you need it?
  20. Well, isn't Linux part of Windows nowadays?
  21. Here is ChatGPT's answer: You can delete part of a file without loading it entirely into RAM by using the dd command. This command can be used to move the contents of the file up by a specified number of bytes, effectively deleting the specified number of bytes from the beginning of the file1. Here is an example script that you can use to delete a specified number of bytes from the beginning of a file: #!/bin/bash size=$(stat -c %s "$2") dd bs=$1 if="$2" skip=1 seek=0 conv=notrunc of="$2" dd bs=$((size - $1)) if="$2" skip=1 seek=1 count=0 of="$2" Copy You can call this script as ./truncstart.sh 2 file.dat, where 2 is the number of bytes to delete from the beginning of file.dat1. However, please note that this solution is not robust in case of an unplanned outage, which could occur part-way through dd’s processing; in which case the file would be corrupted1. Is there anything else you would like to know? 😊 Learn more: 1. unix.stackexchange.com2. superuser.com3. digitalcitizen.life
  22. It looks like the Russians took your motto too literally: "Our idea is to help our novice users to start simply with machine learning and then hit the moon !"
  23. Yes. I wonder what the next 100 years of engineering that ambitiously will change to this picture.
  24. $37M/quarter at $2.5K a license/year, that's ~60,000 yearly licenses (assuming all are LabVIEW Pro only).
×
×
  • Create New...

Important Information

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