Jump to content

Michael Aivaliotis

Administrators
  • Posts

    6,196
  • Joined

  • Last visited

  • Days Won

    104

Posts posted by Michael Aivaliotis

  1. I tried that, but I still get an invalid object reference when I unbundle-by-name and feed the reference into the property node. 

    But just to make sure you and I aren't thinking about different things, what exactly is entailed in making a cluster out of these references? In my block diagram when I created a reference for each of the controls, I was unable to wrap a cluster structure around them. I had to create controls for each reference, which then appeared on the FP, and then I was able to jam these controls into a cluster.

    Is there a way I can directly stick the references into a cluster on the block diagram?

    2665[/snapback]

    You have to use the bundle function on the diagram and wire each control reference control into the bundlw function. I think the problem occurs when you grab the controls and put them into the cluster. You must do this programmatically as I state.

  2. I was thinking of making the C program write to a text file, and the Labview program reading the text file.  Will this work?  Does anyone know of a simple solution to my problem?  It doesn't have to be pretty.

    2609[/snapback]

    It sounds like you found a solution. Another way is to create the file in the c program and then have lv check for the presence of the file. When LV toggles the boolean then have lv delete the file. Repeat this process. This way you can have the c program verify that LV saw the file and toggled the boolean. As you say, NOT pretty but works. Why not get LV to do the DAQ card directly?
  3. OK, now I try something like this.

    But so far I get a failure message:

    Failure 10 arisen at new file in serial test....

    Possible reasons: LV: path doubly

    NI-488: New I/O expected with old I/O in range.

    2570[/snapback]

    The error is comming from another VI that is trying to write to the same file you are trying to read. When you use the "read characters from file.vi" it sets the read-only flag on the file. This means while you are reading the file, all other vi's accessing the file will give an error.

    post-2-1099723398.gif?width=400

  4. PID control on a PC? Hmm. If it was more than 5 years ago I'd say sure, give it a go. However now with the availability of the LabVIEW RT software module and the RT targets, why go PC? The frequency is low enough to be run on a compact fieldpoint module. You will not get determinism on the windows platform. How critical is this control? What happens if you lose control? Do bad things happen? Do people get hurt?

  5. Yes, it's monitor controls, but i found the rude way and that is ok. It  is disapearing the controls, if is not visible you can change it. :P , i wanted block controls without invisible their, but it's ok

    Thanks

    2508[/snapback]

    You can also use the "disable" property.

  6. I was on-site recently and was stumped by a few DAQmx issues. I qualify this by saying that i'm running LV7.0 with the DAQmx drivers that came with it. It's possible that these issues have been resolved in the most recent release.

    The first problem is the tasks vs. channels. For some reason the task behaves quirky. In a continuous loop situation, when I used a task setup to monitor an input, I would not always get the latest voltage. Sometimes it appeared to display a previous cached value even though I verified that the voltage was changing on the input. I was also calling the same task name in a parallel loop (because i could). When I switched to using a straight global channel name, the problem went away.

    The other issue is with the MAX configuration. I wish I had more time to debug this and provide a better solution but... The DAQmx tasks and channel names do not seem to be immeadiatly available when you boot your computer into another user account (under WinXP). My entire debugging was performed under an administrator account. Whenever I booted clean, the DAQ portion of my application would work properly. However, When I booted clean into an Operator account (no administrator access), the DAQ portion of my application would not function. It would not readback correctly. My debugging skills told me to go into MAX and verify the DAQmx tasks and channels. All is required is to expand the (+) icon on the tree to expose the tasks. Then if I go back into my application, it works! Why?

  7. I assume you want to selectively monitor controls? For example, sometimes you look for a value change and sometimes you ignore it?

    This is possible by using dynamic event registration. Without going into too much detail, this allows you to register a control and monitor events on it. When you do not want to monitor events then you would temporarily unregister the control.

    I recommend that you investigate the LabVIEW event examples. There are several examples that show you how to do this. Go into your labview example finder in your help. If you have more questions after this then come back and I can help you out. I've used this extensively.

  8. I use LV made a llb program the size is 234KB, but When I build an application with the LabVIEW Application Builder, the Installer folder size was almost 4.77MB(No Run-Time engine).

    I would like to reduce my installer folder size.

    2476[/snapback]

    It's possible to reduce the size however there is a minimum overhead that must be there. This is a function of the Windows installer. The data.cab file is where all your installed files reside. This is where your *.llb is. The other stuff is required to support running the installer on specific windows platforms. For example, if you run it on Windows 95 or NT then the installer engine must be installed first before the actual install takes place. It's possible that the engine is already there however you don't always know that.

    The LabVIEW install builder creates a safe installation so that everything works on any platform. This usually means excessive baggage you don't really need. If you want to manipulate the final size of the install and create a lean install folder then you must go to a third-party application like Installshield.

  9. Could I wire a proberty node of the option field instead an enum?

    I changed it - in the moment it looks like this - I forgot to add two more boolesch references because I have three options and the new is to show only two things (led...).

    But the output of the led's make problems. I can't connect it direct with a tunnel.

    2471[/snapback]

    Why not? Of course you can connect a control. You already have an enum on the front panel, no? Also, you can leave the property nodes outside or inside the case. Just wire the constants. You can aslo wire the boolean through. For cases that you do not use then you can specify a default case the does nothing.

    post-2-1098850913.gif?width=400

  10. I guess I was looking for more detailed information on how to do the animation?

    2453[/snapback]

    Well, it is an animated GIF. You can create this with a graphics package that allows you to do this. The makers of Paintshop Pro have a program called Animation Shop. I think it is included as a bundle. It shows your animation as sequential frames. Like a roll of film.

  11. I will give that a try, but here is a picture of what I mean.  Anyhow, apparently I can get it to align if I resize the font.  The problem is that it gets too small to read.  :wacko:

    post-333-1098199532.gif?width=400

    2385[/snapback]

    Why not just increase the Font size of the legend only? Seems to work for me.

    post-2-1098404278.gif?width=400

×
×
  • Create New...

Important Information

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