R Series FPGA, calculate log base 10 of number =1
Hi all,
I'm stuck on a problem with calculating a base 10 log of a number greater than 1. It seems the natural log function in the High Throughput Math library is limited to the range of 1/e to 1. There must be others who need to work outside this range - how is it done?
thanks,
George
Solved!
Go to Solution.
It looks like you're on the right track, though there's plenty of work left to port to FPGA. The first step would be to modify your error evaluation to use FPGA-supported types, in order to take into account quantization of the LUT values and scaling/interpolation arithmetic. You also need to consider quantization of the x values and include that in your error evaluation unless you can treat the quantized values as exact. 2012 allows SGL types on the FPGA, so that would be a good starting point if it will fit on your target.
Your interpolation scheme is a little complicated; you should be able to do it with a single multiply. There is a Linear Interpolation function on the FPGA Math and Analysis >> Utilities palette. If you right-click on it and select "Convert to SubVI", you can look at the diagram to see how it works. If you go with fixed-point types, you can use Look-Up Table 1D, which will take care of the interpolation for you. It only supports integers, unfortunately, but you can use Fixed-Point to Integer Cast to make use of it in a FXP diagram.
Similar Messages
-
How to calculate amount base on Num & Rate
Dear all,
I want to set the calculation in RULE to calculate amount base on number and rate:
Amount = number * Rate.
I tried:
AMT=NUM
AMT*RTE
But I got error message: "Operatn AMT=N specificatn 'N' is only possible together with P0045 and PRT"
Please help me how to make it.
Thanks,
SophieTrancan you check the option of MULTI
-
J1iex duty rate tab calculate excise base rate check box is disable in impo
Hi,
We have done Import PO and wrt we have done the GRN as part 1 and we try to complete the part 2 as J1iex, but in j1iex duty rate tab calculate excise base rate check box is disable, we required is activate.
its working in domestic scenario.
Thanks
shitalGo to J1IEX- Change (Instead of Post). Try & change the rate.
But why do you want to change it in J1IEX? as duties are flowing from PO-MIRO. -
A system bug regarding to "base row number"
Dear All,
I may have found a system bug, which is causing problems.
Would anyone have a way around? or should I raise the issue to SAP through our reseller?
Basically, the "base row numbers", in some cases, can incorrectly relate to the row numbers in base documents.
One example:
We have 3 lines on one Sales order
row number | Item code
1 | C001
2 | B002
3 | A003
If I need to duplicate row 2 (B002) on the order, or insert a new line in between the 3 items, to change the order to
(Similiarly, you could double click on the column title i.e. Item code to sort the grid table)
row number | Item code
1 | C001
2 | B002
3 | B002
4 | A003
Then I copy the order to a Delivery, you will see the "base row number" in the database like so, which is wrong
row number | base row | Item code
1 | 1| C001
2 | 4| B002
3 | 2| B002
4 | 3| A003
This issue is causeing many problems (as existing in all documents) for reporting in terms of linking documents.
Because there could be same items put on order more than once, we cannot use "item code" to link/track line details etc.
Any idea? or I would be glad to see I was wrong.
Many thanks
Yang
Edited by: Y on Nov 17, 2009 11:10 AMIt is not a bug. In the documents two data describe the position of the row:
1. The LineNum is the number assigned to the line when it is generated. It does not change when you insert a line before it. The Base Row Number refer to this number, because it must point to the same line even when a new line is inserted before it.
2. The VisOrder is the actual sequence number of the line in the document. It may change when you insert/delete lines in the document.
What you may assume problem is that you can not make visible the LineNum by Form Settings. But you can define a UDF and an FMS setting it to the LineNum:
Select $[RDR1.LineNum] -
Hi All,
How to find out the base document number for Goods Receipt PO using query (PO Number)? I need to add this to the printout of GRPO in the column "Based On PO No."
Thanks
SV ReddyHi,
If you are using PLD for GRPO then you need to link the PO number field in GRPO PLD to the following
content tab
source type: database
Table: Goods receipt PO rows
column: Base document reference
you will get the PO number for the GRPO
swapnil -
Hello
I m using a CRio9074 and NI9215 module. I implement the exmple for fpga data logging given at http://www.ni.com/white-paper/11198/en/.
I 've just conected a DC signla one channel and the program does not show anything or noise. I attach the project. Can somebody help ?
Thanks
Attachments:
Fpga_Daq.vi 41 KB
RT_Daq_log.vi 125 KBHi user,
do you get any errors while the program runs? Did you debug it?
Where is your data saved? I hope you don't expect the cRIO to save a file on your (Windows?) PC harddisc…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
External Calibration a PXI783x series FPGA board
Good Morning All,
Have any of you any experience with performing an external calibration on a PXI783x series FPGA board. There is an NI-RIO utility to do a self calibration, but we will need to figure a means of do a calibration to an external NIST traceable standard.
Thanks,
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW ChampionThe only way, at this time, to get external calibration is by sending the board to National Instruments. Unlike Data Acquisition boards there is no way for users to externally calibrate. If you would like to set that up, call in to support and we can get begin that process.
Rick Kuhlman
NI applications Engineer -
How to decide the maximum number of elements for DMA FIFO in R series FPGA
Greetings!
I'm working on a project with NI R series PCIe-7842R FPGA board. To achieve fast data transfer I'm using target-to-host DMA FIFO. And to minimize the overhead, I'd like to make the FIFO size as large as possible. According to the manual, 7842R has 1728 kb (216KB) embedded block RAM, i.e., 108,000 I16 type FIFO elements available in theory (1728,000/16). However the FPGA had compilation error when I requested such amount of elements. I checked the manual and searched online but couldn't find the reason. Can anyone please explain? And in general, what's the max FIFO size given the size of the block RAM?
Thanks!Hey iron_curtain,
You are correct that moving larger blocks of data can lead to more efficient utilization of the bus, but that's almost certainly not the most important factor here. Assuming of course that the FIFO on the FPGA is big enough to avoid overflows, I'd expect the dominant factor to be the size of read performed on the host. In general, larger reads on the host lead to improved throughput, up to the speed of the bus. This is because FIFO.Read is a relatively expensive software operation, so it's advantageous to make fewer calls to get the same amount of data.
Note that the larger your call to FIFO.Read the larger the host buffer needs to be. Depending on your application, it might need to be several times larger than the read size. You can set the buffer size with the FIFO.Configure node.
http://zone.ni.com/reference/en-XX/help/371599H-01/lvfpgaconcepts/fpga_dma_how_it_works/ explains the various buffers involved. It's important to note that the DMA Engine moves data asynchronously from the read/write nodes on the host and fpga.
Let me know if you have any questions about any of this.
Sebastian -
How to calculate logarithm(base 10)
Hi!
I know this probably belongs in a Math forum, but does by any chance anyone know how to calculate the value of a logarithm(base 10). The Math and StrictMath classes have implementations of log, but it's base e.
Any help is welcome.
Thanks!Hi!
I know this probably belongs in a Math forum, but does
by any chance anyone know how to calculate the value
of a logarithm(base 10). The Math and StrictMath
classes have implementations of log, but it's base e.
Any help is welcome.
Thanks!there is a math rule that says log(x)/log(n) = log n (x) -
TDS calculate on base value- in FB60
Dear Experts
My client has a requirement for TDS calculation in FB60 vendor Invoice.
Scenario:
A vendor issues an invoice for Rs 100000 with 12.36% service tax, where the total invoice amount is 112360.
As per their requirement, the client will enter the whole amount i.e 112360 in the amount filed in FB60 screen which has to be fully posted in the expenses GL.
As per the normal TDS calculation the TDS will be calculated for 112360. (Value 11236) But the client wants TDS to be calculated only for base amount i.e for 100000 (Value 10000) and not on the total amount.
Condition: The base amount should not be entered in the With holding tax field manually. The system has to automatically calculate the TDS for Base amount alone and no manual intervention is done.
The vendor invoice amount and the TDS % will vary for different invoices. But the TDS has to be calculated only on the base amount without manual intervention.
Kindly provide me ideas and solutions on what can be done for the above issue.
Accounting Entry :: FB60 :: Expenses Dr 100000
St.Input tax Dr 12360
Vendor Cr 111360
TDs Cr 1000Hi Shivakrishna,
Mani Kumar have given the right solution. But by this solution, system will take only base amount for calculation of TDS deduction. It will not consider the service tax amount as well as other type of tax amount like VAT or Excise.
But if you want to include the Excise and VAT in the base amount calculation, then go with Modified Net Amount radio button instead of Net amount radio button. In this case you need to maintain processing keys also against the TDS code.
Before doing any change, pl discuss with Business. Because as per my understanding of new circular, TDS should not be calculate on Service Tax amount only.
Regards,
Ankit Agarwal -
Internally Route DIO on R Series FPGA
Hello, currently using an R-Series PCIe 7852 board with LabVIEW 2010 SP1 on 64bit Windows 7.
I used to use a 6602 board and would sometimes use the RITS bus to connect the output of one counter to the input of another counter thus saving myself the trouble of having to physically connect them. On the 7852R board I'd like to connect the output of one DIO line to the input of another. I can physically use a wire but wonder if there's anyway of doing it internally like on the 6602?
Thanks,
EdEdward,
Stu is correct. On the FPGA you have access to all of the values at the same time, so you could either wire them together or simply just read off the original line instead of looping it back to another input. You actually have much more flexibility in terms of internal routing than on a 6602 card because all of the IO goes through the FPGA, whose behavior you define.The only caveat is that if youre going to be changing this often you may want to physically wire it instead of recompiling a bitfile to connect a single line.
Regards,
Kyle M.
Applications Engineering
National Instruments -
my number is 070-xxxx-xxxx...and I cant log into get apps or anything tell i give a 7 digit number...which I dont have. Whats the work around as I have already added my adress, zip APO AP etc etc ????
kickingcloud007 wrote:
my number is 070-xxxx-xxxx...and I cant log into get apps or anything tell i give a 7 digit number...which I dont have. Whats the work around as I have already added my adress, zip APO AP etc etc ????
It sounds as if you are trying to use the US store. Use the Japan store or use the US store with a US based address, credit card and phone number. -
Freight calculate on Base+Packing+Excise+Freigt
Hello SAP,
We have one scenario in MM pricing procedure.
Base Value + Packing Forward + Excise(10.3) = Subtotal
Subtotal + Freight = Total
Total1 + CST(12.5%) = Total2
Total2 + Octroi = Total 3
Total3 + LBT
Example:
Base Value 100
Packing Freight 1%
Excise(10.3%) on 101 10.30
Freight (Value or %) on 111.40 10
Total 121.40 + CST(12.5%) 136.58
Total 136.58 + 5% Octroi 143.44
Total 143.44 + LBT 2% 146.28
How to map in SAP Pricing procedure.
Please suggest if any configure step by step.
Thanks
Shitalfor P & F use packing condiiton category, condition class surcharge or discount
base the percentage condiiton on the gross price condition
for freight use freight or delivery type , surcharge or discount.
use 6 in subtotals
bring the taxes from the tax procedure using conditon jexs as statistical entry
calculate the nett value and base the octroi condition on that step
bring the value of octroi to the material using account key and accrue into octroi account using accrual key
add it for total in procedure, make the total statistical and base the other tax on it similar to octroi -
System should calculate the UPC/EAN Number automatically
Can we add the UPC calculator to SAP, MM01 so the system can calculate the ending checkdigit for us? Currently when we need to calculate the ending checkdigit for upc codes we go to an online site, key the number, calculate the ending digit, copy and paste into MM01. Can this calculation be added to MM01, Basic Data 1, EAN/UPC field?
If we key the 14 digit upc ending in 0, the system message can then tell us what the corrected digit should be or change it automatically for us. Currently the message says "the EAN xxx has an incorrect checkdigit"
example temp upc-key 55000011564120 and the message should say "ending digit should be 6" or the system can change to 0 to a 6 for us.
example real upc-00036000915450 and the message should say "ending digit should be 7" or the system can change to 7 for us.
We have to key the zero on the end or the system adds a leading zero up front (to make the full 14 digits) and just accepts.
Website we use to calculate the ending digits is http://www.gs1.org/barcodes/support/check_digit_calculator
Please help me in solving this scenario.....
Marc.Hi Mark,
For this scenario you will need to add custom code for automatic calculation of Check digit and thus modifying EAN/UPC no. entered by you to a correct EAN/UPC no.
However as soon as we enter EAN/UPC( with wrong check digit) no in basic data 1 tab we get an error u201CThe EAN 36000915450 has an incorrect check digitu201D. And it seems that in between entry of EAN/UPC and error message there is no customer exit/BADI is coming in which we could have written our custom code to generate check digit and correct EAN/UPC.
So an option is that if you are uploading multiple materials you can use BDC to upload all such materials and there you will have the possibility to correct the EAN/UPC using ABAP custom code before submitting it to MM01 screen.
Regards,
Rajwin. -
No encuentro mi número de serie/ i cant find my serial number
Buenos dias:
El día 30 de diciembre se compro lo que es adobe photoshop cc, y lo instale hace unos días y me encuentro con que no me aparece mi número de serie ni en mi cuenta que esta comprado deseo saber porque motivo no aparece.
Gracias
Luis Arango
Good morning:
in december 30 i buy photoshop cc, and i installed few days ago. I don found in my account my serial number. Can you help me
Thank you
Luis ArangoVe si esto te sirve: http://helpx.adobe.com/x-productkb/global/find-serial-number.html
Maybe you are looking for
-
Fusion drive ssd gone missing after boot
Hi all, I have a DIY fusion drive on my iMac which was working fine since I installed it over a year ago. This morning I booted my Mac and it got stuck while loading the Finder. Another reboot did not help so I booted the recovery partition and ran "
-
How do I get to see the procedures that are running?
Good afternoon. How do I get to see the procedures that are running? Thanks. Daniel Sousa
-
On first open, FF opens tabs for some addons websites
when addons are updated, FF restarts and the websites of the updated addons open in tabs to let u know those addons were updated and to be able to check their website fa further info (changelog, etc)... however firefox is now opening addon sites (fir
-
How to install new Software in Nokia N97
How to Install new software in my nokia n97 because i have latest 22.0.110 software and i like to have the new software from nokia .
-
Hi We are implementing ECC 6.0. We have applied all the required notes for eTDS. Still, we are not able to get the separate amount in Basic, surcharge and ecess columns in the certificate. Also the BSR code and the cheque no is not appearing. Cud u p