LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ERR (-2147467259) When trying to run VI

I have a VI called "Pitch_Change" that has the user input a desired angle they want to rotate a machine by into 'Pitch Angle (deg)', click run, and then the VI will rotate the machine to the input angle. The VI works perfectly for single use, I enter an angle then click run then it stops, but I want to implement it into another VI where the user inputs many different angles and machine rotates to each one.

 

I wrote a VI with a FOR loop that essentially just runs "Pitch_Change" for every value input into an array. I ran it multiple times and I know 'Pitch Angle (deg)' accepts each angle input but it only rotates for the first input every time. For every input after that it executes the "Pitch_Chnage" VI but has the error 'ERR (-2147467259)' at every Node in the VI and does not work.

 

Attached is JPEGS of the front panel of the "Pitch_Change" VI (which is actually displaying the erorr message), the back Panel, and both the front and back of the VI with the for loop for running multiple angles.

 

Also Attached is the VIs themselves but because you can't connect to the hardware I doubt they will execute properly so they are for examination only.

0 Kudos
Message 1 of 7
(3,564 Views)

Please do not attach Pictures -- they are hard to see, cannot be executed or closely examined, and if we want to try out the code, you are forcing us to do a lot of work (which makes it less likely we'll be helpful).  Attach the VI or VIs (if you have more than one, use a ZIP file).

 

Bob Schor

0 Kudos
Message 2 of 7
(3,550 Views)

I've removed the pictures and attached the VIs as suggested. As now stated in the post, the VIs will not run properly without the hardware I have but I hope they still can be of help.

0 Kudos
Message 3 of 7
(3,540 Views)

@PConnors wrote:

I've removed the pictures and attached the VIs as suggested. As now stated in the post, the VIs will not run properly without the hardware I have but I hope they still can be of help.


And Galil is notorious for letting no-one at the tech documentation.

 

The hardware you are talking to,  it wouldn't be a dmc21-3 would it?


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 7
(3,533 Views)

That actually is helpful (because it is much easier to see what is wired to what and to read the now-not-so-tiny text).

 

You seem to be using an externally-referenced Library (or something similar) called Galil.  Indeed, your Error suggests that something in Galil is not working properly.

 

Do you know about highlight Execution?  On the Block Diagram, that's the little Light Bulb, about the fifth icon on the Icon Bar.  If you turn it on and run your code while the Block Diagram is visible, it will run very slowly, but show you data flowing on all of the wires.  Because you have properly (yay!) wired the Error Line through your Property Nodes, if one of the IGalil functions is mis-behaving, you will see its Error Line return an Error (probably), and can narrow down on which Function to focus your attention.

 

Bob Schor

0 Kudos
Message 5 of 7
(3,519 Views)

No it's not that one, it's the DMC4040.

0 Kudos
Message 6 of 7
(3,514 Views)

Well then youll need to show us the user manual.  There must be something wrong.  (I picked on the 21-3 because its serial port cant achieve the 115k your picture showed.)

 

Galil tech support should be able to help too


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 7
(3,507 Views)