09-22-2007 09:32 AM
09-22-2007 09:50 AM
09-22-2007 10:27 AM
09-22-2007 11:37 AM - edited 09-22-2007 11:37 AM
Sometimes a picture can show it better.
Can you explain how that input string to this while loop looks like? It seems to me that whever you are doing, you are doing it way too complicated. 🙂
(You defniitely don't want to configure the tunnel to use default if unwired, because you loop can only stop if there is an error, an error would always clear the array and you'd never get a useable output).
Message Edited by altenbach on 09-22-2007 09:43 AM
09-22-2007 04:31 PM
09-22-2007 05:30 PM
You have a simple string to extract three arrays, but it takes you a screenful of code to turn it into a table. What does your missing subVI (stringToByteArray.vi) actually do? It is a bad idea to name your VIs so they can be confused with existing system VIs ("String to Byte Array" in this case). So, you convert parts of your string to a byte array (in one form or another), then immediately back to a string using "string to byte array". You are doing this all way too complicated!
About your timing problem. You can convert any time in days, hours, etc to a number in seconds using simple math. Where do you perceive a problem?
What determines the loop rate of your VI and what is a typical loop rate? What is IIOA?
09-22-2007 05:33 PM
09-23-2007 10:35 AM
09-23-2007 10:49 AM
09-23-2007 12:07 PM - edited 09-23-2007 12:07 PM
@TaKiMi wrote:
Hi Altenbach...
It will read all data such as...V = 240.21 I = 24.02 P = 5769.98 in one string.So its hard to me to seperate this V, I n P into 3 section.
Not that complicated! Here's one quick way how you could parse the string (code A). If you want to built the table by appending consecutive iterations, you can do so in a shift register (code B). I attached code B as a VI, modify as needed.
That's normal since a diagram constant is a data source (like a control) and you can have only one source per wire. Once you delete all the rest, the error will clear up.
@TaKiMi wrote:
Then, when I change this indicator into constant...broken wire will appear.
Message Edited by altenbach on 09-23-2007 10:07 AM