11-24-2023 08:58 AM
Hello everybody,
I'm working with a Witmotion inclinometer, which has proprietary software, which receives the data and displays it.
However, I need to transport this data to my application, developed in Visual Studio Code.
Witmotion brought me a code for Arduino Mega along with an HW-97 Serial converter to obtain information via serial communication.
Which I haven't tested yet.
However, as my application already works with DAQ, I would like to keep using it.
I know there is VISA that allows communication with Arduino.
But will it allow me some way to obtain information from the Arduino serial ?
Or has anyone already worked with this HW-97 directly in the DAQ, for my application it would be ideal.
I thank everyone who can contribute in some way.
11-24-2023 10:41 AM
You could directly read it using a USB-485 adapter as well.
What NI DAQ do you use?
Please share the link to the Witmotion inclinometer
11-24-2023 10:44 AM
Hello,
Thanks for answering.
My model is this: witmotion-sensor.com/products/witmotion-wtvb01-485-triaxial-displacement-speed-amplitude-frequency-vibration-sensor-ip67-waterproof-and-dustproof-for-motor-pump -vibration-monitoring
I have the DAQ 6008, 6009 and 6001 available.
11-24-2023 11:22 AM
So, the sensor has an RS485 interface and MODBUS protocol.
Unfortunately, the USB-600x series low-cost DAQs you've are not useful for the RS485 interfacing.
Next, you can get an off-the-shelf USB-485 adapter like the one shown in the image, do you have such a converter?
11-24-2023 11:45 AM
I don't have this converter at the moment.
But I can get it,
but with this converter I would enter the information through the computer's serial port, via USB.
not pass through DAQ, right?
Perhaps through LabView it will be the closest to DAQ that I can get using this way.
Thank you for your support.
11-24-2023 04:23 PM
Yes, you will get it through the serial port and LabVIEW can read/write data through the serial port.
The straightforward route is through the serial port. Checkout this material - https://labviewwiki.org/wiki/VIWeek_2020/Proper_way_to_communicate_over_serial
Using a NI-DAQ to communicate over RS485 is the most complex and round about way to get it working.
11-27-2023 07:15 AM
Thanks for all the help,
Could you please provide a more efficient DAQ model so that I can study communicating directly via 485?
Grateful.
Regards.
11-28-2023 07:55 AM
RS485 is a protocol, a DAQ is used for signals and not to implement protocols.
In any case, USB-485 is an option from NI (note, you need to use NI-Serial or NI-VISA libraries and not NI-DAQmx)
11-28-2023 08:01 AM
Thanks.
But I really need to stick with the DAQ USB 6008.
Using the Arduino Mega can I communicate serially with the DAQ 6008 USB and transmit this data?
And obtaining them through Labview, if possible, seems like an interesting solution for now.
Would connecting the tx and rx pins of the Arduino to an analog input on the DAQ give me this possibility?
Grateful.
11-28-2023 08:31 AM
If your goal is to capture data from Witmotion inclinometer, then all that you need is a USB-TTL485 converter, it could be those cheap Chinese ones as well and you don't need an NI DAQ or Arduino.