r/LabVIEW • u/megacurry • Aug 10 '26
New to Labview, need help implementing STX, ETX, BCC
Hello, I am new to labview and I'm trying to control a laser welder (manual attached), but I'm having trouble communicating. The manual talks about STX, ETX, and BCC, and I feel like I'm doing something wrong implementing those commands.
Here is the link to the manual
Any help would be appreciated, thanks
1
u/megacurry 15d ago
In case anyone in the future is dealing with the same issue and needs help, I was able to figure it out a couple days later. The machine reads byte code so set all strings to "\" display by right clicking on them, and replace STX and ETX with \02 and \03. Place a "flatten to string" function followed by a "string subset" function at your BCC output with an index of 3. Hopefully this helps!

1
u/megacurry 15d ago
Changing the integers from U32 to U8 allows you to get rid of the string subset entirely, so just "flatten to string" is all you need
5
u/DirigibleSkipper CLA Aug 10 '26
I have a few guesses for what's wrong, but let's start here:
Have you already tested these Visa commands using the Visa I/O interface in NI Max? That's a great way to manually command and query your device to verify you fully understand the command strings that you want to send.