LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I I want to know how to write a labview program to generate voltag n measure input

I want a program which will generate some constant voltage (say square wave) with some noise. This output voltage will b fed to a photodetector  continuously. The photodetector will detect some signals from a sample which will be the input voltage from the photodetector that has to be read and written into a file. This reading has to b done for 5 seconds say after that i want to switch off the square wave signal and allow only noise to be supplied to the photodector and read the input for another 5 seconds. Can you please help me write a labvie code which will help me do this job. I am unig labvie 7.1
0 Kudos
Message 1 of 10
(3,538 Views)
"i want a program which will generate some constant voltage "
What hardware do you have?
 
We can help you if you have any questions, but you must write the code
0 Kudos
Message 2 of 10
(3,533 Views)
Ok isuppose i generate a simple "simulate signal" code in labview, how do i make it work for me in real. I mean will the simulate signal VI generate voltage for me to apply to some device when i connect the device to my DAQ card?
0 Kudos
Message 3 of 10
(3,529 Views)
I want to apply voltage to 2 conducting plates using DAQ card, will DAQ assistant VI help me do that. Is it that we write the code in labview first?
0 Kudos
Message 4 of 10
(3,527 Views)
Yes, drop the 'DAQ Assistant' on the block diagram, configure it (Generate signals -> Analog output -> voltage).  Then you would just need to wire up the inputs with the desired voltage, etc.

If you do a search of the examples (Help menu), you will find some good info.
>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 5 of 10
(3,515 Views)
There is an example called "Gen Voltage Update.vi" that is very simple, but gives you an idea how to get started.

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 6 of 10
(3,514 Views)
tHANK YOU VERY MUCH. i HAVE GENERATED A SIMPLE CODE TO ACHIEVE CONTINUOUS OUTPUT VOLTAGE. CAN YOU PLEASE TELL ME HOW CAN I CONTROLL THE TIINGS OF THE OUTPUT VOLTAGE. FOR EXAMPLE I WANT THE OUTPUT VOLTAGE TO GENERATE ON FOR SAY 10 SECONDS AND THEN SWITCH OFF FOR ANOTHER 10 SECONDS AND AGAIN START AND APPLY FOR 10 SEC AND SWITCH OFF AGAIN
0 Kudos
Message 7 of 10
(3,493 Views)
hi
 
try using simulate signal express vi which can be found @
 
functionpalatte>>Express>>Input>>simulate sig...
 
after placing that you will get a dialogue to configure the signal..in that you configure according to your need.
 
 
 
 
 
0 Kudos
Message 8 of 10
(3,483 Views)
I have been successful to generate output voltage using simulate singnal and DAQ assisntant. Now i want my signal to be generated for a specific time and then switched off and then switched on again for the set aprticular time. I want to know how do i do that. For example i want to generated a voltage for 10 sec n then switch it off for 10 sec and then again switch on for 10 sec n so on
0 Kudos
Message 9 of 10
(3,476 Views)

Hi Amber,

I'm glad you have found success with your data acquisition program. In order to allow pieces of your code to run for specified amounts of time, try checking out the VIs found in the Programming»Timing palette. Also, here is a KnowledgeBase article that explains the differences between some of the Timing VIs. Experimenting with VIs in this palette with give you familiarity and allow you to determine which method works best for your VI. Happy coding!

Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 10 of 10
(3,441 Views)