Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Posts posted by hooovahh

  1. 2 hours ago, Antoine Chalons said:

    I was wondering if anyone has seen similar situations?

    I haven't, and my initial reaction is that I would quit a job like the one you described.  The closest I came was when my boss sat me down to show me his 5 year plan for the group since he heard I was planning on quitting soon and he hoped his new road map would inspire me to stick around.  I thanked him profusely for showing me his plans, because it meant that I knew I was making the right decision leaving.  I quit, he started steering toward an ice burg, then he was fired about a year later.  I was contacted by a head hunter saying this job opportunity was a perfect fit for me.  I had to inform him I had that job and listed reasons why I wouldn't come back.  Someone else that was still there tried getting me to come back, only to realize they were one of the reasons I left.  Things have not sounded all that great since.

    • Thanks 1
  2. So there are plenty of improvements I can suggest for readability, but overall I think the code isn't bad.  A few comments would help, and I'd prefer less feedback nodes, and instead code that calls it in a loop, but to be fair that might have just been what you did to demo it.  I think all that is needed to to try to not use the dynamic data type.  It can do unexpected things, and can hide some of what is going on, inside those functions that you need to open the configure dialog for.  This can make the code less readable.  So I'd get rid of the To Dynamic data, and instead use the Array Subset function on the 2D array of doubles.  This should allow you to get just the two columns you want, and write that to the TDMS file.  You may have to mess with the decimation, and possibly transpose the 2D array.  I can never remember how the functions work, and so I'm often writing test code to see if the columns end up the way I want.  This will mean of course that you also use the Array Subset on the 1D array of string which is the channel names.

    As for the time entry, it looks like it works, but might I suggest a different string format?  Here is a post that shows how to use the Format Into String, with the timestamp input, which returns an ISO standard string format.  More standard, and if a log is moved from one timezone to the next, it can still be clear when the log was made.

  3. Yeah targeting the upper management likely would result in more sales.  But may also result in less engineers willing to use NI and their products, having been force fed the wrong, or less appropriate tool for the job.  I worked with a group that had Veristand 2009 forced down from upper management.  NI came in with a dazzling presentation and convinced them to change over their dyno control systems to it and the PXI platform.  They did without consulting the engineers, and as a result there was a daily battle where I would repeat "Rewrite Veristand" when some trivial task for LabVIEW, couldn't be done in it.  Veristand 2009 ended up being somewhat of a flop, and from what I remember nothing ported to 2010 since NI made some major rewrites of it.  We eventually got an apology from NI which basically equated to, sorry we gave you the impression this product was more usable than it actually was. 

    Luckily my current boss knows NI and their offerings, but trusts my opinion over theirs.  They need to convince me something is a good fit, before they will convince him.  They have some new test platforms that directly align with our business (battery test in automotive), and so far I'm unimpressed except when it comes to hardware.

  4. 2 hours ago, Stagg54 said:

    You must have missed out on the joy of insane objects.

    I had my share of insane objects, but I'd just clear the compile cache, and revert with SCC.  I don't ever remember seeing insane objects in the installed LabVIEW functions, but if that happened it would be a bit more of a pain to resolve.

  5. 4 hours ago, drjdpowell said:

    So... did anyone have a 1-on-1 interview with NI? 

    I too had one. The day of the meeting I installed NXG and went though all the old issues I had with it years ago and tried evaluating what things have changed and what ones haven't.  I made a bunch of notes on things and mentioned them in the meeting.  I then have started formalizing these lists and have been giving feedback to NI, most of the time linking back to where the complaints were first mentioned.

    • Like 1
  6. I do remember discovering the Window Monitor and Ned windows semi-independently.  Someone posted a way to show the Heap Peak window, with CTRL+Shift+D+H and I thought that was likely for Debug, and Heap.  So why not try D+<every letter combination>.  At the time I think only H, N, and W did anything.  Most of the time I care to find a window's HWND I use a private function which lets me do what I want.  I have never had a need for knowing the HWND of any of the other windows so that Window Monitor wasn't all that useful for me.  The Ned windows unlocked more useful information, but just for curiosity sake really.  Also I find it really interesting that Heap Peak has been in LabVIEW for such a long time and with seemly no or little updates to it.

    • Like 1
  7. As I mentioned in that thread tunnels out of a loop, and case select terminals are the major issues I see with it.  I'd estimate I probably have wanted to create a constant, control, or indicators from those conditions probably 5% of the time.  The other 95% I want to change the tunnel options or make that datatype the selector input.  I was told in the beta I was wrong, and that users want to create one of those things more than any other thing, in all situations.  I mentioned this in that thread and Darren at least acknowledged that in some cases the developer likely doesn't want to create anything but being consistent is important.  If being consistent is important then I'd say that is a vote to get rid of Auto-tool.  Hover here to have this tool...no not like that click here first.  Or just tab and get what I want.  I'm still primarily in 2018 but consistently have issues in 2020.

  8. You'd have to ask NI, but I suspect they don't want to have to support users calling the functions directly, and instead they only want to support the users calling the VIs that they create, exposing the functions.  It gives them tighter control, and likely means less unit testing if they know a function will only ever be called a certain way.  For instance the Write PNG File has no compression.  The function internally does have a compression input, and setting it does create a more compressed PNG image.  But it is possible that compression isn't tested or supported on all platforms.  So they can either support compression on some targets and not others, either making duplicate VIs, or erroring out on those targets.  Or they just take that ability away.  Well that or someone just didn't realize that input would be requested and left it off the connector pane.

  9. Yes I'm sure.  I just opened the block diagram of the Add File to Zip, and Unzip functions in 2020 and I believe they are unchanged from 2018 at least calling functions from within LabVIEW.  NI is calling system exec to touch the zip file, setting the file attribute that I believe is the file creation date, of the file that was uncompressed.  Obviously the date will be right now since the file was just extracted.  After it is done being uncompressed NI wants to touch the file, so it has the creation date that is stored for that file within the zip.  This can be seen in the unpassword protected VI Set Unzip File Date Time.  The VIM I linked to earlier shows how these call library nodes create the zip.

  10. 1 hour ago, X___ said:

    The NI_Unzip.lvlib VIs are all password protected (probably because underneath, they are using some .NET calls they don't want people to mess up with). So yes we don't know what they do, although the help tells us what they can't do:

    It is a series of call library nodes.  I think if it were .NET NI would have a hard time getting it to run on other targets like Linux, Pharlap, VXWorks, and issues with ARM/x86.  In the two examples I linked to I show how these are called to do compression with an array of bytes by calling them.  Still a pure G implementation would be nice, just looking over the source and documentation is quite daunting based on my lack of understanding compression techniques, but those links do help.

  11. That's good.  I just know that for other things it can be more selective on the compression type.  I wanted to make a way to create a PNG file outside of NI's native way due to some limitations.  I read up on the documentation and it honestly wasn't all that complicated.  The only issue is that part of the file is compressed with zlib.  Using OpenG it made good normal PNGs file that could be viewed in any image viewer.  But using LabVIEW's native API for compression created an image that only some image viewers would display, chrome was not one of them.  I also made a BLF file API.  This is a logging file format for raw automotive CAN data.  It also has chunks of data that are compressed.  Using NI's native method created a file that Vector tools couldn't open and I also needed OpenG.

  12. I'm fairly certain the purpose is to query the UPS status.  The API allows for reading the input voltage and frequency, the output voltage and frequency, the battery voltage, state of charge as a percentage, battery temperature, and if it is on battery power or not.  These UPSs have a USB port but when plugged into a Windows computer it is not recognized as a battery device like you'd typically see on a laptop.  Otherwise the normal Windows API can query the battery status.

  13. The native LV functions don't implement the inflate/deflate from zlib but instead a different standard (pkzip?).  Also if you do want to compress a stream of bytes using the native zip feature you don't need to create the initial temporary file.  You can compress data using an array of bytes saving it to a zip.  I made a VIM and posted it here which supports an array of bytes, in memory TDMS, DVRs, and a couple other data types.

  14. If you can't get a dedicated IP address, one thing you can do is have your software query the outside world and find out what its public IP address is, and then update some location that you can get access to.  This is essentially dynamic DNS.  I have a domain I registered and have a website that I host.  I have the computer that serves the web page update its own DNS every couple of hours because my IP address may change.  Another option might be to do something like write a text file to Dropbox.  Then when you want to connect to it read the dropbox file and that will tell you the public IP.  Then the ports as JKSH mentioned will reference each device.

    • Like 1
  15. There is something wrong with that control for sure.  It isn't disabled, and the other thing I checked was if you customize the control I thought maybe there were elements over top of the scroll bar but that isn't it either.  If you manually turn off and then on the scroll bars it works again but only until you call the property node that sets them on again.  One fix I found was that after you enable the vertical scroll bar, disable it, and then enable it again.  Another thing that worked was I replaced the whole graph with another style and it was fine so it is something with that control.  I did all of this in 2020 since I don't have 2019 on this machine so I'm not sure if it behaves differently there.


  16. I was a TI guy, but likely just because it was what I was exposed to in High School. There my mom bought me TI-82.  It worked well up until partial derivatives and systems of equations in college.  I wrote a program to do this manually but due to precision of the calculation only worked on simple problems and the values wouldn't be right for complicated ones.  So I bought a TI-89 Titanium used for $100.  Basically the most powerful calculator they'd allow.  Had it all through my EE degree.  Even used it to hack my PS3 years later. Then I lent it to a family member for their college and haven't seen it since.  Not that I've really needed it since.  Oh and look at that new today they are still over $100.  I once asking to use a TI emulator on my laptop in class because I was too cheap to buy a new one.

  • Create New...

Important Information

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