Jump to content

Recommended Posts

Posted

1-Wire.zip


This tool-set gives access to all the 1-wire TMEX functionality.

I was able to access 1-wire memory with this library.

It has all the basic VI to allow communication with any 1-wire device on the market.

It needs to be used in a project so the selection of the .dll 64 bit or 32 bit is done automatically.

It works with the usb and the serial 1-wire adapter.


  • Submitter
  • Submitted
    06/01/2018
  • Category
  • LabVIEW Version

 

  • Like 1
  • 4 months later...
Posted

So using some of those cheap  FT232RL (USB-UART converter) and DS2480B Dallas-Maxim (RS232-One Wire converter) is enought to read onewire storage devices

Posted

This library was tested only with DS9097E, DS1410E, DS9097U, DS9480, DS9490R and DS9490B.

Any other deviceshould work if they can work with the TMEX.dll provided by Maxim integrated.

  • Like 1
  • 6 months later...
  • 1 month later...
Posted

I never tried it without installation of the driver. in some case it might work like the serial port version.

Benoit

  • 1 month later...
Posted

Hi Benoit,

Thank you for the code.

I have PCB with MAXIM IC Max17312 and it uses one wire communication.

I have DS9490R one wire adapter and DS9481-37C one wire adapter. Both the adapter can detect the target IC (MAX17312) with their MAXIM software.

And I'm trying to communicate through this anyone of the adapters mentioned above.

What I did was,

1. Got your code

2.converted to LV2012

3. Since my LV2012 is 32bit, so I selected ibfs32.dll file

And I gave the input value for port number and I'm getting error code from call dynamic library as -201.

I have few questions

1. will code works for these adapter?

2. If so, Can you tell me what to do for the next step?

 

 

Thanks

Nhizanth

  • 1 year later...
Posted

Howdy,

Thanks for posting the code. It is very helpful. I am interested in trying to get the file operations working. Do you have any suggestions?

Thanks,

Mike

Posted
2 minutes ago, forest74 said:

Howdy,

Thanks for posting the code. It is very helpful. I am interested in trying to get the file operations working. Do you have any suggestions?

Thanks,

Mike

Hello Mike, It's been a while I created this library. I was never a big fan of the file function. So I never used it. I am afraid you will have to do some coding and research.

Benoit

  • 3 months later...
Posted

Hello Benoit.


I get error 1507 when running the demo. What could be wrong with DLL's?

(I am using the lvlib from a project)

 

Posted

I don't know what can cause this error. are you sure that the error comes from this library?

Use the debug and find from which VI the error is generated.

Posted (edited)

Hi.

 

I have 1 temperature sensor (DS18B20) connected to USB - serial COM5. DS9097E is correctly detected by Maxim's software.

image.png.270ad5cb2b8194a271de3674a1644528.png

 

I modified the config file as follows:

[1-Wire]
PortType=DS9097E
PortType possible values=DS9097E, DS1410E, DS9097U or DS9480, DS9490R or DS9490B
PortNumber=5
EnhancedOptions=Not use
EnhancedOptions possible values=Not use, SESSION_INFINITE, SESSION_RSRC_RELEASE, SESSION_NO_FORCE_REG_SPD

 

I changed the all the nodes to winapi call mode and the error was gone.

Now I have another problem: the "find devices" does not find anything and I have this strange error:

image.png.2343551d302d1751df4a92302a012eb2.png

 

 

Where can I look and what should I look for?

 

Also, I can't seem to find a VI for temperature reading. Is it because there none or because I didn't look carefully enough?

 

PS -

Another detail:

With program "digitemp.exe" (can find it in https://usbtemp.com/)  everything works correctly, so I am sure there is no problem with hardware.

 

Edited by gyc
Posted

Sorry, I do not have any 1-Wire on hand right now. I can't reproduce what you are explaining to me.

The only thing I know, is that last time I used it, it was on a windows 10 PC x64 and x32. I was working like a charm...

  • 5 months later...
  • 1 year later...
  • 5 months later...
Posted

Has anyone found the solution to @gyc problem?

I have a similar problem.

I modified the config file as follows:
[1-Wire]
PortType=DS9490R
PortType possible values=DS9097E, DS1410E, DS9097U or DS9480, DS9490R or DS9490B
PortNumber=1
EnhancedOptions=Not use
EnhancedOptions possible values=Not use, SESSION_INFINITE, SESSION_RSRC_RELEASE, SESSION_NO_FORCE_REG_SPD


At the end, I would like to be able to read the volts from a sample via a DS28E17. Is this even possible with this?

Screenshot 2024-05-13 141701.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.