Re: curve fit with daqmx



Hi,

You have two options: one (easier) is to right click the
Curve Fitting express VI and select ?open front panel?, there you will see and
string constant that is passing with the equation change it to a control and
wire it in the connector pane. Make sure you select: ?operate->change to
edit mode?. After you have done this you will have access to the string control
and you will be able to make some small code that will parse the string with
the coefficients that you need. See figure 1.
<img src="http://forums.ni.com/attachments/ni/170/345277/1/express%20modification.png";>
figure 1


Second options would be: instead of using the express VI
looking for the low level replacement, but this is a little bit more difficult.
See Figure 2.
<img src="http://forums.ni.com/attachments/ni/170/345277/2/functions%20pallete%20curve.png";>
figure 2


Now for you second question: I have a question who is
returning a flat line the curve or the DAQmx assistant? What I would suggest is:
1-checking how many samples you are reading back from the card, 2- the extract
portion of the signal has 0 and 1 limiters does that returns you 1 sample, 3-
probe the input to the filter the output and the input to the curve fitting and
check what values are actually been passed.
I hope it helps

Message Edited by Jaime F on 07-30-2008 03:39 PM


express modification.png:
http://forums.ni.com/attachments/ni/170/345277/1/express modification.png


functions pallete curve.png:
http://forums.ni.com/attachments/ni/170/345277/2/functions pallete curve.png
.



Relevant Pages

  • A couple of questions about updating data through a dataset
    ... assigned it the appropriate string (depending ... upon whether it is a stored procedure or not) and executed it. ... Second question: What DOES the Updatemethod of the SqlDataAdapter really ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: char *s = "Google"
    ... CBFalconer wrote: ... where this string "google"will be stored? ... So re-posting the second question is reasonable. ...
    (comp.lang.c)
  • Regex help
    ... I guess all the fancy syntax is pretty much confusing me all the time. ... From every line that I encounter, I want to extract the "Test Data Form" from the string. ... Also I have a second question. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: how long can a string be
    ... Second question, I need to be able to find a certain character in the ... I use InderOf to fine this character in a string. ... >> I'm receiving info from a com port into a string. ...
    (microsoft.public.dotnet.languages.csharp)

Loading