07-29-2008 09:13 PM
07-30-2008 03:38 PM - edited 07-30-2008 03:39 PM
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.
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.
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