Jump to content

Peristaltic Pump Custom Control


Recommended Posts

For a couple of months, in my spare time, I have been thinking about how to create this visualization. I first tried animated GIF's, but you cannot really control them.

I tried converting the GIF frames to a picture ring and that worked but it seemed like there should be an easier and better way. I finally realized that you could

do this by modifying a 3 needle meter control.

I was wondering if there is any technical reason why LV could not offer more control of a animated GIF image. Like frame rate control and frame direction.

Test it out by running the vi continously and watching the pump rotor follow the control dial. In my application this will be driven by reading the actual servo motor position.

Servo to Rotor Position.vi

Link to comment

Go with what works. I prefer to do things in native LabVIEW then relying on graphic tricks. It makes the code easier to edit by several developers. Sometimes, however it's easier to use animated GIF's.

I think the reason for not having a variable GIF frame rate is because ideally this should be specified inside the GIF file and playing with that seems counterintuitive. Actually this is defined as an interframe delay. If you create an animated GIF with no interframe delays then LabVIEW pins this to 100ms as a safety factor. You can play with this by setting by placing

MinMNGFrameDelay = xxx

in your ini file, where xxx is the minimum delay in milliseconds. The smallest number this will honor is 10ms.

This is old setting and not sure if LabVIEW 8.x supports it. If it does then we should add it to the [wiki]LabVIEW configuration file[/wiki] page.

Link to comment

I remember a few years ago the DSC shipped with a cute example called Chemical Reactor which had peristaltic pump indicators that were pic rings. I've scrounged through some old code and found the control.
 

[Moderator Note]

This post contained a broken link to an attachment. Best effort was made to find the attachment and fix the link. Unfortunately, the missing attachment could not be found. (ID 6360)

Link to comment

QUOTE(sachsm @ Jul 13 2007, 04:36 PM)



This is a great candidate for an XControl. Its a reusable graphical element and is data driven (via servo position data). Your CPU load may jump if you update the XControl terminal at too high a rate. You should sample the servo position no more than the view can perceive it (20-30 Hz).

I've wrapped your example in an XControl. I checked your profile, and see that you use 7.1. You can download the demo version of 8.2 from NI.
 

[Moderator Note]

This post contained a broken link to an attachment. Best effort was made to find the attachment and fix the link. Unfortunately, the missing attachment could not be found. (ID 6363)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.