04-20-2009
11:24 AM
- last edited on
04-21-2009
08:20 AM
by
Support
Hello
I am just starting learning LabVIEW and have to complete this vi.
I need to output the data from continuous time shift, but I don't know what to do to translate it to acceptable one.
The attachment 1 is the vi.
The attachment 2 shows where the problem is.
Thanks
LPH
Solved! Go to Solution.
04-20-2009 12:00 PM
I can't load your VI here, but from your picture, I gather that the other cases put out an ARRAY of DBL on that wire.
In case 4 you're trying to output a scalar, so that's your mismatch.
If you want to put out an array in case 4, then you need to BUILD ARRAY in case 4. Wire the scaler into a BUILD ARRAY function, and the output is an array (of one element).
That'll get you past the error - whether that's what you really want to do or not, I can't say.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-20-2009 12:15 PM
And after you fix this error, you HAVE to replace your local variables with wires. The way you have it now, you have a reace condition where the values of the locals are being read before they are written to. NEVER use a local just because you think the wires will make you diagram look more 'messy'.
I'm also unsure about your approach towards reading the scope. You have a fetch function inside the loop. I believe you have to do an initiate before you can fetch a new waveform and that is outside the loop and only runs once. Do not use the run continuous button.
04-20-2009 04:25 PM
Thanks for your help guys,
to Dennis Knutson,
Sorry I don't understand "....fix this error, you HAVE to replace your local variables with wires......",
to CoastalMainBird,
It works now, but i have another question.
For the case 4, the result should be time shifting of a wave, but the reading will change continuously, and I want to record those numbers.
The result I got in case 4 contains only one number.
How can I make the result become a contiunous number?
Thanks again
LPH
04-20-2009 04:44 PM
Sorry I don't understand "....fix this error, you HAVE to replace your local variables with wires......",
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-20-2009 04:53 PM
How can I make the result become a contiunous number?
I don't know what you mean by "continuous number".
Blog for (mostly LabVIEW) programmers: Tips And Tricks