function ERF unclear entries
Hi all
in the description in this link http://zone.ni.com/reference/en-XX/help/370051Y-01/cvi/libref/cvierf/
It is oentioned that the iron works Erf (double x, double * erf) 2 second inputs.the entry must be an array of double, but that represents exactly this inpt function because as much as I know erf in matlab have only a single entry.
Explanations please.
For this product you use (that you have not said, but it seems that LabVIEW Comms, Erf function is not supported in Mathscript or as G-code.)
Now, you can try this code:
A1 = 0.254829592;
A2 =-0.284496736;
A3 = 1.421413741;
A4 =-1.453152027;
A5 = 1.061405429;
p = 0.3275911;
s = 1;
<>
s =-1;
end
x = ABS;t = 1.0 / (1.0 + p * x);
y = 1.0 - (((a5 * t + a4) * t) + a3) * t + a2) * t + a1) * t * exp(-x*x);y = s * y;
I converted from here: http://www.johndcook.com/blog/cpp_erf/
In addition, this code could also be integrated easily using C-node too.
Now, most likely Erf function will be available in future versions of LabVIEW Communications System Design.
Tags: NI Products
Similar Questions
-
For HP first, when tracing of f (x) = erf (x), he gets the undefined values for integer x values. ERF (1) or erf (2) is undefined. No problem with erf (1.1). Home in rpm mode, I can do it "erf (1.1)", Enter, Eval and get a value. But when I do "erf (1) ', Enter, Eval it just says: erf (1). This indicates as trace that the erf function cannot tolerate as integer values. Even if I try 1.0 it still has a problem. It has the value "approx. (erf (1)) ', Enter, Eval. So what's happening? Why would it tolerate "approx. (erf (1)) ', Enter, Eval but not to do anything with" erf (1) ', Enter, Eval?
Also, RPM mode I can't do 1.1, Enter, erf, Enter. It requires the algebraic mode of this function. This is the normal scenario for functions special single argument? For example, I am able to make 1.1, Enter, sin, Enter, where I have indexed into sin instead of SIN.
Hello
Iron and other elements in the menu "special" brought the side CASE of things. So when you do erf (integer), it keeps things as a symbolic or exact object. The way in which the CASE in the earlier works is that a numeric value with a decimal value in it is interpreted as a numeric value and evaluate numerically. Try, for example, in the CASE of 1/2 vs 1. / 2 (with the comma on the 1. In one case, he renvoie.5 1/2 and in the other
While tracing the curve, the same thing can happen when the CASE orders. Chart approx. (erf (X)) draw what you want.
Now for RPN, this also has something to do with the CASE orders. In the CASE, there are really no command argument "single. You can do things like erf (1,2,3,4,3,4,2,2,3) and fortunately it will calculate for each of them. This allows you to use common or simple in very flexible ways commands. For example, sin can take any number of arguments you pass and calculate all. This allows passage without soldering of the vectors of arguments through complicated calculations.
During operation in RPN mode, the system recognizes now that this command is a command of CASES which can take any number of arguments you want. This is why it does not only immediately calculate the result. Give him a count within the () to specify the arguments to remove the battery. For example, erf (4) would consume 4 arguments and return a vector of the results.
-
separate the function but keep entries resulted in figures
Hello
I created a function related to other cells. For example: cell A1 should result in B3 less B2. Now, I want to keep the number of a1 license but dissociate cells from other cells B3 and B2 so that I can copy and paste the number to another cell.
How can I do?
I use numbers 3.6.1
Hi paul,.
Copy and paste formula results is what you want. You stick in the cell you copied from.
Quinn
-
I have a laptop with keys 'English' and 'Japanese' on the same key board. For example "A" key is also 'CHI' in Japanese, 'B' is also "KO" in Japanese. How to switch between the two. It changes itself. This seems to happen after the mail in Hotmail changed in Outlook.
Thank you
Tomoko
Hello
Please go to the Microsoft Community Forums.
From the description of the question, we understand that you want to switch between two keyboards entries.
Let me go ahead and help you with the issue.
Here are some steps you can follow to resolve the problem:
Step 1:
To change the default language, follow these steps:
a. Click Start and then click Control Panel.
b. double-click regional and Language Options.
c. click on the languages tab, click details and then click Add.
d. under input language, add the language that you want to use.
e. under Configuration keyboard/IME, click the keyboard layout that you want, and then click OK.
Note: Only users who have permissions on the local computer can configure the following options on the languages tab in the regional and Language Options.Step 2:
To resolve this problem, change the hot key settings in your computer system. To do this, follow these steps:
a. right click on the language bar and then click settings.
b. in the Text Services and input languages window, click the Advanced Settings button select an action and then click Change Key Sequence.
c. set keys and then save the settings.Hope that answers your query. You can write back to us for other queries/problems related to windows and we will be happy to help you further.
-
Call function pipeline with entry as a record of cursor type parameter
Hello
I want result set of query curosr to function in pipeline and then proceed to Ref cusror for java application. I wrote the code below:
It gives me compilation error when you call the function pipeline (type_out (get_emp_rec)). Is it wrong to call pipelined function or please correct where I'm wrong.CREATE OR REPLACE PACKAGE emp_pkg IS TYPE t_emp_rec IS RECORD(empid varchar2(5),last_name varchar2(25),email varchar2(25)); type obj_t_emp_rec is table of t_emp_rec; CURSOR get_emp_data_cur(empid IN employee.employee_id%type) IS SELECT EMPLOYEE_ID,LAST_NAME,EMAIL FROM employee WHERE employee_id=empid; --Rowtype for table TYPE t_emp IS TABLE OF get_emp_data_cur%ROWTYPE INDEX BY PLS_INTEGER; --Object for the table type created get_emp_rec t_emp; PROCEDURE Populate_emp_details(empid IN employee.employee_id%type,get_emp_rec OUT t_emp, result out sys_refcursor); function type_out(get_emp_rec in t_emp) return obj_t_emp_rec pipelined; END emp_pkg; / CREATE OR REPLACE PACKAGE BODY emp_pkg AS PROCEDURE Populate_emp_details(empid IN employee.employee_id%type,get_emp_rec OUT t_emp,result out sys_refcursor) IS BEGIN SELECT EMPLOYEE_ID,LAST_NAME,EMAIL BULK COLLECT INTO get_emp_rec FROM employee WHERE employee_id=empid; open result for SELECT * FROM TABLE (type_out(get_emp_rec)); EXCEPTION when no_data_found then dbms_output.put_line('Invalid booking number entered'); END Populate_emp_details; function type_out(get_emp_rec in t_emp) return obj_t_emp_rec pipelined as currec t_emp_rec; begin for i in 1..get_emp_rec.count loop pipe row(currec); dbms_output.put_line('row count of rec -'|| get_emp_rec.count); end loop; end; END emp_pkg; /
Help, please.
Thank youEngine SQL doesn't know PL/SQL types.
Really? :
SQL> create or replace package emp_pkg is type t_emp_rec is record ( empid varchar2 (5), last_name varchar2 (25), email varchar2 (25) ); type obj_t_emp_rec is table of t_emp_rec; cursor get_emp_data_cur (empid in employees.employee_id%type) is select employee_id, last_name, email from employees where employee_id = empid; --Rowtype for table type t_emp is table of get_emp_data_cur%rowtype; get_emp_rec t_emp; procedure populate_emp_details (empid in employees.employee_id%type); function type_out (empid in employees.employee_id%type) return obj_t_emp_rec pipelined; end emp_pkg; / Package created. SQL> create or replace package body emp_pkg as function type_out (empid in employees.employee_id%type) return obj_t_emp_rec pipelined as currec t_emp_rec; begin populate_emp_details (empid); for i in 1 .. get_emp_rec.count loop currec.empid := get_emp_rec(i).employee_id; currec.last_name := get_emp_rec(i).last_name; currec.email := get_emp_rec(i).email; pipe row (currec); --dbms_output.put_line ('row count of rec -' || get_emp_rec.count); end loop; return; end type_out; procedure populate_emp_details (empid in employees.employee_id%type) is begin select employee_id, last_name, email bulk collect into get_emp_rec from employees where employee_id = empid; end populate_emp_details; end emp_pkg; / Package body created. SQL> select * from table(emp_pkg.type_out(114)) / EMPID LAST_NAME EMAIL ------- ------------------------------------- ------------------------------------- 114 Raphaely DRAPHEAL 1 row selected.
;)
-
HP 50 g: connecting two functions in hp 50g
Hi, is it possible to create a library by linking the two functions. I mean, the output of one function matches the entry of another function?
Thank you!
REYNEL.
REYNEL wrote:
Hi, do, I thank very you much for your interest to help with this problem.
I want to create a library that connects or call s one or more functions or expressions seated in different libraries. For example.
There is in the library has a function y = f(x) * g(x) + h (x)
In the library there is another function, called m (x) = 2 x + bx ^ 2 + y for example.
I want the new library will be able to call A library and use the result of this library in this case (y) and put it as an entry in the function of m (x) of the library.
Is it clear now?
Thank you very much for your support.
REYNEL.
Still not clear enough, pls give more specific example, as in "m (x) = 2 x + bx ^ 2 + y".
How many libraries you want, two (has and B), or three (has, B and a new library - "I want the new library of power...") »).
If you give an example detailed perhaps someone will be able to give you the answer, if you ask a general question, you will get references to books or comments of a general nature only.
-
help reqd with an advanced function of book of LucD
Hey all
Recently bought Luc relaxing book "Automating vSphere Administration" to help me understand how to create advanced (among others). I tried one of his scripts on pg 437 (Get-VMGuestDiskUsage) - as shown below. Problem is I have a few problems and I don't know what seems to be the problem. It could possibly be something very basic (but having worked on it for a week) I'm at the end of my home as to what it could be? Any help would be great appreciated ly
Problem 1) every time I try and entry of the virtual machines via the pipeline, be they of a txt file or a simple 'get - vm"command I get
Get-VMGuestDiskUsage cmdlet in the command pipeline position 1
Provide values for the following parameters:
(Type! help.)
VM:AND then
Cannot process the transformation of argument on the parameter "vm". Could not convert the "" value of type 'System.String' to type 'VMware.VimAutomation.ViCore.Impl.V1.Inventory.VirtualMachineImpl '.
I understand that it is because the input objects are of type "System.string" and what I need is a type of "VMware.VimAutomation.ViCore.Impl.V1.Inventory.VirtualMachineImpl". But his declared top so I do not understand?
Problem 2)
Where it is said $objDisk | Add-Member - MemberType Noteproperty-Name 'Use %' - value ('{0:p2}' f (($disk.capacity-$disk.))) FreeSpace) / $disk. Capacity))
There seems to be a problem with the DIVISION operator (this does not work when processed against the ($disk.capacity - $disk.freespace) value) I tried to get into things like 1 MB ', but every time I have replace their return with $disk.capacity I do not get the output? !!! ??
I know that it can be easy for the 'gurus' out there, but I realized how convenient these advanced features are, and as soon as I can get my head as to why this is happening, I hope I'll be able to improve what I learned a lot faster. I simply can't work and so desperately need your help. Why did I NOT?
The script is below and I copied exactly from the book (the only thing I added was a call at the bottom of the function of an entry by calling the real function (for example, Get-VMGuestDiskUsage)
Once again thanks a lot in advance for any help
Munster99
Function Get-VMGuestDiskUsage {}
< #.
. LOGBOOK
Gets a guest VM OS disk usage information
. DESCRIPTION
This function creates a report with the VM guest operating system disk usage information
. NOTES
Source: Automating vSphere Administration
Authors: Luc relaxing, Armin Van Lieshout, Jonathan Medd,
Alan Renouf, Glenn Sizemore
. VM PARAMETER
The computer object virtual to create a report on
. EXAMPLE OF
PS > Get-VMGuestDiskUsage - VM (get - VM Win *)
. EXAMPLE OF
PS > Get - VM | Get-VMGuestDiskUsage
# >[CmdletBinding()]
(Param
[Parameter (mandatory = $True)]
ValueFromPipeline = $True
HelpMessage = "Enter a VM object")]
([VMware.VimAutomation.ViCore.Impl.V1.Inventory.VirtualMachineImpl] $vm)
{IN PROCESS
# Hide the errors that appear if VMware Tools is not installed
# or VM is PoweredOff
$ErrorActionPreference = "SilentlyContinue".
$vm = get - VM ($_)
{foreach ($disk in $vm.guest.disks)}
$objDisk = New-Object system.object
$objDisk | Add-Member - MemberType Noteproperty-VM name-value $vm.name
$objDisk | Add-Member - MemberType Noteproperty-name of Volume-value $disk.path
$objDisk | Add-Member - MemberType Noteproperty-CapacityMB name-value ([math]: Round($disk.capacity/1MB))
$objDisk | Add-Member - MemberType Noteproperty-FreeSpaceMB name-value ([math]: Round($disk.freespace/1MB))
$objDisk | Add-Member - MemberType Noteproperty-Name 'Use %' - value ('{0:p2}' f (($disk.capacity-$disk.))) FreeSpace) / $disk. Capacity))
$objDisk
}
}
}Get-VMGuestDiskUsage
Remove the last line in the .ps1 file, then point the new .ps1 file source
. ./Get-VMGuestDiskUsage.ps1
Then, on the command line to do
Get-Command Get-VMGuestDiskUsage
That should tell you if the function is known to the PS engine once you point of origin of the .ps1 file.
If it is known, just do
Get - VM MyVM | Get-VMGuestDiskUsage
-
passing an instance in a dynamically defined function
This problem is really little Orthodox, but there must be a solution that I am more looking.
I'm trying to set this function so I can move the sprite of CardButtons to the function add the entries. It "works", but there is a problem: the sprite of CardButtons used in the function is determined by the value of i at the time of the function call (or in other words, the value of i when I click on the sprite).
I want the sprite spent literally the [i] CardButtons value at the point when the function is defined.
CardButtons [i] .addEventListener (MouseEvent.CLICK, CardFunctions [i] = function() {AddCards(CardButtons[i],PlayerHand[player-1][PlayerHand[player-1].length-1]) ;});
Is there a way I can do this, or is there a better way to do what I'm doing?
I guess for another example:
I want to CardFunction [0] to store the AddCards function with the value of CardButtons [0] passed, it is NOT dependent on the value of i.
Thanks in advance, it's driving me crazy.
CardButtons [i] .addEventListener (MouseEvent.CLICK, cardF);
function cardF(e:MouseEvent):void {}
AddCards (e.currentTarget, whatever);
}
-
Hi, I have problems with the function of text entry, I had created a comment field but when typing go in a single line.
I would like to know if theres any way to alow typing in more than one line in the same text field.
Sorry for my English, thanks.
I tried the following which resulted in an editable multiline text field (after the change of code in Flash Builder)
- Created a text input in CF and resizes to display multi-line
- Fc .fxp file imported from Fb and passed (in src/Main.mxml) under the following line of code:
s:TextInput height = "244" text = 'my text field.' width = "431" x = "191" y = "173" / >
TO
s:textarea height = "244" text = 'my text field.' width = "431" x = "191" y = "173" / >
If you now run your Fb app, it will result in an editable multiline text field.
Be sure to do it when you have finished the layout and design of your interface in Flash Catalyst. Once you move to Flash Builder, this is where you fill in your application.
I hope this helps.
Tanya
-
Privileged calculator HP - NORMALD_CDF and NORMALD_ICDF problem
Normal distribution functions do not work as documented. The entries are average, standard deviation and X or probability according to the function. In all cases, the functions ignore the entry of mean values and standard deviation and assumes that 0 and 1 for these values. Is there a fix for this problem?
Hello
You can post your problem here:
https://groups.Google.com/Forum/?fromgroups#! Forum/comp.sys.HP48
There are members of the team of Calculator HP that browse this newsgroup and the first is discussd it.
-
I want to maintain the "frequency of sampling to report signal frequency" a constant.
I want to generate sine waves of varying frequencies, say, from 1 Hz to 1 kHz. Sometimes, a swept frequency sine wave. The problem is that I want to maintain the "frequency of sampling to report signal frequency" a constant. That means, the sampling frequency must be 20 or 30 times the frequency of the signal. This should be done automatically. For example, a sweep of 1-10 Hz, if the sampling frequency is 30 Hz at the beginning, it should be automatically updated at 300 Hz as the frequency of the signal reaches 100 Hz. Someone you will suggest a possible solution?
The basic generating function function has an entry titled "sampling info". It is a cluster and one of the elements is the number of samples. You just need to set this based on your frequency.
I suggest strongly that follow you the course 101 of LabVIEW.
-
loss of palette, daq Assistant
Hello
in labview 2011.
in function EXPRESS pallets, entry, I can not find the icon Wizard daq (to create the acquisition express VI).
Comment get it back.
Thanks in advance
Please install DAQmx after installation with support enabled for the version of Labview and Labview.
-
fract/exp to problem number string.
Hi ppl,
I have a very simple question. I want to convert string 5.3696075E - 4 for the number. in my program, it gives me only 5.
Please, help me.
Your operating system is probably to use a comma instead of a period as the decimal separator.
The Fract/Exp string to number function has an entry at the top Optional Boolean. The default value is True, revealing LabVIEW use parameter system OS for the separator.
'Use decimal system (T)' set to false, and that should allow you to convert the string correctly...
-
Threshold setting on channels DPO4032 with driver tkdpo4k
It seems to me that there is a bug in the trigger functions check for entry level limit to driver tkdpo4k for Labwindows/CVI (Version 4.3.1 released July 16, 2009) when you use a field DPO4032.
Instruments manual tells us (see http://www2.tek.com/cmsreplive/marep/14938/071212103web_2009.02.10.14.36.48_14938_EN.pdf , page 77): AUX in: relaxation, level range is adjustable from + 8V to-8V.
However, if I try to set the level of 1, 5V with tkdpo4k_ConfigureEdgeTriggerSource () it always returns IVI_ERROR_INVALID_VALUE.
Looking at the source shows the following code in tkdpo4kAttrTriggerLevel_CheckCallback():
[...]
If (! strcmp (tSource, TKDPO4K_VAL_EXTERNAL))
EXT = 1.0;
If (ext! = 0.0)
{
/ * - Trigger source is external-* /.
checkErr (tkdpo4k_CheckRangeWithPrecision (vi, attributeId, value,-1,0 * ext, 1.0 * ext));
}[...]
which limits the trigger level setting to +/-1.0 V.
The same code are found in tkdpo4kAttrTriggerLevelByCh_WriteCallback() and in tkdpo4kAttrDelayTriggerLevel_CheckCallback() it is still limited to +/-0.8 V (used in tkdpo4k_CheckRangeWithPrecision () factor is 0.8 instead of 1.0).
In a minimum amount of solution I just changed the value of the post to 10.0 and the factor of tkdpo4k_CheckRangeWithPrecision () for 0.8 in all variants and now accepts the 1, 5V without problem on the DPO4032.
Can @NI make you that this problem is fixed in the next version of this driver?
However I am not sure that my solution is made for all scopes that are supported by this driver. I did ' t check all manuals. You will need to present a model to load limit check here.
The problem seems to be solved now woth the updated version.
-
Can I get LabView fires on when a measure reaches a certain value?
1. I'm running an expirment in another room, and I'd like to be able to leave, then have it send me an email (or something, we'll just say run a .exe or comparable) so that I can know to go back and monitor the experience.
Are there features for which BT I've not seen? What in versions 8.6 or future?
2. I'm having serious crashes with my XP SP2 and LV 8.5.1, running a VI which loop continuously, although I think today that maybe I thought about it. It was perhaps because of my anti-virus, AVG Free software.
He knows stability problems with anti-virus software, or in the edition of XP in general? I get crashes between 20 minutes and a few hours in, but then just restart to fix it. I just uninstalled AVG Free (obviously not a permanent solution) and try without.
If you want your program to perform a specific action based on a measure, the simplest is to use the comparison functions. The entries are polymorphic, so you can wire a variety of types of data to an entry. You can then wire just the output of a case statement. You have e-mail on data Communication functions > protocols > SMTP e-mail palette.
Maybe you are looking for
-
When Firefox is maximized, the empty space below the Firefox button is almost 1/3 height. About: config, I see entries to specify what the minimum and maximum width as "browser.tabs.tabMinWidth", but none for its height.
-
How to determine or make a 3rd party app by default? As Acrobat reader for PDF files?
I use a PDF with forms to fill out for my business, and when I open the PDF file, the forms are not to fill in the 'default' program that opens to them. I need to change the default application in Acrobat reader or another 3rd party app.
-
Control of the ZL62044 of Zarlink with NOR-4851
Hello We use Zarlink ZL62044 unit which is a 2 sons but not standard I2C. I'm am tryng to read and write in the Zarlink ZL62044 with the help of NOR-8451 Labview with the I2C read & write VI.
-
More Hotmail account - &#62; w/o Messenger ads?
What bugs really me that if ive got a Hotmail Plus account (which I do actually) ads are removed from the Live site, which is a very good thing (for one, I don't like ads on my personal page and for the two ads on the website of hotmail are just terr
-
In PeopleCode SQL and view comments
Question #1When we get PeopleCode Oracle patches, they will often add comments on top of comments like thisOriginal code:/ * Original commented code * /.New code delivered:< * new comments./ * Original commented code * /.* >The media how the existing