From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2-D Path Road Help

Howdy Everyone,

 

I am currently working on a wheelchair simulator platform project that requires me to show a 2-D path road of the wheel chair path. I am currently using a Wireless Data Aquistion System "WLS-9163" with NI-9215 module. I am currently using two incremental encoders that produces position and velocity information. Any ideas on how to start or is there a VI that does similar task?

 

Any help would be really appreciated.

 

Thanks.

Mechanical Engineer
0 Kudos
Message 1 of 12
(3,131 Views)

Have you looked at this thread which discusses WLS-9163 configuration?

http://forums.ni.com/t5/LabVIEW/Wi-Fi-WLS-9163-wireless-configuration-enquiry/m-p/811187

 

And this one which discusses connecting to the WLS-9163?

http://forums.ni.com/t5/LabVIEW/WLS-9163-fails-to-reconnect-in-wireless-mode-after-reboot-in-a/m-p/8...

 

They both discuss using NI DAQmx products.  You can also do a search on the NI-9215 module.

 

I doubt that you will find a ready-made solution (vi) for your application.

0 Kudos
Message 2 of 12
(3,127 Views)

Hi,

 

1. Take a look in the DAQmx examples. There you can find out how to use the counters for incremental encoders. Make some VI's that reads the position (increments from the encoders).

2. Plot the position (I think there are 2 encoders used for position and velocity simultaneous and not 1 for position loop and 1 for velocity loop) on a XY graph where X is one direction and Y the other one - in 2D coordinates).

 

That should be all. It must be pretty simple.

 

Paul

0 Kudos
Message 3 of 12
(3,125 Views)

Additionally:

 

To learn more about LabVIEW, I suggest you try looking at some of these tutorials.

0 Kudos
Message 4 of 12
(3,120 Views)

I think my question was not clear. I already have the encoder position and velocity which took me a lot of time to figure out since the wireless system does not have a built-in counter. Repharsing my question: I need to show the road map of the wheel chair "object" from a sky view or bird view. Please find a picture attached explaining.

 

Thanks.

Mechanical Engineer
0 Kudos
Message 5 of 12
(3,112 Views)

It sounds like all you need to do is feed your position data into an XY Graph. The data input is two numbers in a cluster in a 1D array. Is it true that you already have your position data order sequentially from one point to the next?

 

Eric

0 Kudos
Message 6 of 12
(3,097 Views)

Hello Eric,

 

I did not understand your question. It seems simple if it only depends on position but how about when turning left or right?

remember that I am using two encoders.

 

Thanks

 

Mechanical Engineer
0 Kudos
Message 7 of 12
(3,093 Views)

I guess a few of us weren't clear on how far you've gotten with the encoders and what your setup is like. Do you have one encoder on each wheel of the wheelchair? Is it this encoder data you are trying to convert to XY position?

 

Eric

0 Kudos
Message 8 of 12
(3,085 Views)

The wheel chair platform has two rollers and there is an encoder attached to each. So far, I have each encoder position and velocity which can be converted to get the velocity and position for each wheel of the wheelchair by conversion ratio. I hope that helped in explaining.

Mechanical Engineer
0 Kudos
Message 9 of 12
(3,083 Views)

OK, so you're question is how to take individual position data from each roller and convert it to an overall position for the wheelchair. I think it will depend on the diameter of your rollers and the spacing between them. Figuring out the math to make this work is part of the fun of this project. As you try to figure this out, you'll be able to experimentally verify just by moving the wheelchair along a known path. That might be the best place to start. Move the wheelchair along a known path with a 90 degree turn at some point and record the data.

 

I would be surprised if you find an entire solution to this problem here, but someone might have already done it and be able to post a link. However, this is a good place to ask questions about how to store, access, and plot your data. You can write it to a file as you acquire it and process it later... or you can write it to memory for post processing... or you can process it on the fly as it is being recorded.

 

First it seems like you need to define the mathematical relationships between the combined roller positions and overall wheelchair position.

 

Eric

0 Kudos
Message 10 of 12
(3,077 Views)