octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47617] Packages not installed correctly


From: anonymous
Subject: [Octave-bug-tracker] [bug #47617] Packages not installed correctly
Date: Wed, 13 Apr 2016 19:40:19 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #6, bug #47617 (project octave):

This Fails
----------
GNU Octave, version 4.0.1
...
For information about changes from previous versions, type 'news'.
>> pkg load instrument-control
>> tsttcp
error: 'tcp' undefined near line 4 column 14
error: called from
    tsttcp at line 4 column 12
>>


This Works
----------
GNU Octave, version 4.0.0
...
For information about changes from previous versions, type 'news'.
>> pkg load instrument-control
>> tsttcp
Voltage 0.699741
>>


The instrument-control package does work using the Tatsuro 64bit Octave 4.0.1.
available here:
http://www.tatsuromatsuoka.com/octave/Eng/Win/


Thanks, OP 


The Code
--------
function tsttcp()

% Create TCP object, IP address, port, timeout in ms
Instrument = tcp("192.168.1.154", 5555, 2000);

% Send command, Object, Message
tcp_write(Instrument, "MEAS:ITEM? VRMS,CHANNEL1");      % Set measurement type

% Receive the data, NBytes
[data n]= tcp_read(Instrument,100);

% Read and display data
v=sscanf(char(data),'%f');
fprintf('Voltage %fn', v);

tcp_close(Instrument);

endfunction

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47617>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]