10-20-2016 09:34 AM
Hello,
I have a file like this :
G0 Z 0.000 G1 Z 0.000 G1 X4082.009 Y5013.133 G1 X7505.601 Y5013.133 G1 X7505.601 Y3783.510 G1 X4981.293 Y3783.510 G1 X4981.293 Y1245.442 G1 X7521.378 Y1245.442 G1 X7521.378 Y 0.000 G1 X4082.009 Y 0.000 G1 Z 0.000 G0 Z 0.000 M9 M5
It's a gcode file, I would like to put each axis on a different column. For this example it will be like this :
For X
4082.009 7505.601 7505.601 4981.293 4981.293 7521.378 7521.378 4082.009
For Y
Y5013.133
5013.133 3783.510 G3783.510 1245.442 1245.442 0.000 0.000
For Z
0.000 0.000 0.000 0.000
I tried to do like I made on my VI but this is not what I want.
Can you help me ? Thanks
10-20-2016 11:42 AM
10-20-2016 12:45 PM
Thanks for your help, but what do you use for the "status" box ?
10-20-2016 12:48 PM
That is an Unbundle by Name.
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
10-20-2016 09:54 PM
Look at Scan from String (drop it on your own Block Diagram, right-click and choose "Help" to learn about its inputs and outputs). Notice the Error Line? That is a Cluster that contains three parts -- Status (True if an error), Code (the Error Number), and Source (a string describing where the error occurred). The code is designed to "do something when Scan From String does not return an error".
However, about 5 years ago (I'm guessing), NI "enhanced" the Boolean Controls to allow them to accept an Error Cluster as an input and treat it as though it was just the Error Status. Thus you can do the following:
Just take the Error Line, wire it directly to a Boolean "Not", and you get (directly) the Boolean "Not an Error".
Bob Schor
10-21-2016 06:45 AM - edited 10-21-2016 06:47 AM
It's almost November, but you don't need to be an American citizen to vote for this - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Conditional-indexing-should-accept-Error-Cluster/idi-p...