11-27-2008 09:15 AM
Hi,
I have a physical channel control with "Dev1/ai0:1" and I wish to separate this to two strings or two channel controls, for instance, turn this Dev1/ai0:1 into this Dev1/ai0 and this Dev1/ai1 programaticaly.
Thanks.
Daniel Coelho
Solved! Go to Solution.
11-27-2008 09:28 AM - edited 11-27-2008 09:29 AM
Hi Daniel,
you can use the Match pattern function to get both numbers. Convert the result strings to numbers, subtract the smaller from the larger one, add 1 and run a loop result times in which you create your string.
Mike
11-27-2008 09:58 AM
Thanks Mike,
I did something similar but I was looking for a LabVIEW funcionality to do it.
Maybe there isn't.
Thank you for your quick reply and for your sugestion, it works fine.
Regards,
Daniel Coelho
11-27-2008 09:59 AM
I forgot, this is my VI just in case someone needs.
Daniel Coelho
11-27-2008 02:00 PM
11-28-2008 05:38 AM
Thank you Dennis. That is exactly what I was looking for.
I already gave the solution tag on this post but this is the the answer I wanted.
Regards,
Daniel Coelho