README.md in lxi_rb-0.2.26 vs README.md in lxi_rb-0.4.0

- old
+ new

@@ -15,25 +15,24 @@ $ gem install lxi_rb ## Usage ```ruby -❯ irb -irb(main):001:0> require 'lxi_rb' -=> true - -irb(main):002:0> Lxi.search +Lxi.search Searching for LXI devices - please wait... Broadcast: 127.0.0.1, lo0 Broadcast: 192.168.10.255, en0 Device: 192.168.10.21, Siglent Technologies,SDS1104X-E,SDSMMGKC6R0011,8.2.6.1.37R8 Device: 192.168.10.107, Siglent Technologies,SDM3055-SC,SDM35GBQ6R1882,1.01.01.25 -=> nil -irb(main):003:0> Lxi.scpi '192.168.10.21', 0, nil, :vxi11, '*IDN?' -Siglent Technologies,SDS1104X-E,SDSMMGKC6R0011,8.2.6.1.37R8 -=> 0 +Lxi.discover_instruments +=> [{:address=>"192.168.10.107", :id=>"Siglent Technologies,SDM3055-SC,SDM35GBQ6R1882,1.01.01.25"}] + +Lxi::Device.new('192.168.10.107', :vxi11) do |meter| + puts meter.query 'MEAS:VOLT:DC?' +end +=> -4.78767775E-04 ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.