VS 2008 Conversion Of Voltage To LUX?

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


ADVERTISEMENT

VS 2008 Getting Voltage From RS232 / Allow Dial Voltmeter To Point According To Voltage Level

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

Getting Voltage From RS232 & Allow Dial Voltmeter To Point According To Voltage Level

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

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

VS 2008 Voltage Level Into Oscilloscope Waveform?

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

Audio Announcement Of Voltage?

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

Measure Voltage And Current?

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

Serial Port Programming (voltage)

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

VS 2005 : Increase The Voltage Level Of A PC?

Jan 21, 2010

i want to increase the voltage level of the electricity?

View 8 Replies

Any Modules Available For Circuit Calculations? (Voltage / Resistance)

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

Converting Voltage Level Into Graphical Display?

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

Converting Voltage Level To Oscilloscope Waveform

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

VS 2005 Use MSCOMM For Monitoring Serial Ports For Voltage Change?

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

Conversion Error On Line 5 Stating 'Conversion From String 'S' To Type 'Double' Is Not Valid

Apr 8, 2009

a user will enter a number, n, which ranges from 1 to 30. they will also enter a "P" or an "S" (sum or product). depending on which was selected, it will calculate the sum or product of the numbers from 1 to n.i'm having a conversion error on line 5 stating "Conversion from string "S" to type 'Double' is not valid." [code]

View 2 Replies

Text -> Excel Conversion (with Extensive Formatting Required After Conversion)?

May 11, 2012

I'm creating a program in VB.net that does the following:At a high level I receive a file in email, put the attachment in a monitored folder, import the text file to excel, format the excel, and then email the excel file to a list of recipients.

Here is my plan:

Completed: Outlook VBA to monitor all incoming email for specific message. Once message is received drop attached .txt file in a specific network folder.

Completed: (VB.net) Monitor folder, when text file is added begin processing

Not Complete: (VB.net) Import text file to Excel

Not Complete: (VB.net) Format Excel Text file.(add in a row of data,format column headers with color/size, add some blank columns, add data validation to some of the blank columns that allow drop down selections)

Completed: (VB.net) Save file.

Completed: (VB.net) Send file to list of recipients.

Obviously the items above that are not complete are the bulk of the work, but I wanted to get some advice on what some of you think would be the best way to approach something like this. The import and formatting of the file are causing me some problems because I just can't decide what would be the most efficient way to do this.

The way stated above. Import to excel -> format Having a template excel that contains all of the formatting already done for me and attempting to transition the data to this document (no clue if/how I can do this). Is it even feasible? Have the template already created and then import the text file to a new excel file, then transition that data to the excel template?

Something I thought about, in terms of formatting the document, was to record a macro of me doing all of the formatting that I'm going to need and then attempt to convert that macro into my vb.net code, but I'm not sure if that will work. I will need to verify that the text file comes in the EXACT format every time correct?

View 5 Replies

.net - PHP And VB 2008 Conversion?

Oct 29, 2009

I need help converting this into PHP:

Public Function Encrypt(ByVal text As String) As String
Dim charSet1 As String, charSet2 As String, i As Long
Dim pos As Long, encryptedChar, encryptedText
charSet1 = " ?!@#$%^&*

[Code]...

I'm making a text to hash thing like presented above but in PHP for my website.. The code above is home-made so its nothing like MD5 or SHA1. But if you guys do know a way to encrypt and decrypt MD5 in Visual basic 2008 please show me! (this must also work for PHP).

View 1 Replies

VS 2008 C# Conversion?

Apr 2, 2009

i need to convert this code to vb.net

event EventHandler<PageEventArgs> IPageableItemContainer.TotalRowCountAvailable
{
add { base.Events.AddHandler(GridView.EventTotalRowCountAvailable, value); }
remove { base.Events.RemoveHandler(GridView.EventTotalRowCountAvailable, value); }
}

one of the online converters gave me this:

Private Custom Event TotalRowCountAvailable As EventHandler(Of PageEventArgs) Implements IPageableItemContainer.TotalRowCountAvailable
AddHandler(ByVal value As EventHandler(Of PageEventArgs))

[code].....

But intellisense complains that 'RaiseEvent' definition missing for event TotalRowCountAvailable

View 4 Replies

VS 2008 Conversion From VC++ To .NET?

Sep 15, 2011

whether is there any equivalent for "SizeOf" of VC++ in VB.NET.

Basically I was trying to convert the following code to VB.NET:

char sName[256];int32_t sizeName=sizeof(sName);

View 10 Replies

Conversion From 2003 To 2008?

Nov 10, 2009

We have a large vb applicatin in vb 2003, now I am asked to convert it to vb 2008. How should I start it? Open the program using 2008 and recompile?

View 3 Replies

Conversion From VB 2008 To VB2010?

Oct 4, 2011

