LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sensirion sht7x labview

Michibeck

 

I would like to try your code but I'm working in LabView 7.1.   Is it possible for you to compile your code in 7.1?

 

Many Thanks

 

 

0 Kudos
Message 11 of 85
(5,409 Views)
Try this, i hope it works... Smiley Wink
0 Kudos
Message 12 of 85
(5,391 Views)
Thank you for posting your code. I am looking at how you got it to work right now. Thanks a lot.
0 Kudos
Message 13 of 85
(5,372 Views)
For the USB DAQ that you used, did you connect a resistor between data and the 5 volts? I run your VI and i changed the ports to reflect my config. and it is timing out.
0 Kudos
Message 14 of 85
(5,364 Views)
I use the USB-6008 with an build-in pullup resistor to 5 Volt.
You can also use the internal +5V power supply of the DAQ for the sensor.
Example of connection:

SHTxx                              DAQ
______                          ___________________
GND   |-------------------------|   GND                       |
5V      |-------------------------|  +5V                         |
CLK    |-------------------------| writing digital port 1    |
DATA  |-------------------------| reading digital port 2  |
______|          \ -------------|writing digital port 3    |
                                    |__________________|

Message Edited by MarioLutz on 07-01-2006 03:15 AM

0 Kudos
Message 15 of 85
(5,365 Views)


@MarioLutz wrote:
I use the USB-6008 with an build-in pullup resistor to 5 Volt.
You can also use the internal +5V power supply of the DAQ for the sensor.
Example of connection:

SHTxx                              DAQ
______                          ___________________
GND   |-------------------------|   GND                       |
5V      |-------------------------|  +5V                         |
CLK    |-------------------------| writing digital port 1    |
DATA  |-------------------------| reading digital port 2  |
______|          \ -------------|writing digital port 3    |
                                    |__________________|

Message Edited by MarioLutz on 07-01-2006 03:15 AM


With reference to your diagram,
on port 3: did you just connect a wire to port 2 and then to port 3? Or are you using a diode?

pardon my lack of understanding.
0 Kudos
Message 16 of 85
(5,335 Views)
Yes, I simply connect port 2 to port 3. You can do this, because of the build-in pullup-resistor to +5V and the open collector configuration of the DAQ. So it is not important if the SHTxx controls the line or the DAQ-card. But before the SHTxx can control the line you must "release" the line, that means a logical "1" on the writing digital port 3. Controlling the line means pulling to ground on a logical "0" and releasing on logical "1".
The reading port is passive.
For more information look for Open Collector digital I/O in google or wikipedia...
0 Kudos
Message 17 of 85
(5,293 Views)


@MarioLutz wrote:
Yes, I simply connect port 2 to port 3. You can do this, because of the build-in pullup-resistor to +5V and the open collector configuration of the DAQ. So it is not important if the SHTxx controls the line or the DAQ-card. But before the SHTxx can control the line you must "release" the line, that means a logical "1" on the writing digital port 3. Controlling the line means pulling to ground on a logical "0" and releasing on logical "1".
The reading port is passive.
For more information look for Open Collector digital I/O in google or wikipedia...


Thanks, I appreciate the help.
0 Kudos
Message 18 of 85
(5,285 Views)
Hi,
I tested the driver on a NI-6221 DAQ card. I was not working. I think there is no open-collector configuration of the I/O.
Now I tested and changed the code. There is only one port for reading and writing the DATA line now and I have a timing option for data transfer if there are problems.

Try out (main.vi) and report functionality please.




Message Edited by MarioLutz on 07-31-2006 02:38 AM

Message 19 of 85
(5,250 Views)
Sorry for three times the same file in my last post !!!
There was a browser or connection problem after submitting the post and I reload the page.


0 Kudos
Message 20 of 85
(5,240 Views)