The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Quantization of signal
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Donyck1

Ukraine
4 Posts

Posted - 03/26/2015 :  4:25:20 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello. I need your advice. I have a signal with some values 1,5 2,1 3,4 and so on.
I want to simulate the quantization of signal for some digit capacity.
For example 5 V and 8 bit. It will 5/(2^8-1) and one step in column X i*0,0196;
After that I need to round values of signal to this nearest digital values so
1,5 = 1,5092 2,1 = 2,0972 3,4 = 3,3908 etc.

Edited by - Donyck1 on 03/26/2015 4:27:12 PM

Hideo Fujii

USA
1582 Posts

Posted - 03/26/2015 :  6:01:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Donyck1,

Please try the following formula in the Set Column Values tool for column B
(5/(2^8-1))*round(col(B1)/(5/(2^8-1)))
Does it work?

--Hideo Fujii
Originlab

Edited by - Hideo Fujii on 03/26/2015 6:07:15 PM
Go to Top of Page

Donyck1

Ukraine
4 Posts

Posted - 03/26/2015 :  6:10:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Hideo Fujii

Hi Donyck1,

Please try the following formula in the Set Column Values tool for column B
(5/(2^8-1))*round(col(B1)/(5/(2^8-1)))
Does it work?

--Hideo Fujii
Originlab



Thanks. It works perfectly.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000