01-13-2009 09:15 PM
I am trying to use MAX to simulate hardware so I can create a program before I purchase the hardware. I will be purchasing a USB-6211, TTL quadrature encoder, and LVDT.
I want to simulate a quadrature encoder and a LVDT. I have created a virtual channel for each and a virtual USB-6211.
The LVDT is simulated by creating a virtual analog input channel. This virtual channel works when I test the vi.
The encoder is simulated by creating a virtual angle counter. This virtual channel does not work when I test the vi.
How do I get this virtual angle counter to work?
01-14-2009 02:25 PM
sk8board,
Thanks for posting to the NI Discussion Forum! Could you explain a bit more about how the encoder virtual channel is not working? Is it throwing an error?
-Kristen
01-14-2009 08:14 PM
Kristen,
I do not get an error. The problem is that I do not get any action from the virtual channel.
For example, when I created the virtual analog input channel, this channel provides a simulated varying voltage when I run the vi. The virtual angle counter channel does nothing at all when I run the vi.
01-15-2009 05:17 PM
Hi sk8board!
Just to clarify, what behavior are you expecting from the encoder when the VI runs?
Kristen H.
01-15-2009 09:43 PM
01-16-2009 07:34 PM
Simulated counter channels always return 0.
Wow! That seems like a very lame simulation. Not much of a counter simulation. 😞
If you want to simulate an encoder, you will have to write the code yourself and use that instead.
Can you give me an idea how to simulate the A and Z signals of a quadrature encoder?
Thanks for the help.