LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Program Help

Kamilan,

 

Before I continue into looking at this code I would like to first analyze your end goal.  What resolution do you expect to receive assuming this program was working perfectly?  By my calculations the sound will travel to your speaker 1m away in roughly 3ms.  The time in software to: execute this pulse, start the counter, produce the sound, acquire the sound, send a signal back to the computer, read in the signal go through 2 of your different loops (each with a 1ms wait attached to it), and stopping the counter will take a significant amount of time and therefore affect your accuracy significantly.  In addition LabVIEW being based on Windows cannot be that accurate and can be affected by simple things like the mouse moving.

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 11 of 15
(874 Views)

Hi there,

 

Ideally I'd love to get the "perfect" resolution of 3.4mm using the 100kHz clock. However, you message has put my project into a realistic perspective. I would settle for 50mm resolution at this time as my thesis is due in 3 months. There are going to be two more beacons, each looking out for a different frequency.

 

This way I can triangulate the position of my robot in a 10m by 10m room. Would it be best to have an external beep generator?

 

What are your thoughts on the problem?

 

Cheers

 

K

0 Kudos
Message 12 of 15
(854 Views)

Kamilan,

 

Do you mean that there are going to be 3 receivers and 1 robot transmitting or 3 transmitters and 1 robot receiving?  Is this robot going to be tethered and how are you going to get data to and from it?

 

I think that the way to do this would be by using FPGA.  I would also use external beep generator(s) for 2 reasons:

1) If beep generator is on the outside you will need 3 generators thus 3 computers which would be excessive.

2) I think external beep generation will be faster than the internal motherboard beep (I am not positive of this just my general thought).

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 13 of 15
(826 Views)

Hi there, there are going to be 3 receivers and 1 robot transmitting. The receivers have radio transmitters on them, and the Robot has the receiver for that particular radio channel.

 

If you have a look at the code, the frequency beep comes through the computer speakers. The frequency can be changed to up to 10000 kHz.  At the moment it is set to 1500 kHz for testing purposes. Three computers are not necessary. 

 

However I will make the external trigger further for testing purposes.

 

Can Labview be used for time critical applications? I'm few people have suggested that looking at clock cycles would be better.

 

Hope this helps clear up my code function.

 

Cheers

 

Kamilan

 

0 Kudos
Message 14 of 15
(817 Views)

Kamilan,

 

Not only can LabVIEW "not be trusted" but even anything based on windows cannot be trusted to get the accuracy you are looking for.

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 15 of 15
(806 Views)