03-15-2013 08:31 AM
Hey people,
I will explain first what i want my system to do. I have the following compponnents:
- NI 6212
- Driver
- Stepmotor
- Joystick
This is what i want it to do with the NI 6212 i want to read in the Joystick (UP DOWN RIGHT LEFT boolean) then depending on wich is active it has to send a pulse signal to the driver so that the stepmotor will run. I got this working in the picture i added as a attachement. But when i made it in a event structure to look on the inputs it doesnt do anything at all. The whole program seems to get stuck. Does anyone here know what the problem is.
Greeting
Thomas
03-15-2013 08:47 AM
You didn't show the code which doesn't work, so it's hard to say what's wrong with it, but in general, event structures only react to events. There are some events you can get from DAQmx, but I'm not sure how they work and what their limitations are, so I would suggest you stick with the code you have.
Some comments about your code:
To learn more about LabVIEW, I suggest you try looking at some of these tutorials.