LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loop to repeat output

Hello.

 

Just got a copy of the Labview 8.2 and of course became a Newbie.

 

Looking for a way to output a number of cycles after a trigger is activated (on / off switch). The out put is a led wired in a USB-6210 device and the switch is a NO type.

 

Would like to force the on / off of the switch for 5 times and to have an interval of 2 seconds in between of every cycle.

 

Not sure if the file I created is the best option, but what the hell.

 

 

 

Regards

 

 

0 Kudos
Message 1 of 12
(4,371 Views)


 

Not sure if the file I created is the best option, but what the hell.

 

I'm sure-- Its not.  But you can get there from here.

 

First the problems:

  • No way to stop your while loop
  • No dependancy on the condition (trigger) to start the for loop
  • No timing in the for loop to set the blink speed

Here is a queued blinker example I whipped up for you.  Read up on queues ond examine the examples that ship with LV

 

You will need to add the trigger level and hystresis to the top loop

 

Looks like your starting on the right foot!

 

Message Edited by Jeff Bohrer on 03-04-2010 12:07 PM

"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 12
(4,361 Views)

Jeff Bohrer

 

Thanks for the quick responce.

 

I try to run with the modifications, but it is given an error per the license I have on the machine when trying to open NI_MApro. lvlib file.

 

How can I solve this issue? Are there any other options?

 

 

Regards

0 Kudos
Message 3 of 12
(4,353 Views)

Sorry- I used a vi not in the base package  Ironically 

 Try this


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 12
(4,349 Views)

jeff,

 

This other file is not able to be modify.

0 Kudos
Message 5 of 12
(4,341 Views)

The upload puts the vi in operate mode.

 

Menu>Operate>Change to Edit Mode (Ctl + M) is the hot-key


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 12
(4,333 Views)

Jeff,

 

I have try the suggestion. The Ctrl + M does not send me to edit mode.

0 Kudos
Message 7 of 12
(4,326 Views)

aaaaaa.PNG

 


"Should be" isn't "Is" -Jay
Message 8 of 12
(4,318 Views)

Here is the message that I get.

 

 

0 Kudos
Message 9 of 12
(4,310 Views)

Leonel69 wrote:

Here is the message that I get.

 

 


Big problem with your file.  The image is completely unreadable.

 

Bigger problem.  DON'T TRY TO BYPASS THE BAN ON UPLOADING BITMAP IMAGES BY RENAMING IT TO A JPEG.Smiley Mad

 

Changing the file extension doesn't magically change a bitmap into a jpeg.  The ban on bitmaps is there to prevent people from uploading monstrous files that take a long time to download.

You managed to upload a nearly 700 kB file that is useless because it is too blurry to read.

0 Kudos
Message 10 of 12
(4,297 Views)