02-19-2014 04:03 PM - edited 02-19-2014 04:03 PM
I want to drag and drop DAQ AI channels interactively on to this grid (see image). Only the selected channels on the grid are used for DAQ acquisition. I need some pointers/examples to implement this routine????? Help please
02-20-2014 06:22 AM
You will need to learn how to use Drag & Drop features:
http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/drag_and_drop_programmatic/
which means understanding Event Structures:
http://zone.ni.com/reference/en-XX/help/371361K-01/glang/event_structure/
And then you'll need to craft some code that visually represents which AI Channels are on each designated zone in your image. That can be as simple as a bunch of string indicators (use classic string indicators with most of the control components coloured transparent) placed on top of your image on a Front Panel. You'll register each string indicator for a drag and drop Drag Enter and Drop events to acknowledge and accept each drag and drop motion respectively.
Best of luck!
02-20-2014 09:13 AM
I was thinking exactly on those lines. But was not aware of drag and drop features. Thanks again.