04-10-2021 01:16 PM
Trying to connect to a F329 Deci-newton load cell. The manual can be found here:
DSCUSB - Load Cell & Strain Gauge to USB Converter (mantracourt.com)
I am trying to communicate with the load cell via the virtual com port and the load cell takes ASCII commands.
This command of the script collects readings from the load cell
!001:SYS?<CR>
When I try to run this code, (screen shot attached) I don't get a reading but the code just runs continuously. I can connect to the load cell via a software the company provided, but I am having trouble in labview.
04-11-2021 11:39 AM - edited 04-11-2021 11:40 AM
Hi BertK,
@Bertk wrote:
This command of the script collects readings from the load cell
!001:SYS?<CR>
When I try to run this code, (screen shot attached) I don't get a reading but the code just runs continuously.
Because you apparently don't know the meaning of "<CR>"!
This indicates the CarriageReturn character, or a byte of value 13 (decimal)/0D (hex)! You need to change just the string constant:
(Read the LabVIEW help on this different display modes!)
Btw. you don't need to add a NewLine (aka NL aka \n aka 10d aka 0Ah) when your device is waiting for a CR…