Jump to content

crossrulz

Members
  • Posts

    533
  • Joined

  • Last visited

  • Days Won

    21

Posts posted by crossrulz

  1. Well, I'd say you've been lied to on the protocol.

    Interestingly, all of the bytes (except for the initial byte) are alpha-numeric.  If I convert your hex values to ASCII I get:

    Write: 00P004SOL1

    Read: 00D0010

    This still means nothing to me.  Just thought I would go through the exercise in case it sparks someone's thought process.

     

  2. 7 minutes ago, rharmon@sandia.gov said:

    Crossrulz,

    What do you mean by "Then you need to read using the protocol of the device" The read buffer is always empty.

    When I send this polling command the response from the UPS should be 7E05 0318 B004 52 the data being 1200 or 120.0V

    1. Make sure you are actually following the protocol of the UPS.  What is the model?  Do you have a link to the programming manual (might also be in the User Manual)?

    2. If you send a binary string to the UPS, I almost guarantee it will not spit back "120.0V".  It has a protocol defining the message format.

    Since you are getting no data back, I am left to assume you are sending an invalid command.  Though, it is also possible the UPS is using a different pinout than you expect for the RS-232 connection.

  3. Since it look like you are sending binary data, you really should turn off the termination character at the VISA Configure Serial Port (Boolean input on the top).  Then you need to read using the protocol of the device.  This should involve reading a start byte, message ID, data, a checksum of some type.

  4. I'm also a TI guy.  The TI-83 was the recommended calculated in high school, but I already had a TI-82.  The only real difference was the handling of unreal numbers.  I had to do some special programing to handle i in my Pythagorean Equation program.  In college, it was the TI-89.  I used to have all kinds of programs I wrote/distributed, including one I wrote that was to handle an entire exam for one class.  I think they are long gone now.  I still have both calculators, but I usually end up using the TI-89 emulator on my phone.

  5. On 5/2/2020 at 8:21 AM, Neil Pate said:

    Speaking of quickdrop... "esseqz" really just flows out of the fingertips does it not? (Thankfully just by typing "Less" in the quickdrop you get want you want). I think the machine learning algorithm that was used to generate these "shortcuts" might need a bit more training data. Pity the algorithm did not at some point put their hand up and say, hang on, this is a bit crazy. Just look at the others,

    "ess" for Less...

    "erg" for Retain First Error

    Those are the same as what is default in LabVIEW 20XX.  They were chosen by Darren specifically to only have to type with the left hand.

     

    On 5/2/2020 at 3:47 PM, Neil Pate said:

    And I had totally forgotten Run Continuously has been removed.

    I remember being part of the discussion to remove it.  I thought it was supposed to turn into a right-click option on the run arrow.

  6. 24 minutes ago, Antoine Chalons said:

    I very much agree with the need for scripting.

    It seems some folks at NI think that it's enough if we can use c# to script... almost funny...

    It is C# for now.  There are talks for making G interfaces for scripting.  It is just not a priority last I heard.  Admittedly, it has been probably a year since I heard that discussion.

  7. On 1/10/2020 at 2:03 PM, X___ said:

    I do like units for UI. If my users want to use MHz rather than kHz, or ps rather than ns, I do not have to worry about any fancy UI gimmick. It works (it even will not let the users change the dimensionality of the unit of a control at run time, which saves me the headache to fight against mischievous or distracted typers).

    I just set the display for my controls to something like "%#pHz".  The %p sets the display mode to SI Notation, which uses the prefix.

    • Like 1
  8. So what I am gathering here is that the Assert Floating-Point Numeric Type.vim does not work with units.  Otherwise, it does look like the timestamp case for the Scaler To String.vim is the first one that would work with a numeric, even with units (just feeds into a Format Into String).

     

    I'm so glad I gave up on using units ~13 years ago...

     

    EDIT: Daren posted right when I was about to hit "Submit".

  9. 14 hours ago, Rolf Kalbermatter said:

    If you really always want to remove the last three elements the OP needs to use an Array Length node, subtract the number of elements he wants to remove from this length and wire that to the offset. In that case you can leave the size input unwired because it will default to the rest of the array.

    That's too complicated.  Just wire the 3 to the Length and leave the Index unwired.  Delete From Array will default to deleting from the end.

    • Like 1
  10. You are mixing definitions of "Hex String".  It appears you need a raw/binary/flat data string.  So replace the Number To Hexidecimal String with a Flatten Into String.  The Number To Hex String converts into an ASCII text, which you do not want.  Further, since you only want 4 hex character (ie 2 bytes), you need to add a U16 conversion bullet after the multiplication.

    499451941_SetpttoString.png.dcab702c1b0b29feb25c80e426b3872d.png

×
×
  • Create New...

Important Information

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