07-30-2007 08:35 AM
07-30-2007 08:44 AM
07-30-2007 08:49 AM
ok I did that, and i showed the radix (what IS a radix?)
I clicked the radix and binary is shaded out, aka I can't click it.
Why?
I want to have the user type in a normal number, have it converted to binary and then send the binary sequence to the device.
07-30-2007 08:55 AM
07-30-2007 09:06 AM
07-30-2007 09:06 AM
07-30-2007 10:03 AM
@Vr6Fidelity wrote:
All number values are transmitted as binary values. The byte order is BIG Endian, the MSB is sent first. There are 1-,2 byte data types and bits; the latter are summarized in bytes. Negative values are transmitted ina two's compliment.
First of all, your numbers need to be in the right representation. It must be an integer data type of one or two bytes. Most likely I8 and I16. (you cannot display a DBL as binary directly).
Everything in LabVIEW is big endian by default on any platform, so you should not need to worry about byte order in this case.
What kind of inputs does your transmission VIs accept? To transmit these numbers, most likely you need to typecast them into a string.
07-30-2007 10:07 AM
@Vr6Fidelity wrote:
I cant type in a number into this numeric control? It dosent do anything
Once a control is set to binary, thye only letters you can type is "1" and "0". It should accept these just fine, but nothing else. 😄
Still, the display format is only a cosmetic property that does not change the underlying data. For convenience, I would leave the display at decimal. It won't matter.
Can you show us how you communicate with the device? Do you have some third party communication tools? Visa? GPIB? Serial?
07-30-2007 10:07 AM
Hello Altenbach. Glad you came in here, as I see you wrote a pretty quick 110 MS Binary converter in the labview challenge. (see do look before I ask)
So in order to type in a value of 12,000 i need to be I16 correct? or would that need to be 32?
So i want to have a sensible user input, divide it by 10, and then convert it into binary. To me this seems pretty simple but I am struggling with this.
07-30-2007 10:12 AM