LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Are there multistable elements in LabView?

 
0 Kudos
Message 1 of 9
(3,980 Views)
Tell us more about this. What is a Multistable element? Is it a “boolean with more states”. What do you want to use it for? If you can pique the interest of someone in the community a helpful reply is more probable!
Yours Sincerely
John
0 Kudos
Message 2 of 9
(3,966 Views)
I mean a conventional trigger flipflop which is triggered by a boolean and gives boolean output states.
0 Kudos
Message 3 of 9
(3,941 Views)
No such primitive exists in LabVIEW, but you can easily generate this function with an uninitialized shift register and an inverter. You can add a case structure and controls for set, reset, or even J-K or D-type functions if you wish. Make a small subVI from this and you can use it as a building block for your logic.

Lynn
0 Kudos
Message 4 of 9
(3,921 Views)
Here is a D flip-flop VI that I created. You can test it by writing a vi that sends an array of data and clock inside a loop. I have also created a JK and an RS flip-flop. So far I don't really see any use for this, but if anybody has any use, I would be glad to send the flip-flop VIs.
- tbob

Inventor of the WORM Global
0 Kudos
Message 5 of 9
(3,917 Views)
Here is a vi that uses the D flip-flop vi to produce a frequency divider. The output is half the frequency of the input.
- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 9
(3,915 Views)
Hi tbob,
         Thanks for the frequency divider vi, it was what I was looking for, but during editing to suit my purpose I came across a little error.  I have attached the vi, basically i have a 1600Hz wave coming in and simply making it to 800Hz by running it through the d-type flip flop.  but the problem is that when I run the simulated graph through, the output is not a 800Hz graph but instead a constant line at the desired level.  Im pretty confused at this as I believe both signal sources are the same, could you please advise, as the simulated graph will eventually become a signal that I will acquired using my PCI-6052E card and it will be at a frequency of 1600Hz.  Thank you for your time.

Best Regards,
Coato
0 Kudos
Message 7 of 9
(3,490 Views)
The two signal sources are not the same. The implementation that tbob made relies on the signal level's minimum to be 0. Your Simulate Signal Express VI has the signal going between 1 and -1, so the signal is never 0, meaning the D flip-flop doesn't do anything.
0 Kudos
Message 8 of 9
(3,466 Views)
thanks smercurio, that solved my problem.

Coato
0 Kudos
Message 9 of 9
(3,443 Views)