Jump to content

Recommended Posts

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
Link to comment
  • 4 months later...
  • 6 months later...
  • 1 month later...
  • 1 month later...

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

Link to comment
  • 1 year later...
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

Link to comment
  • 3 months later...

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
Link to comment
  • 5 months later...
  • 1 year later...
  • 5 months later...

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

Link to comment

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.