02-28-2007 07:27 PM
02-28-2007 07:33 PM - edited 02-28-2007 07:33 PM
Use a SELECT function:
If FIRST CALL Value = 0 else Value = previous value (from left Shift reg.) end
Message Edited by CoastalMaineBird on 02-28-2007 07:33 PM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
02-28-2007 07:36 PM - edited 02-28-2007 07:36 PM
Use the "first call?" function from the synchronization palette.
Message Edited by altenbach on 02-28-2007 05:36 PM
02-28-2007 08:45 PM
02-28-2007 10:59 PM
Well, it's not obvious to me why it has to be a subVI with a shift register. Why don't you do this directly in the main VI?
Anyway, just make a second input connector in the subVI for the boolean, wire it from the main VI, and used its value there too to switch things.
03-01-2007 07:36 AM
Try This Method.
-Kumar B.
03-01-2007 02:16 PM
03-01-2007 02:28 PM - edited 03-01-2007 02:28 PM
Time Data 0 5 10 15 20 35I need to sample the data and obtain the intermediate points (between 0 and 10 , 5 and 15) for analysis.
Consider this:
Create a cluster of {Time | Data } for each of your entries.
Create an array of those clusters.
Generate an array of TIMES that you want to know the intermediate values at ( 4, 8, 12, 16, for example).
For each of those times:
Feed the CLUSTER array, and the time into an INTERPOLATE ARRAY function.
Read out the corresponding DATA value.
In your example, for 4,8,12,16 you would get 9.0, 13.0, 19.0, 27.0.
Is that what you need?
Here's a picture:
Message Edited by CoastalMaineBird on 03-01-2007 02:35 PM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
03-02-2007 12:05 PM
Hi coastal maine bird............
Finally this worked out.............
Thanks a lot for your time and effort.......
Thanks,
radhika