LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use a counter to measure frequency and multiple analog signals in the same VI?

Hello Electro-Frog,

You're almost there!  The problem in your code is that you are sending an array of Global Virtual Channels into an index array and then reference the index number as the channel.  You need to create a control for the specific channel you want the task to reference.  For example, if  you have two Global Channels (say GC1 and GC2 in that order) in your array and you want the frequency of GC1 then you would have to have a 0 in the index terminal of the Index Array function.  The element would be wired to the task/channel in of the DAQmx Timing VI, as shown in the first piece of code below. 

If you only have one channel, you would not need to use an array, and you could just use a Global Virtual Channel Control and would not have to use the Index Array function, as shown in the second piece of code below. 




It looks like you are new to LabVIEW, you might want to consider taking either some of the formal training, such as LabVIEW Basics I and II or if you'd prefer to learn on your own, the 3 Hr Online Training would be a good starting point.  The How Can I Learn LabVIEW page is a great place to find LabVIEW resources.  I think that it would greatly increase your productivity and decrease your frustration.

Regards,
Micaela

Message Edited by McKala[DE] on 05-10-2006 05:51 PM

Micaela N
National Instruments
0 Kudos
Message 11 of 11
(667 Views)