Return Positive Voltage Or Negative Voltage?
Sep 14, 2009
I have this light sensor circuit that will return positive voltage or negative voltage. I want to plug it into the 9-pin D-Sub port on my computer. I already have a male connector. How do I connect the circuit to the D-Sub connector, and how do I read the value and convert it to a Boolean in a program? How do I set up the cables? It only returns one 1 or 0 value. Is it possible, even?
View 17 Replies
ADVERTISEMENT
Dec 2, 2009
my circuit board is connected to a power supply(those laboratory DC power supply used in schools) and the circuit is connected to the computer via a RS232 Serial cable port.Through the serial cable port, a voltage level is sensed and is displayed on the "Voltage Level in Volts(V)" i am able to display a Dial Voltmeter with a needle. -- Coding for the dial voltmeter with needle is also attached for reference, just in case if it is needed.But currently, the dial voltmeter's needle does not point according to what is shown on the textbox. Therefore, i need guidance on how to allow the dial voltmeter's needle to point according to what is shown on the textbox. [code]
View 13 Replies
Dec 3, 2009
Basically, my circuit board is connected to a power supply(those laboratory DC power supply used in schools) and the circuit is connected to the computer via a RS232 Serial cable port. Thru the serial cable port, a voltage level is sensed and is displayed on the "Voltage Level in Volts(V)" -- See attach image
>> But currently, the dial voltmeter's needle does not point according to what is shown on the textbox.
>> Therefore, i need guidance on how to allow the dial voltmeter's needle to point according to what is shown on the textbox.
[[ Dial Voltmeter with needle ]]
Code:Private Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
[CODE]...
View 4 Replies
Apr 15, 2011
I have temp2 value -52340.0 and hslColor.Luminosity is 240.0 When Dim temp1 As Double = (hslColor.Luminosity - temp2). It shoud give -ve number but I am getting always positive number. results should nbe -52100, but I am getting +52100. How to handle this?
View 4 Replies
Nov 28, 2009
I was wondering if will it be possible to do the following :1) When a specific voltage is sense and is displayed on the textbox, is there any codes to allow the audio announcement of the voltage ?(a) As voltage levels will usually be in decimal, like for example, (1.23 V) it may be difficult to allow the audio announcement of exact voltages
View 12 Replies
Apr 13, 2012
get sample code by using NI-6009 to measure voltage(Vrms) and Curent (Irms) . Before this i'm trying to make code with using example in National Instrument VB2010.But i still can't display the right values of voltage(Vrms) and Current (Irms) from waveform that I used.The data comes from data acquisition grid in source array i used to plot sinus waveform.But the problem is I don't know how to measure voltage(Vrms) and Curent (Irms) from that waveform. I am also don't know how to start programming between NI-6009 DAQ Card and Visual Basic 2010 Express.
View 1 Replies
Dec 4, 2009
I need some guidance again =)Its regarding the conversion of voltage level to equivalent LUX.As mentioned in prev. few threads, if you have seen it, basically, my circuit board is connected to a solar panel and is connected to a power supply (those laboratory DC power supply used in schools).The whole thing is connected to the computer via a RS232 Serial cable port. Thru the serial cable port, a voltage level is sensed from the Solar Panel and is displayed on the "Voltage Level in Volts(V)" See attach image
Currently, i need guidance on how to convert the Voltage Level into equivalent LUX.I googled and found from this website >> [URL]../324003.page and it states that Lux = 1333 * Vo , so does it mean that i just type:TextBoxLux.text = TextBoxVoltage.Text * 1333 I'm not sure if this is the correct method to convert voltage level from the solar panel into equivalent LUX. If this method is wrong, please correct me.
[Defination of LUX: The lux (symbol: lx) is the SI unit of illuminance and luminous emittance. It is used in photometry as a measure of the intensity, as perceived by the human eye, of light that hits or passes through a surface]
View 5 Replies
Apr 6, 2011
I have been trying to come up with a code to send voltage signals to a serial port using Visual Studio 2010, I found many codes online but since i am not familiar with visual basic, I do not understand any of them.
View 8 Replies
Jan 21, 2010
i want to increase the voltage level of the electricity?
View 8 Replies
Jun 25, 2010
I'm trying to develop a module that calculates voltages in a circuit based on setting for certain components. Is a module available to handle circuit calculations including parallel paths.
View 1 Replies
Nov 25, 2009
I need some guidance on the codes on how to :
1) convert voltage level into graphical display,and
2) Voltage indication with moving needle .
[ Info : I've already input the codes to display the voltage in numeric, but not in graphical display ] =)
View 6 Replies
Dec 6, 2009
Basically, my circuit board is connected to a solar cell and also a power supply(those laboratory DC power supply used in schools) and its connected to the computer via a RS232 Serial cable port. Thru the serial cable port, a voltage level is sensed and is displayed on the "Voltage Level in Volts(V)" -- See attach imageAs for now, i am also needed to display the voltage level into another type form intead of just Dial Voltmeter. Maybe to display the voltage level to a waveform like what we see on the oscilloscope ? I came across a suggestion from someone regarding the oscilloscope, but its in C# instead, and after converting, the codes does not work. Hmm.. ?
>> Therefore, i hope to get some guidance on how to display the voltage level into a waveform as what we see on the oscilloscope.
View 1 Replies
Dec 6, 2009
As mention in another thread ( if you have came across it --> Getting voltage from RS232 & allow dial voltmeter to point according to voltage level ), my circuit board is connected to solar cell and also a power supply(those laboratory DC power supply used in schools) and its connected to the computer via a RS232 Serial cable port. Thru the serial cable port, a voltage level is sensed and is displayed on the "Voltage Level in Volts(V)" -- See attach imageAs for now, i am also needed to display the voltage level into another type form intead of just Dial Voltmeter.Maybe to display the voltage level to a waveform like what we see on the oscilloscope ? I came across a suggestion from someone regarding the oscilloscope, but its in C# instead, and after converting, the codes does not work.
View 8 Replies
Jul 22, 2009
I'm wondering how I could monitor a serial port for a voltage change or contact closure and have an event triggered when there is a detection.
View 1 Replies
Jun 22, 2011
I need to convert a negative integer to a positive one.
View 14 Replies
Dec 19, 2005
Is there a built-in function in .NET (VB) to convert a negative number into a positive, and vice-versa?I usually end up just using:NegNum = PosNu - (PosNum * 2)PosNum = NegNum- (NegNum * 2)
View 6 Replies
Sep 18, 2009
I am looking for a way to test an integer value to see if it is positive or negative so I can perform the required actions.
View 1 Replies
Jan 19, 2009
Is it possible in an datagridview to use different formatting for negative, positive and zerovalues?I want to show positive numbers in black, negative numbers in red, and zero-values hidden.
View 2 Replies
Apr 25, 2012
The problem is simple: I have a form with textboxes, and in one of those textboxes, I want users to enter either a positive or negative 2-digit number. I'm looking for an easy way to enforce this restriction, i.e. without having to parse the number and check whether its absolute value is below 100.
[Code]...
View 2 Replies
Aug 25, 2011
I'm outputting a Double that can be either (+) or negative (-). If the number is a negative the symbol (-) is included automatically, is there a way to do this for positive numbers as well?
The only (horrible) way I can do this is :
If MyNumber <= 0 then
string.Format("{0:0.00}", MyNumber)
Else
string.Format("+{0:0.00}", MyNumber)
End If
View 2 Replies
Feb 28, 2012
I have written a program that generates and prints 10 random integers from -10 to 10, my problem is that I am returning both negative and positive numbers, aligned right with a pad of 2, but the negative is on the right hand side of my number instead of the left. here is my code, all work but I need to align the numbers and have the correct notation of negative.
[Code]...
View 3 Replies
Apr 11, 2010
I want to alter the .visible property of a label based on if a variable is positive or negative (Hiding it for negative values)
But I want to do this for lots of labels so If Statements are too bulky.
I tried this:
Label1.visible = CBool(IntVariable1)
But it turns out CBool returns True for ANY value and False for Zero.I'd assumed it would be True for positive values and False for negatives.How can I do it without if statements?I considered Modulo or SquareRoots to somehow convert a negative number into zero, but didn't want to complicate things with imaginary numbers.
View 2 Replies
Apr 19, 2011
I'm creating an emulator for a device to simulate wave forms. My challenge is that when I try to convert the output of the following code, I can't convert the Math.Sin's double output into byte values that lend themselves to the byte array format required by an existing graphing control as listed at bottom below. I''m not sure how to handle this when the sin function creates negative values but the byte values will need to be positive and basically 'shifted up' so that anything over 127 is negative. (0 - 255) unsigned. BitConverter.GetBytes has been suggested but THIS is the result of that attempt.
[Code]....
View 2 Replies
Mar 20, 2010
I tried coding for an application that will display the positive integers, negative integers and zero entered in a inputBox. for some reason it keeps crashing down.here is my code. paging all visual basic professionals. [code]
View 6 Replies
Jun 16, 2009
I am using String.Format("{0:C2}", -1234)to format numbers.is always formats the amount to a positive number, while I want it to become $*-*1234
View 4 Replies
Jan 31, 2010
Below is my code for an employee class and employeetest module. Im not sure why i cant get the test module to return Salary cannot be negative with i put in a number less than zero and not sure how to get monthly salary to convert to yearly and then giving a 10% raise.[code]
View 4 Replies
Jan 10, 2012
How to let textbox1 only enter positive whole numbers and positive decimal numbers
View 4 Replies
Dec 9, 2009
These two TimeSpan are stored in the Database with 24hr format. No date, only TimeSpan.
Dim r As TimeSpan
Dim tsStart As TimeSpan
Dim tsEnd As TimeSpan
[Code]...
Is there any TimeSpan method to get this right?
View 3 Replies
Jun 12, 2009
For the life of me, I cant seem to do this. In the textbox_textchanged method, I want Button to disable in textbox has anything else besides whole positive integers.If text box has positive integers, i want button1 to enable.
View 6 Replies
Aug 30, 2009
how I could go about doing it. The console application needs to input a positive integer and output its proper divisors.
[Code]...
View 17 Replies