I think there many who have never seen Labview code so I have attached a screen shot of part of my code that handles sending commands to LinuxCnc to TCP port 5005. This one is for final command encoding for Jogging in linear continuous and Incremental modes. The term Vi used in the text below refers to virtual instruments and is used extensively in Labview.
The data arrives from the Gui's Subpanel Vi's on the left via a cluster that contains the values of variables that jogging buttons area coded to create when selected. This data is decoded from other data and separated out via the name 'Jog' and then further in to the actual data.
After this you can see the NML Hex coded commands in green. These are arrays. They are coded for NML types 209, 230 and 125. The type 209 and 230 require external data along with the contents of the arrays. The continuous jog mode is handled by case selection 0 in a similar way. It uses NML types 230,124 and 136. Type 136 being the Jog stop command.
The part on the very right sends data from the command generator section to the Sub Vi that does the actual talking to LinuxCnc command link at TCP port 5005.
The jogging part is completely operational now and the Milling machine is responding all jogging commands perfectly.
The below is part of my Labview command encoder function and is a picture of part of the actual code.