Controlling Sensor Through Labview: Role of Diode?

  • Thread starter Thread starter georgeh
  • Start date Start date
  • Tags Tags
    Diode Sensor
Click For Summary

Discussion Overview

The discussion revolves around controlling a sensor through LabVIEW, specifically focusing on the role of a diode in the setup. Participants explore the wiring, communication protocols, and potential issues in the sensor's integration with LabVIEW.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant questions how the diode functions in the control setup and whether commands are sent to the first input while data is read from the output.
  • Another participant requests specifications on the sensor, expressing confusion about the hookup and asking about the voltage rail and ground connections.
  • A participant clarifies that the sensor is connected to other hardware and provides a link to the sensor's specifications, indicating that the hookup diagram may be incorrect.
  • It is noted that communication with the sensor occurs via a serial interface (SCK and SDATA), and that a serial interface model may need to be defined in LabVIEW or a bit-banging approach could be used.
  • One participant mentions they are currently bit-banging the sensor and emulating the SCK while writing to and reading from the data port using a connector box with LabVIEW.
  • Another participant inquires about the functionality of the setup, asking if the correct SCLK and SDATA waveforms are observed and whether the hookup diagram from the datasheet is being used.

Areas of Agreement / Disagreement

Participants express confusion and differing views on the correct hookup and functionality of the sensor with LabVIEW. There is no consensus on the role of the diode or the effectiveness of the current setup.

Contextual Notes

Participants mention the need for clarity on the hookup diagram and the specifics of the communication protocol, indicating that assumptions about the wiring and connections may be incomplete or incorrect.

georgeh
Messages
67
Reaction score
0
Can you guys look at the attached file. I have a sensor hooked up to a plug box. My question is, i am suppose to control the sensor through labview. My question is, how does the diode play a role? I would technically send the commands to the 1st input right? and if i wanted to read data, i could rea dit off the output, where the diode sends the voltage to?
Or am I getting this wrong?
thank you in advance.
 

Attachments

  • diag.gif
    diag.gif
    3.5 KB · Views: 447
Engineering news on Phys.org
Do you have specs on the sensor? The hookup doesn't make sense to me at first glance. Is that meant to be a stiff 5V rail there? What about the ground and other connections?
 
berkeman said:
Do you have specs on the sensor? The hookup doesn't make sense to me at first glance. Is that meant to be a stiff 5V rail there? What about the ground and other connections?
I do have specs on it. This is just a small diag. I have it hooked up to some other hardware and it is grounded btw.link:
http://www.sensirion.com/images/getFile?id=25
 
Last edited by a moderator:
georgeh said:
I do have specs on it. This is just a small diag. I have it hooked up to some other hardware and it is grounded btw.link:
http://www.sensirion.com/images/getFile?id=25
The thumbnail drawing seems wrong now. Look at the hookup diagram in Figure 2 in the datasheet. You communicate with this sensor with a serial interface, SCK and SDATA. From Labview, you will either need to define a serial interface model (I don't know if one exists already in Labview), or you will need to bit-bang two digital lines to emulate the digital master. Since the serial interface has only one SDATA line, you need to be able to switch from driving to just reading (Tri-State the output at times when the sensor is supposed to send data back).
 
Last edited by a moderator:
berkeman said:
The thumbnail drawing seems wrong now. Look at the hookup diagram in Figure 2 in the datasheet. You communicate with this sensor with a serial interface, SCK and SDATA. From Labview, you will either need to define a serial interface model (I don't know if one exists already in Labview), or you will need to bit-bang two digital lines to emulate the digital master. Since the serial interface has only one SDATA line, you need to be able to switch from driving to just reading (Tri-State the output at times when the sensor is supposed to send data back).
Yeah. I am looking at figure two. I am bit banging the sensor. I am emulating the sck and writing to data port and reading off it using a connector box via L.V.
 
georgeh said:
Yeah. I am looking at figure two. I am bit banging the sensor. I am emulating the sck and writing to data port and reading off it using a connector box via L.V.
So is it working now?
 
negative sir.
 
Don't call me sir. I work for a living. :rolleyes: (quiz question -- what movie is that from?)

Well, what's not working? Are you seeing the correct SCLK and SDATA waveforms like in the datasheet, but the RX data coming back is wrong? You're using the hookup diagram from the datasheet and not the one with the diode that you drew at the top of the thread, right? Do you have any way to post a plot of what your SCLK and SDATA look like?
 

Similar threads

Replies
10
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
2K
Replies
13
Views
5K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
16
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 38 ·
2
Replies
38
Views
5K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K