LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW and "USB to 1-wire" (DS2490)

Hi,

Can you please attach the main file of this programme in which all the TMEX functions are implemented.

 

 

Thanks

0 Kudos
Message 31 of 55
(3,047 Views)

Hello,

 

I am very new to one wire devices and TMEX and LABVIEW also. I am using DS1923 Ibuttons connected to DS9490R

I have developed a small application in ABVIEW which can read ROM Id's of Ibutton present on 1-wire. But buffer output for all is showing same. Is it correct?

My operating system is Windows 64-bit. I have installed 1-wire drivers for 64-bit. I am developing application in LABVIEW which is 32-bit.

Will TMEX library work in LABVIEW 32-bit environment on 64-bit operating system? If not please provide me a solution.

 

 

0 Kudos
Message 32 of 55
(3,040 Views)

@mpriti121 wrote:

Hello,

 

I am very new to one wire devices and TMEX and LABVIEW also. I am using DS1923 Ibuttons connected to DS9490R

I have developed a small application in ABVIEW which can read ROM Id's of Ibutton present on 1-wire. But buffer output for all is showing same. Is it correct?

My operating system is Windows 64-bit. I have installed 1-wire drivers for 64-bit. I am developing application in LABVIEW which is 32-bit.

Will TMEX library work in LABVIEW 32-bit environment on 64-bit operating system? If not please provide me a solution.

 

 


I was very new ti TMEX at one time.  I learned by reading the tutorials on line at Maxim's iButton web pages.  The DLL (IBFS32.dll) contains all the functions you will ever need.  All you need to do is write Labview subvi's for each function in the DLL using the Call Library Node function.  See the Labview help screen on this subject if you are not familiar with calling DLL functions.

The State Buffer output may look the same for each device but they are different.  The State Buffer is what identifies the device and its internal state.  When calling a DLL function, you must pass in the State Buffer for the device you want to communicate with.  That is how the function knows which device to talk to.  When you find devices (Find First, FInd Next), you have to save each and every State Buffer in an array.  Then index the array to pass only the state buffer of the desired device to the DLL function.

 

Everything I did was in a 32-bit environment.  I'm not sure about 64-bit, but I don't think that would be a problem.  I cannot post any subvi's I've developed because they are proprietary.  But if you post any code you write and ask questions, I'll be glad to help.

 

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 33 of 55
(3,017 Views)

Hello,

 

For our production process, we have the DS2431 on every module. In an automated test process using labview, we are going to save test information in this EEPROM.

 

I'm also using the DS9094 USB to 1-wire to control the DS2431.

 

Thanks to this forum, especially "mbeuret" this was a lot faster done then when I had to do it alone... So to give something back, I have attached my code (written in labview 2013)

 

In this OneWire.vi a Byte is written to scratchpad with CRC check, then read out again with CRC, then copied to memory and finally memory is read out.

 

regards,

Jeroen Verlinden

Message 34 of 55
(2,963 Views)

Hi jeroenv,

Thanks for uploading the code.

I purchased one wire utility toolkit from interface innovations which helped me to solve the problem.

 

 

 

 

 

Thanks

 

0 Kudos
Message 35 of 55
(2,953 Views)

This is in Labview 2013.  I have labview 2012.  Could someone please convert this to labview 2012?

 

Thanks.

--

Ro ma wa ichi ni chi ni shi te na ra zu
0 Kudos
Message 36 of 55
(2,848 Views)

Jereonv's code is a huge help, but one thing I'm still searching for:  Is there a list of commands for the TMTouchByte command?  I know FF requests a Read, but I see 0F and F0 used throughout the provided code.  What do those commands do, and what other commands are there that would be of interest?

 

Regards

--

Ro ma wa ichi ni chi ni shi te na ra zu
0 Kudos
Message 37 of 55
(2,839 Views)

http://files.maximintegrated.com/sia_bu/softdev/owdocs/Docs/TMEX/tmex75tg.html

 

there is a full description of TMEX lib, but I still have problems with writing the data from scratchpad to the DS1992 memory. The thing is function do not return any errors, but data saved to scratch pad are not transferred to the memory (after succesfull use of Copy Scratchpad function, succesful I mean without any error return). Any ideas?

I would be very grateful for some help,

 

A.

0 Kudos
Message 38 of 55
(2,741 Views)

I also had problems with this, I think it is down to the different 1-Wire devices. I am just starting to look at the 1-Wire devices myself so far from an expert but I think I found the issues.

In the Write to Scratchpad, after the CRC check there is another write to the Blockstream with an array with 2 FF's in. When I removed this part (as I couldn't see what function it performed) the array I was trying to write was copied to memory.

This of course means the CRC check fails and I don't know why this works but hopefully this will help with your problem.

 

Phil

0 Kudos
Message 39 of 55
(2,615 Views)

HI:

 

I am interested in using the DS2431withUSBReader but it is missing Launch Default Adapter.vi.

Do you have how to write to it. Did you finish the CRC section.

0 Kudos
Message 40 of 55
(2,286 Views)