04-17-2008 06:52 AM
04-17-2008 08:24 AM
No, you can't run both of the for loops in parallel. It really does not make any sense to even try to do this
Don't understand your comment about 'only one of the array has the data'. You don't have any array at all for the data. All that you have is a tring indicator and that will just show the results from the very last read.
04-17-2008 10:44 PM
04-18-2008 08:57 AM
04-18-2008 10:42 PM
04-21-2008 08:44 AM - edited 04-21-2008 08:46 AM
You've got the indicator/local inside the case statement. You just need to move outside as shown below.
Also shown below is a way to directly select a function and skip the string indicators. I don't see the point in having a boolean and cycling through the functions (or cycling through anything for that matter). Use a ring control or enum and the fucntuon can be directly chosen and with the text shown in the ring/enum, you don't need the string indicators at all.
The instrument driver guidelines and the instrument wizard would have shown you more effective ways to interface to an instrument.
04-21-2008 10:37 PM
04-22-2008 03:28 AM
04-22-2008 08:30 AM
I know exactly what you are trying to do but I don't understand why. You have a function button that needs to be repeatedly click in order to change the function on the instrument. You are just making it more difficult for the end user, imho. If you were to follow my recomendation and the instrument driver standard, you would be able to select any function randomly and with a single change of a ring control. with your method, it would take 6 button clicks to go from dc current to dc volts. With the standard technique, only one.
And no again, if you write your code correctly, you do not need any local variables. I will repeat my statement that the only reason you have local variables is because you have placed the local/indicator inside the case statement. This is absolutley unnecessary. Look at what I posted. You might also want to check out some of the free resources for basics LabVIEW training at http://www.ni.com/academic/lv_training/how_learn_lv.htm.
04-22-2008 10:45 PM
@Dennis Knutson wrote:
You are just making it more difficult for the end user, imho.