Re: curve fit with daqmx
- From: Jaime F <x@xxxxxxxx>
- Date: Wed, 30 Jul 2008 15:40:08 -0500 (CDT)
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
.
- Prev by Date: creating a step function
- Next by Date: How do I get LabVIEW to find a file?
- Previous by thread: creating a step function
- Next by thread: How do I get LabVIEW to find a file?
- Index(es):
Relevant Pages
|
Loading