LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

function generator

Hi
can somebody help me? i am generating and adding two sine signals. afterwards i am displaying them to oscilloscope.
i have to control the movement of vertical movement of a cylinder.i would like to have pull down menu in my main user interface. in this menu i will select +125 mm or -125mm , +75mm or-75mm and +50mm or -50mm.
this would be possible three options in the pull down menu.now if i select +125mm, i would like to send +10 volts amplitude to the osilloscope, if i select -125 mm, i have to send -10 volts to amplitude.this also with other values of pull down menus.the issue is that when i select some value in pull down menu, corresponding volts must be generated on osilloscope.
the objective is that when i select certain value like
+125mm, the interface of cylinder get certain volts that it moves +125mm vertically.? is it possible in labview? can somebody explain it with example please? i am using function generator vis. is it possible with this vi? i am sending also my program, showing that how i am genarting the sine signal.
Thanks
0 Kudos
Message 1 of 5
(2,869 Views)
HI,
I could not open your VI because I do not have 7.1 yet, But here is a very basic example of how you might accomplish this task. If this does not help post your code in version 7.0 by going to save with options then select save for previous version.

Joe



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 5
(2,869 Views)
Thanks for the example.
actually the amplitude value i dont want to give in volts, i want to write the amplitude in mm and then i am manipulating it to volts (multiply by 10 and then divide by 50, if i select 50 in the pull down menu and if i select 125 in the pull down menu, i have to divide it by 125.
now if the user gives input value 31,25 as amplitude in mm,my questions are following?

1) when i select 125 in the pull down menu, i get 2.5 as input amplitude to the function generator. what is this 2,5? is it volts?if it is volts then my problem is solved because i am looking for 2,5 volts on osilloscope in this case.
2) once again when i select 50 from pull down menu, i get 6,25 as input amplitude to the function generator.
what is this 6,25?
if it is 6,25 volts that i can also see on osilloscope, then also my problem is solved. because i am looking for 6,25 volts on osilloscope in this case.
3) what maximum level of amplitude as an input i can give to osilloscope. is it 10 volts, 20 volts or etc.
i mean in my case now i would like to give 2,5 volts and 6,25 volts. but is there any range or can i give N volts as input?
4)in either case 125mm and 50mm voltage level is always 10 volts.would it be true for osilloscope?
please tell me whether my example is correct or wrong.
many thanks
Regards
0 Kudos
Message 3 of 5
(2,869 Views)
I cannot tell you for sure without being able to see your code. Could you please save it for version 7.0 instead of 7.1. Go to save with options/ save for previous. that way I can tell you exactly what you have.

Joe



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 4 of 5
(2,869 Views)
thanks
i will try to find the version you mentioned, then i will send it to you.
regards
Hood
0 Kudos
Message 5 of 5
(2,869 Views)