05-23-2017 09:14 AM
Hi,
I'm using the DAQ simulator created within NI Max and have added a chassis NI9132 and the digital card & counter card NI 9401 and NI 9361
However when trying to simulate data using the examples Hardware > Counter Input > Count edges OR Hardware > Counter Input > Read Encoder I get no results i.e. the values don't change and keeps showing 0
Does the simulator work for counters?? I know the simulator is working (in general) since it displays Analog and Digital signals when stimulated through other cards.
I just want to try out the counter application before putting it to test on live equipment...
Any suggestions appreciated
Thanks
Hashim
05-23-2017 09:24 AM - edited 05-23-2017 09:29 AM
TR
When asking question about how your code works, it is generally best to post it as an attachment for others to review and offer suggestions for improvement.
A counter is not the same as an encoder. An encoder produces pulses based upon rotation. Do you have a schematic or layout of what you are trying to achieve? What are you simulating and how are you reading back that simulation?
06-19-2017 03:25 AM
Hi,
I was referring to the help examples that come with labview so didn't think it was necessary to post.
Anyways, i've found that the simulator doesn't 'produce' values for encoder or counters. (see in another post)
Now tested with actual hardware and the application works.
Thanks
06-19-2017 03:27 AM
Also, there was an article about the NI9361 (had to add pull up resistor) as per the article.
http://digital.ni.com/public.nsf/allkb/C827A149CE7C063D8625804F0002705D
Hope this helps anyone looking for similar issues