04-05-2018 05:15 AM - edited 04-05-2018 05:25 AM
Hi,
I am trying to interface OMNI-ECO-200M DIN Rail Mounted Ultrasonic Flow Meter with LabVIEW
I have some question about the best, easy and reliable method of interfacing the device with LabVIEW
1. Looking at the datasheet of OMNI-ECO-200M the Signal outputs are
OCT output: Pulse signal
Relay
RS485 o/p with MODBUS Slave support.
Output Current : 4-20mA
Signal Input : 3 channel analog signal inputs.
Since pulse is mentioned as output type, can use a counter to count the pulse ?
Also it is mentioned as RS485 o/p with MODBUS Slave support - How easy is it to use a MODBUS compared to using current output of 4-20mA. LabVIEW NI-9203 general-purpose analog input modules can be used to interface with the OMNI-ECO-200M device ?
2. Is there a NI MODBUS library files for LabVIEW 2017. The Below link shows the library file for version 86.
http://www.ni.com/example/29756/en/
Also I was not to install the library file as recommended on the READ ME file comes along with the zip file.
3. Since RS485 is mentioned on the datasheet do I need to buy USB-485 Serial interface device and communicate with LabVIEW ?
4. I have USB - 6211. Will I be able to use it to interface OMNI-ECO-200M device as USB - 6211 has AI and AO.
The input current during overvoltage condition is mentioned as ±20mA.
OMNI-ECO-200M Output Current is 4-20mA. Will I be able to use USB - 6211? Or do I need to get USB-9203 16-Bit Analog Input Module ?
Also I need to interface 4 other devices with LabVIEW. Some of them have 4-20mA current ouput and RS485.
So can I please know if serial bus module is better option or 16-Bit Analog Input Module is a better option for interfacing two or more modules ?
Thanks.
Regards,
Vikash
Solved! Go to Solution.
04-05-2018 06:17 AM
Personally, I would get the 4-20mA module and use that to get your readings. I mostly say this for the simplicity and the timing will be more deterministic. Something like the NI-9203 looks like it should do the job (8 channels). So get that along with a cDAQ chassis of your choice.
04-05-2018 07:23 AM
That library will also work in LV 17.
There is also a newer Modbus library in the Data Communication palette.
04-05-2018 07:45 AM
@RavensFan wrote:
There is also a newer Modbus library in the Data Communication palette.
RavensFan is referring to the NI Modbus Library that is currently available on the NI Tools Network. You can install it using the JKI VI Package Manager (VIPM).
04-05-2018 08:27 AM
Thanks Crossrulz,
I had gotten it so long ago, I forgot it didn't come built into LabVIEW.
04-05-2018 08:39 AM
Oh I need to buy cDAQ chassis ?
I didn't realise that I need a cDAQ chassis.
Is there a USB version of 4-20mA module ?
Or will my USB-6211 will perform the task ?
04-05-2018 08:54 AM
04-05-2018 09:02 AM
@VikashKumar23 wrote:
Oh I need to buy cDAQ chassis ?
I didn't realise that I need a cDAQ chassis.
Is there a USB version of 4-20mA module ?
Or will my USB-6211 will perform the task ?
Your problem is the USB-6211 is setup to read voltage, not current. So if you want to use it, you have to add in some conversion. You could just use a 50 Ohm resistor between the signal and the return. But you typically want to add some sort of buffer circuit to protect your DAQ and help with ghosting if you do that. A simple Voltage Follower works well.
Or you can get an NI-9203 and a cDAQ-9071 for ~$900. The 9071 is a single slot USB cDAQ chassis.
04-05-2018 10:17 AM
There is also an output of 0-10V from the sensor.
My USB-6211 has 16 AI which can accept voltage range of +/-10V.
I am trying to avoid spending £495 for the NI-9203 and £285 for the chassis.
NI sells USB-485 which is again £175. Can I use USB-485 from any other manufacturer like FTDI. ?
04-05-2018 12:53 PM
For 485 communication, I've never actually used a USB RS485 device, I've always gotten away with using a USB RS-232 device. This can be based on Prolific, FTDI, or probably many others. Then I'd use a RS232 to RS485 adapter. Either way, to use VISA (and the Modbus protocol) you aren't required to use the NI based hardware. As long as it shows up as a port in device manager, and you have NI-VISA installed it should work just fine. The Modbus API I like isn't from the Tools Network, it may have came with my RT Module but it is also on the Data Communication palette. The benefit of this is you can get more than just the single analog reading. Typically you can read set points, set setpoints, and get status. Where with the analog reading you just get a single reading, and have to assume the device is plugged in and working on the other side. Still analog is simpler if you have the spare IO.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord