Answers.Body: <p>I would recommend you post this question to the National Instruments Discussion Forums. We have a dedicated board for supporting the LabVIEW for Mindstorms software. Since you are using LabVIEW, you can post the question there and NI support engineers are guaranteed to help you.
  <a href="http://forums.ni.com/t5/LabVIEW-for-LEGO-MINDSTORMS-and/bd-p/460" rel="nofollow">http://forums.ni.com/t5/LabVIEW-for-LEGO-MINDSTORMS-and/bd-p/460</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2011-12-08T02:48:33.973Z
Answers.Text: William: if you get an answer from the NI site, can you please post back here with what you find out? Emilie: it sounds like you work for NI. Is there any chance that an engineer would be able to answer the question here on this site?
Answers.UserDisplayName: nhinkle
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2011-12-12T16:05:54.267Z
Answers.Text: Yes, I'm the Social Business manager for NI. I keep an ear out for any mentions of our products. Unfortunately, I can't assign a support request from an external site directly to an NI engineer. William will have to go through our online support channel on the NI Support Forums. But it should be very easy to crosslink to the discussion forum thread when he gets an answer there.
Answers.UserDisplayName: Emilie
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2011-12-06T22:19:21.157Z
Answers.LastActivityDate: 2011-12-06T22:19:21.157Z
Answers.UserDisplayName: Emilie
Answers.Body: <p>Remove the waveform chart and change the stop bottom to constant 'F' and try it. When you target to NXT, the programm can not compile the waveform charts and many other things to NXT.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-12-31T12:18:12.293Z
Answers.LastActivityDate: 2012-12-31T12:18:12.293Z
Answers.UserDisplayName: Vahid
Body: <p>I have a program written in Labview for my LEGO Mindstorms NXT 2.0. When the target is set to the computer, the program works just fine. However, when I set the target to the NXT, the program doesn't work the same as when targeted to the computer.</p>
  
  <p>The program makes the robot go forward until it is 30 centimetres away from an object, which is detected by the NXT's ultrasonic sensor. Then the robot will stop. If the object is moved and there is no object within 30 centimeters of the NXT's ultrasonic sensor, the robot will go forward again until it is 30 centimeters away from an object again. Then, it will stop.</p>
  
  <p>This works when the target is set to computer in Labview, but not when set to NXT. When set to NXT, once the first object is detected, it will stop. But, if the object is removed and there is no longer any object within 30 centimetres of the ultrasonic sensor, the robot will remain stationary and not move forward.</p>
  
  <p>Here is a screenshot of the block diagram:</p>
  
  <p><a href="https://i.sstatic.net/xhWBK.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/xl1YK.png" alt="Screenshot of LabVIEW block diagram"></a></p>
  
  <p><a href="http://www.cboos.com/can%20grabber.lvrbt_2011_12_04_1641.zip" rel="nofollow noreferrer">Here is a link to the source code for the program</a>. </p>
  
  <p>Any help would be greatly appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2011-12-05T23:27:27.770Z
Comments.Text: Could you post a picture of your block diagram in LabVIEW?
Comments.UserDisplayName: nhinkle
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2011-12-06T01:02:18.733Z
Comments.Text: There, posted it. It will reflect this as soon as the edit is approved.
Comments.UserDisplayName: William
Tags: <mindstorms><nxt><programming><labview>
Title: Why does this program work in LabView when targeted to computer but not to NXT?
UserDisplayName: William
ThreadText: # Why does this program work in LabView when targeted to computer but not to NXT?
  
  (Asked by: username_0 on 2011-12-04)
  
  I have a program written in Labview for my LEGO Mindstorms NXT 2.0. When the target is set to the computer, the program works just fine. However, when I set the target to the NXT, the program doesn't work the same as when targeted to the computer.
  
  The program makes the robot go forward until it is 30 centimetres away from an object, which is detected by the NXT's ultrasonic sensor. Then the robot will stop. If the object is moved and there is no object within 30 centimeters of the NXT's ultrasonic sensor, the robot will go forward again until it is 30 centimeters away from an object again. Then, it will stop.
  
  This works when the target is set to computer in Labview, but not when set to NXT. When set to NXT, once the first object is detected, it will stop. But, if the object is removed and there is no longer any object within 30 centimetres of the ultrasonic sensor, the robot will remain stationary and not move forward.
  
  Here is a screenshot of the block diagram:
  
  [![Screenshot of LabVIEW block diagram](https://i.sstatic.net/xl1YK.png)](https://i.sstatic.net/xhWBK.png)
  
  [Here is a link to the source code for the program](http://www.cboos.com/can%20grabber.lvrbt_2011_12_04_1641.zip).
  
  Any help would be greatly appreciated.
  
  **Tags:** mindstorms, nxt, programming, labview
  
  > **Comments:**
  > **username_1**: Could you post a picture of your block diagram in LabVIEW?  
  > **username_0**: There, posted it. It will reflect this as soon as the edit is approved.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2011-12-06. Score: 2 | Accepted answer
  
  I would recommend you post this question to the National Instruments Discussion Forums. We have a dedicated board for supporting the LabVIEW for Mindstorms software. Since you are using LabVIEW, you can post the question there and NI support engineers are guaranteed to help you.
  <http://forums.ni.com/t5/LabVIEW-for-LEGO-MINDSTORMS-and/bd-p/460>
  
  > **Comments:**
  > **username_1**: username_0: if you get an answer from the NI site, can you please post back here with what you find out? username_2: it sounds like you work for NI. Is there any chance that an engineer would be able to answer the question here on this site?  
  > **username_2**: Yes, I'm the Social Business manager for NI. I keep an ear out for any mentions of our products. Unfortunately, I can't assign a support request from an external site directly to an NI engineer. username_0 will have to go through our online support channel on the NI Support Forums. But it should be very easy to crosslink to the discussion forum thread when he gets an answer there.  
  
  ---
  
  ### Answer by username_3 on 2012-12-31. Score: 0
  
  Remove the waveform chart and change the stop bottom to constant 'F' and try it. When you target to NXT, the programm can not compile the waveform charts and many other things to NXT.
  
  
  ---
  
  