Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

error 3 occured at some unidentifed location?

sir ,

i  made a vi that runs two pm dc  motors for a finite duration of time and there is overlap period in which both the pm dc motors run simultaneously ,the vi is able to do the task but  the following error is appearing 4 times in the middle of the cycles . i have attached the error.1 jpg and the program final1.vi , please rectify the vi .

why is  that this error is appearing so commonly , could u tell me where i am wrong , so that i will rectify myself and learn from that .

please also send me a vi using daq max how to acquire analog input data for more no of channels, say 4 or 5 channels at a time synchronized and simultaneously .i tried to acquire two channels analog input from two tacho generators , but i am am not able to read the data as it is vacillating , please suggest me how to read  the correct values of the tachos , because noise is also adding up to the signal and even though mean of the dc signal is taken , i am not getting the correct result . if the value of the tacho is 6.5 volts after the  data acquistion is done the readings in the graph are ranging from 5.5 to 7.5 . how can i acquire the correct reading . please guide me .

thanking you

deepak




Deepak Kumar
M.Tech , Power and Energy Systems
NITK SURATHKAL
MANGALORE
INDIA
Download All
0 Kudos
Message 1 of 3
(3,471 Views)

Hi Deepak,

This is a very strange error that you are seeing. I think that it has to do with the error handling in your code. The reason that you were seeing it so often is because of all of the loops in your code. The error would occur once, you would hit "continue," but then the loop would run again and you would receive the error again. I am attaching a modification of part of your code as an example for you to use to modify the rest of the code.

If you want to acquire more than one channel for analog input, I recommend using the Continuous Acq & Graph Int Clk Example from the LabVIEW Example Finder. This is located in Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage. If you want to acquire from more than one channel, simply change DAQmx Channel Input. For example, to acquire from channels 0-4 on Device 1, your input would be "Dev1/ai0:4".

With regards to your noise question, I recommend taking a look at this tutorial: Field Wiring and Noise Considerations for Analog Signals. I hope that you find this information helpful.

Regards,
Hal L.

0 Kudos
Message 2 of 3
(3,454 Views)
Mr.HAL

Thank u sir for that information , my VI is error free , and the information u sent  has helped me a lot .

thanku once again

regards

deepak
Deepak Kumar
M.Tech , Power and Energy Systems
NITK SURATHKAL
MANGALORE
INDIA
0 Kudos
Message 3 of 3
(3,445 Views)