From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-02-2014 11:09 AM
I am using a flat sequence structure program to send commands to two machines, but one goes faster than the other one, if one is still initialiazing in the second frame the other one is in the last frame. I tried to fix the problem by using a case structure and after that I connected a "Elapsed Time" to it so I have a condition but it still skips my first step. Anyone has any idea on how I can I fix the problem?
08-02-2014 11:47 AM
@mpintea wrote:
I am using a flat sequence structure program to send commands to two machines, but one goes faster than the other one, if one is still initialiazing in the second frame the other one is in the last frame. I tried to fix the problem by using a case structure and after that I connected a "Elapsed Time" to it so I have a condition but it still skips my first step. Anyone has any idea on how I can I fix the problem?
Without a VI who knows.
08-02-2014 12:14 PM
Your post doesn't even come close to giving enough information to give a rational response.
What version of LV?
What OS?
How are you communicating?
What are the devices?
and the really big one:
What does your code look like?
With the information you gave, it could be a technical issue, or it might be space aliens/CIA/Masons/reptilian-illuminati causing it.
Mike...
08-02-2014 06:28 PM
@mikeporter wrote:
Your post doesn't even come close to giving enough information to give a rational response.
What version of LV?
What OS?
How are you communicating?
What are the devices?
and the really big one:
What does your code look like?
With the information you gave, it could be a technical issue, or it might be space aliens/CIA/Masons/reptilian-illuminati causing it.
Mike...
Could be Congress because they are good at mucking things up.
08-03-2014 01:53 AM
Are you using the same SubVI(s) for the communication to your two machines (whatever these are)?
If these SubVI(s) are not reenetrant they cannot run in parallel. That could explain why one chain of commands gets executed faster than the other.
Jens
08-03-2014 07:37 AM
I'm using 2012 version of Labview.
I am using a function generator to send impulses and I want to drive a machine moving on X, Y and Z, once the machine gets to a certain position I want to send certain impulses, once that is done I want the machine to move to the next step. The problem comes when the function generator sends the impulses earlier than the machine gets to the specified position even though it is set in the right flat sequence frame. I use two for loops in one of the flat sequence frames to set the postion on x and Y, then a case structure connected to a "Time Elapsed" in order to send the impulses. I used the case structure just trying to put a condition for the function generator not to trigger before the position is set, but unfortunately it skips the first step in the for loop. Time delays don't help much.
I'm using USB ports for communication and "VISA write" and "VISA read" to send the commands.
Regards,
Maria
08-03-2014 07:57 AM
Answering would be much easier if you post your code - al least post a screenshot of your block diagram.
Regards, Jens
08-03-2014 07:58 AM
Ok, we now have a basic idea of what is happening, but we need to see your code.
Mike...
08-03-2014 08:05 AM - edited 08-03-2014 08:05 AM
Besides proprietary reasons, I have no idea why people are so reluctant to post their code. It's like describing to a mechanic what's happening to your car, but refusing to bring it in.
08-04-2014 04:01 AM
Here's my code...