LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am restating my question about outputing specific voltage values

Hello,
Right now, I use the function generator vi , an example vi from DAQ and analog out. So from that VI i get functions such as sine, sqaure with a user defined amplitude and frequency. Now what i want to do is this:
Develop a vi which will output specific voltage values defined by the user (me). i.e, say i want the vi to output voltage values such as 0.1,0.2,0.3,4,6,8,10,12,14,0.4,0.5, then i just write these values in the table and the vi should ouput these voltage values one after the other in near real time. I hope i am clearer this time.
I am an amatuer user of Labview and am currently working on a student version of Labview 7.0 Express.
Thank you
Ujwal
0 Kudos
Message 1 of 6
(2,983 Views)
SO if I understand you correctly, you would like to manually specify the voltage levles that are output at each interval in time.

To do that using the example you mentioned you will have to produce a proper data set that can be presented to the AO function.

What you are asking is not an easy task if you start runningup you output rate number of channels and various other factors.

Please provide (attach) an example of a 2-d array with your sample data and let us know what kind of timing you want, MHz or mHz?

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 6
(2,972 Views)
Thanks for the reply.
Yes, i think you have understood my problem correctly now. But the only thing i would like to clarify is that I would input the voltage values before starting the program, say in the form of a array/table. Once i put these values the program should output these voltage values. These voltage levels should be output in near real time i.e., the time between two values should be in the microsecond domain.
Here are the sample voltage levels I am interested in. ( but i want these values alterable, i.e., i should be able to input these values before running the vi)
Voltage Levels(V)
0.1
0.2
0.3
0.4
15.0
-15.0
0.5
0.6
0.7
0.8
0.9
1.0
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
2.0

The time lag between two levels should be preferably as less as possible in microseconds. I am not able to tell you any specific value, but 5-10 microseconds should be fine.

Just a query: Can this whole thing be achieved by reading this from a file by changing the interface of the existing function generator vi to a read from file ( spreadsheet). I tried this but the parameters of inputs in the program didnt match and hence the vi failed to run. Is this a possible approach though?
0 Kudos
Message 3 of 6
(2,970 Views)
Yes it is!

Post what you have done so far and tell us what specific issue you are having.

Someone will take a look and offer suggestions. As a general rule you get the best results out of the Exchange by getting as close as you can to a solution and then post your code and let someone take a look.

We like pictures but prefer code.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 6
(2,965 Views)
Actually, I havent tried much of it i just tried to replace the amplitude control in the function generator vi with a "read from spreadsheet". And obviously because of mismatch of parameters the vi didnt work. So i would appreciate fi u could guide regarding how to modify the function generator.vi in the DAQ examples, for accepting a spreadsheet input for the amplitude of the signal.
Thanks
Ujwal
0 Kudos
Message 5 of 6
(2,963 Views)
Let me please repeat.

Please post examples!

The question you are asking is sufficently broad that I would nd up having to most of your work for you. An anology to illustrate would be "My boss wants me to re-write MS-Word, could you please post an example?"

Sorry but I would get fired if my boss found out I writing code for free!

Besides, I am here to help others learn about using LabVIEW and their is no better way than letting them write their own code.

Start by breaking down your questions into smaller parts. I suggest you start two new question threads along the line of;

1) How can I continually output a signal that I specify at X Hz?

2) How can I read from a spreadsheet file?

Once you learn how to handle those two smaller questions, you can then post a third question along the lines of;

3) How can integrate part #1 with part #2.

Still trying to help,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 6
(2,953 Views)