02-25-2011 02:46 AM
Dear Mr. John
Thank you very much for your support.
Actually you have given VI for USB interface . I am using RS232 seriel interface. Could you please suggest me changes which i have to do?
02-25-2011 03:19 AM
The VIs are based on TMEX APIs = so the link below might help
ftp://ftp.dalsemi.com/pub/auto_id/softdev/owdocs/Docs/TMEX/tmex8lrr.html
However I thought that the Call Library Function Node "Read Default Type port" should handle things automatically - if it detects a serial port then I think it will output the port type no as a 5 (serial) and not a 6 (USB).
But I am not sure as I have not used a Serial Interface.
02-25-2011 05:46 PM
@NeilJohn wrote:
However I thought that the Call Library Function Node "Read Default Type port" should handle things automatically -
This is a true statement. The default port is set during the setup procedure. If during setup you specify to use the serial port, then Read Default Type Port should respond with the serial port. No change of code is needed.
11-30-2011 12:22 PM
It can be use with the serial device DS2480 but I must change in windows registry:
[HKEY_CURRENT_USER\Software\Maxim Integrated Products\1-Wire Drivers]
"DebugLevel"="0"
"DebugFile"="c:\\\\onewirelog.txt"
"DefaultPortNum"="1"
"DefaultPortType"="5" <- I change it "6" to "5"
"TYPE6"="IBUSB32.dll"
"TYPE5"="IB97U32.dll"
"TYPE1"="IB97E32.dll"
It can work with DS18B20
07-19-2013 01:17 PM
Hi,
I am trying to run the main vi from this post. But its giving me following error " SubVI 'TMEX Session Error Returns Codes less than 0.vi' SubVI is not executable"
I have put all the subvi's in the same folder where main file is kept. Can you please help me why this error is coming.
07-22-2013 10:34 AM
Does any subvi or the main vi have a broken run arrow? Is the one-wire driver installed correctly?
07-23-2013 02:41 PM
Yes there were some VI's are missing...I have included that in the folder. Now it is working.
Thanks for help.
I have DS9490 adapter and two DS1923 Ibuttons. I am trying to design a application which can help to read temperature data and humidity data from two Ibuttons at a single time.
Do you have any reference programme for this?
I took reference from Reading several 1-wire probes via a serial or USB adapter.zip and example present in the current forum.But these programmes are able to read data only from one device at a time.
07-24-2013 09:47 AM
There is only one signal wire so you can only read one device at a time. You will not be able to read both at the same time, the data on the one wire would clash. You could read one then immediately after, read the other. If you really need to read both at the same time, you would need two one-wire networks and you would have to poll them in a parallel process.
07-24-2013 01:44 PM
Hello,
The code which I have developed is able to read ROM of both the devices. Herewith I have attached the code. Can you please tell me how can I proceed by using two 1-wire networks in this code?
07-25-2013 10:47 AM
The code you attached will find all devices on the 1-wire network. It does not do anything else. You need to write your own code to read the devices, using the device list output as the device identifiers. When you read the ROM, it outputs a State Buffer. This buffer is to be used as an input to many other functions, like Open File, Read File, etc. The 1-wire manual explains exactly what to do. I am not familiar with your devices so I can't tell you how to write your code. But basically, you read the ROMs of all devices, pass the State Buffer of the device you are addressing into a read function, then you get the read results. The State Buffer needs to be preserved, so always wire the State Buffer output to a terminal so that you can use the updated buffer in the next function. Try writing your code and maybe I can help after I see what you have written. The first thing to do is read the manual. It should explain everything. That is how I learned.