meriam

Purpose:

Read data from a Lamanar Flow Element via a USB and put it into a CyFlex variables.

Enter:

meriam &

Where:

N/A

Example:

 

Notes:

The cyflex variables must be created in a gen_labels before this task is ran, it does not create the variables. The variables are:

LFE_DP – dew point
LFE_P – pressure
LFE_T – Temperature

Setup:

First a udev rule must be created for for the usb connection to be read properly.

1. go to the /etc/udev/rules.d directory

– cd /etc/udev/rules.d

2. create a new file in this directory that does not share a number with any of the other files.files usually are the format XX-name.rules where XX is the number. So if there is a file with 60-name.rules, do not use the 60 number for the file you create. You need to create this file with sudo.

– sudo nedit 10-meriam.rules

3. in this file add:

KERNEL==”ttyUSB[0123456789abcdef]” GROUP=”root”, MODE=”0666″ KERNEL==”m1500″ GROUP=”root”, MODE=”0666″

ACTION==”add”, ATTRSidVendor==”0403″, ATTRSidProduct==”95ea”, SYMLINK+=”m1500″

Second, allow the device to be recogized.

1. run the modprobe command:
– sudo modprobe ftdi_sio

2. create a driver file

3. when you now plug in the device via USB, you should see an addition in the /dev/ directory called m1500 if everything is working properly.

Third, edit the rc.local file to allow the device to be recognized from bootup. Else you will have to repeat the Second step every time the system is rebooted.

1. edit the /etc/rc.local file -sudo nedit /etc/rc.local

2. add these lines to the bottom of the file:

/sbin/modprobe ftdi_sio echo 0403 95ea ` /sys/bus/usb-serial/drivers/ftdi_sio/new_id

See Also:

gen_labels