02-07-2010 08:18 PM
To Dennis.
I tried to copy the channel. I placed the 2 chnnnels and tried to connect them with different operators like OR, AND , SUM , MERGE,etc...but was not able to get both the outputs simultaneously.
If by duplication, u means something else, then plz suggest me the same.
Thanku for ur reply.
Regards,
Alakh.
Solved! Go to Solution.
02-07-2010 09:14 PM - edited 02-07-2010 09:15 PM
Continued from here.
None of those funtions are useful. You just need duplicate VIs like I mentioned and that are already in your code.
This all presumes that the instrument will allow both outputs to be on at the same time. You can quickly check this by attempting to turn both on manually.
02-08-2010 12:33 AM
thank you Dennis. Its working now.
But, i am not able to get the waveform from both the channels of my oscilloscope.
I haev attached a file here. Please look at it
02-08-2010 01:19 AM
Hi
You added the while to the blockdiagram but probably did not realize that LabVIEW is executing both parts of the diagram (upper and lower) at the same time. You probably are questioning the scope things that are not ready yet.
Make two separate vi's or make sure that only one of the parts is running at the same time.
02-08-2010 01:50 AM
hi..
my task is to integrate both oscilloscope and function generator in sinle program.
could you please expalin as how I can achieve that with 2 VI's.
Regards,
Alakh
02-08-2010 05:42 AM
Hi..
My progg is working fine.
I have to include some features in it, like knob for controlling the vertical and horizontal position of signal, that is there in the front panel of oscilloscope .Also I want to add one autoset button of oscilloscope in my prog.
How can I wire these buttons. Please advice.
I ahve attached a file.plz look have a look in it.
02-08-2010 08:32 AM
Hi
You probably needs to configure the waveform generator first and then measure with the scope.
So there is a dependency in time.
Each of these should be handled in its own rights.
I advise to start with a big while. In this while you only put the vi's needed for changing the signals on user input.
Before that while but wired into the while with the visa resource name and errorcode, you place the initialisation vi's that are needed only once.
In the while you also do nothing when no user input has been performed (maybe use an event structure together with a case sturcture...)
or even better start studying on action engines as described by Ben Rainer
http://forums.ni.com/ni/board/message?board.id=170&thread.id=240328&page=1&view=by_date_ascending
02-08-2010 11:03 AM
I agree with Albert. The event structure is the best way to go.
The code you have now can only do a single acquisition. Do NOT use the run continuous button. It's also silly to use front panel controls for the channel selection. Use constants like I did. Anything else and you are just asking for user errors.
02-09-2010 03:21 AM
Hi..
In this VI , I have tried to include the knobs for horizontal and vertical scaling and also for selection of channel.
The above case structure, refers to the channel slection. Here I am unableto connect the wire from single waveform vi to waveform graph.
Below it are two case structures for scaling thw waveforms. Here I am getting error related to propery node as "broken terminal or or bad wire"
Also i have tried do data logging. Plz tell me wether its correct.
Also pla try to answer the above problemd
Thanku.
02-09-2010 07:02 AM