LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter Function from TDAQ to DAQmx

Hello,

 

I am trying to convert a VI written based on Traditional-DAQ to DAQmx, (from LV 5 to LV 2013).  One of the most repeated subVI is that associated with Counters.

I have attached the old code and the same converted to LV 2013.  Also attached is a picture of the portion of the code I am trying to convert.  Lastly, an image of what I have tried in DAQmx is also attached.

 

From my understanding (and I am very much a LabView novice), all the counters (8) in the PCI-6602 are being initialized (i.e armed) and told what kind of output they should produce, and given a group ID.  In various other parts of the code, this group ID of different counters is used to synchronize other signals from the code.

 

Please let me know if you think I have understood it correctly, and have used DAQmx properly.  Any suggestions and ideas are welcome.

 

Thanks a lot for your time!

0 Kudos
Message 1 of 3
(2,158 Views)

I have attached the old code here as I could only attach 3 files at once.

 

Thanks. 

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

Hi nithyan2,

 

Have you tried running the code? Does it operate as you expected?

 

I would also like to point you to some resources that can help with the migration from Traditional DAQ to DAQmx.

 

1. Counter Comparison: http://digital.ni.com/public.nsf/allkb/F4EFF28CBDC744EF86256E93007E660E?OpenDocument

 

 

2. Transition overview: http://digital.ni.com/public.nsf/allkb/F4EFF28CBDC744EF86256E93007E660E?OpenDocument

MJ
Application Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,105 Views)