LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enable user to change channels belonging to a task

Hi to all, I want to create a SubVI which enables the user to configure channels for a task. When the user finished adding channels to the task, the task should be returned to my main VI. I attached an image of the SubVi (I use the German version, but there should be no problem; if someone has a question, I'll try to translate).

 

Currently, I have to questions/problems which are connected to each other (in my view):

 

How can I find out and display the channels the user added to the task? I want to test whether everything works fine or not.

 

Even more important, the user should have the possibility to view which channels have been added and to rename them (and to change the scaling after I finished this feature).

 

Using Google, the forum search and the Labview Help did not help me to find a possibility to view which channels belong to a given task and edit them. Maybe someone of you knows something? By the way, if I have a mistake/something very ugly in my code, please tell me about it. I'm still learning LabView.

 

Thanks in advance.

Download All
0 Kudos
Message 1 of 3
(2,761 Views)

Hey daxel,

you can determine the channels in a task with a property node. Take a look at the attached VI, this will show you how.

If you want to know which channels are added by the user, you must know the channels before and after the edit. Than you can compare the information and find out the added channels.

I don't know if its possible to change the name of a task after you created it. If it's possible, than with a DAQmx property node like in the example.

Regards, Stephan

0 Kudos
Message 2 of 3
(2,688 Views)

Hi,

 

the problem was also discussed in the German LV forum with several messages marked as (possible) solution…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(2,670 Views)