09-14-2012 07:59 AM
Hello everyone!
I am using a PCI-6120 with a BNC-2120 to generate two signals: one is used to command an optical device that have to be caracterized, and the other signal is sent to a digital video camera to trigger the acquisition so that it is synchronized with the first signal. Everything is controlled with Labview.
I would like to give the possibility to the user to choose which channel to use for the first signal and which channel to use for the second signal, depending on how the devices are connected to the BNC-2120. So I would like to put two different "physical channel" VIs on the command window of Labview.
My question is:
Do I have to create two diffrent tasks for the signals to be generated on the correct channel, or can I combine the two channels (and how?) so that I manipulate only one task with two channels but still be sure that each signal is generated on the corerct channel, whichever channel is selected for each of the two signals...?
Thanks a lot for your answers.
Have a good day.
Luc
Solved! Go to Solution.
09-17-2012 11:29 AM
Hi LucG,
if you are using only one board you have to create only one task for the two generation.
You can choose multiple channels by clicking "Browes" in the physical channels control and choosing multiple channel thanks ctr+click, or by concatenating multiple channel with a comma like in the joined VI.
Then, when you provide data to the write VI, data have to be organized in a table, each channel is on a row, and the order of the channels is the same as in the the physical channels control.
I hope this can help!
Thank you
Audrey_P
National Instruments France
10-16-2012 04:01 AM
Thanks Audrey.
That's what I've done in the end. I was just hopping I could let the user choose exactly which channel would generate what...
Regards.
Luc
03-13-2013 08:41 AM
hi audrey
your advice regarding to this matter really helps me a lot.but i wanna ask you something,if we may be able to combine two physical channel in a task,can we be able as well to separate the data outcome from the read.vi?how can we do so?
regards,
Anas
03-13-2013 09:23 AM
A simple Index Array will do.
04-22-2013 07:01 PM
hi dennis,i appreciate that u like to help but can u be specific regarding to this matter.i am so sorry because i am just a beginner in Labview.