03-30-2011 03:41 PM
This one works in LV8.2 so it should work for you, slightly less elegant.
03-30-2011 03:44 PM
I am really stupid and why i can not get these ideas.
You are really helpful and now its working.
03-30-2011 03:54 PM
Allow me to quote myself.
Ignorance and stupidity are two very different things. The former, as in this case, is easily curable.
Now if you ask the same or very similar question again in two days....
My guess is it won't happen.
03-31-2011 05:56 AM
Hi,
Why some times "deletefrom array delete portion" returns true or false. My values are changing always due to that. How it is producing ture or false.
03-31-2011 06:09 AM
@Darin.K wrote:
Ignorance and stupidity are two very different things.
+1
03-31-2011 11:16 AM
@shjukheter wrote:
Hi,
Why some times "deletefrom array delete portion" returns true or false. My values are changing always due to that. How it is producing ture or false.
Delete from array is pulling off the sign bit from the 5-bit number. The remaining 4-bits are converted to an unsigned int, and this value is negated when the sign bit is 1.
Is there a particular value that is not being converted as you expect? If so let me know what the hex value is and what you expect the converted value to be.
04-06-2011 02:53 AM
Hi,
It is not working at all. There is some thing wrong at converstion. More, I need to round the value after calculation. I have checked with below values but it is not working even for before given value i.e. C34D--->3.3 Volts. It is working for only this value if i run the given VI with input string constant with C34D.
In my program, I am reading ascii values then converting them to hex to your provided code for getting the value as 3.3 but it is not working(input voltage in the picture). You can see the below pictures.
these are the examples values
CAA6--------> 5.3v
DA80-----------> 20
C34D-------->3.3
E367........> 54.43v
Also i am attaching one PPT and you can in that from 74 to 89 page for reference.
The five bit is always signed and its negative. may be i guess there is the problem.
More, when i am writing a value to the device, I should write in format which is at 77th slide second model. y=x*2(power of -N). Can you help me to write these code. See the below figure and please help me.
Thank you.
04-06-2011 03:03 AM
I forgot to attach the PPT. You can find here.
04-14-2011 06:50 PM
Better late than never I suppose. -8 was a fortuitous example, I should have guessed and the PDF showed that the numbers are stored as 2's complement which I just coded by hand. This now shows two-way conversions.