I created a program using VB 2008 to aid me on design work-related calculations that uses Access mdb file for displaying info. and calculations. But I experienced an alarming problem when I converted it to VB 2010 The program execution works in VB 2010 but it can't display the data from an mdb database file.

To simplify and simulate the problem, I created a simple identical program in VB 2008 and VB 2010 showing a window that displays a data extracted from an mdb database file. Both programs run as intended in each environment. When I open the VB 2008 created program under VB 2010, VB 2010 converts it and when I run the program, it doesn't display the data at all.

View 5 Replies

Executable Conversion With VB 2008?

May 24, 2012

My issue is when I read from an existing executable and convert it to string and back to executable windows says it is not a recognized 32 bit or 64 bit application? The code below is real code I have rewritten many times but to no avail. If I leave out the part where I convert the bytes to string and just copy the binary and create a new exe with the binary the program works. But the whole concept of string converting back to valid binary has me stumped? This is Visual Basic 2008 code:

Imports System.IO
Imports System.Text
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim tempPath = System.IO.Path.GetTempPath

[code]....

View 3 Replies

VS 2008 : Conversion Of Hh:mm:ss To Seconds?

Nov 10, 2009

Currently, I have 4 textboxes displaying hh , mm, ss and ms.I am required to convert only the Seconds, Minutes, and Hours and display it into another textbox (see attached doc for diagram).I've got a brief idea that for the hours, i'm required to multiply by 3600, and as for the minutes, multiply by 60. Am i correct? Please correct me if i'm wrong. But as for the actual coding of conversion and how to display it into another textbox, i'm not sure how to do so.

View 9 Replies

VS 2008 Bit Conversion Operations

Apr 1, 2011

In my API class I encountered a lot of times I had to Get/Set low/high order <something> of <something>. For example, get the low order integer from a long. I made a few functions for this: [code] Before I start using these functions permanently, I come to ask if it contains any bugs, especially because of the Unsigned/Signed issue.

View 15 Replies

VS 2008 Vb5 To Vb2008 Conversion?

Apr 10, 2010

Okay so I have decided to upgrade my game from vb5 to vb2008 express edition. When I opened it I was told it needed to be converted so I said ok. However, there are some things in the language syntax that have changed.Obviously. Well here is one of them:

[Code]...

Setting controls to objects allowed me to cut down on typing but it seems you are not allowed to reference things without the "full path". I understand that you now have to set the full path of the object but doesn't setting something to an object already do that? Do I have to just delete the object references on the top and instead of using objCmbGraveU2 I now need to replace it with frmMain.cmbGraveU2?

View 6 Replies

VS 2008 Code Conversion -- VBnet To C#?

Aug 4, 2009

I have a VBnet program that works fine and I'm hellbent on getting it to run under Linux eventually (looks like mono is the way to go sometime soon). But, for now, I'm looking at some of these code converters, online and otherwise and have some questions.

I tried a single procedure of code with the online converter and it threw quite a few errors relating to the procedure lines themselves (the opening Private sub etc, etc,)Something about C# and handles clauses -- can't remember.

So, I suppose the online converter just wants to see the code itself? As in, what lies between the Private sub blah -- CODE -- end sub?Now, what about something I saw this morning, "Sharpdevelop" that says it can convert entire PROJECTS to C#? (Also saw a 200.00 software package as well).

Is that the way to go? Will it do every bit of the project's code start to finish? You just load the project folder or the project file I guess?But then I see Sharpdevelop doesn't compile -- so you convert with it and then open the converted file with Visual studio C#.net?

I guess Microsoft will never have this conversion capability in visual studio?

View 12 Replies

VS 2008 Conversion From String To Decimal On XP And 7?

Jan 3, 2012

VS 2008 Conversion from string to decimal problem on XP and 7

View 1 Replies

VS 2008 Conversion Of C# Calendar Code

Oct 19, 2011

I have downloaded a quick day view calendar control for my app. While it meets my needs I am having trouble converting the C# code to create a new appointment. Is anyone here good at code conversion?

The control is here:(url)

View 1 Replies

VS 2008 Conversion Of C# Calendar Code?

Apr 27, 2010

I have downloaded a quick day view calendar control for my app. While it meets my needs I am having trouble converting the C# code to create a new appointment. Is anyone here good at code conversion?

View 1 Replies

VS 2008 - Conversion From String To Type (Not Valid)

Aug 20, 2010

I get this error:
"Conversion from string "7F676981" to type 'Long' is not valid."

When using this
Reader.Position = &HD044
TextBox2.Text = Reader.ReadHexString(4)
TextBox2.Text = CLng(TextBox2.Text)

View 2 Replies

VS 2008 Conversion From String To 'date' Is Not Valid

Dec 10, 2009

i've done a search on this error n found no match so i decided to create a new thread.this part of the program is suppose to get the date interval of dd(due date) and dr(date return) n charge the members accordingly.the program opens normally but when i go thru the records i have in my database, conversion from string "" to 'date' is not valid pops up.[code]

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved