Jump to content

LAVA 1.0 Content

Members
  • Posts

    2,739
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by LAVA 1.0 Content

  1. QUOTE(balendran bala @ May 14 2007, 09:06 AM)

    Welcome to LAVA!

    I've never written commercial grade drivers for card based (PCI/PXI/VME) hardware before, so I don't know if there are special cases for this. I can tell you what I've seen though...

    Example: Fluke has a group of GPIB based instruments called multicalibrators. The NI driver for these instruments is a single driver download. The driver use a combination of the IDN query, VISA properties and an error handler to initialize the instrument and to check if a command is valid with that instrument. The driver sub-palletes are also broken down to allow selection of commands specific for the model. You would write a single driver for the series, and include code to handle the different models...

    Your could write a common function library that would reside in the root directory of your driver. This would be in the form of a LVLIB, and you would call this from the individual drivers. This would limit your driver to the later versions of LabVIEW ( 8.0 and up for LVLIBs). If your customers are using < 8.0, this wouldn't work...

    Another option would be writing an IVI based driver if you're looking to market these cards for languages other than LabVIEW :o . I would contact NI and ask them for their advice on this...

    As a final note, you might want to watch http://openmeas.blogspot.com/' target="_blank">Brian Powell's BLOG. He's a NI software architect who specializes in instrumentation.

  2. Hi,

    In OOP you also need the ability of encapsulation. Not just encapsulation of data, but also encapsulation of functionality. With your idea, how can I make two drivers (or in general objects) to two hardware devices, and choose which object to use at run time? (I know this can be done with dynamic references, but that's not oop!)

    If you find a way to embed this into your idea, I think you'll end up with pretty much the same as LabVOOP.

    Also in 5.3.2.3 you say: "Then the unbundle would let you see what was "initialized""

    That seems easy at first. But how can LabVIEW determine if the wire is initialized at compile time (or worse: during edit time). Lets say we have a wire comming from a case. The false case does the initialization, the true case doesn't. LabVIEW can't know which case is used, so it cannot disable the unbundle elements correctly.

    Some applies to class wires comming from sub vi's outputs, the connector pane (sub vi inputs), locals, globals, property nodes, variants, type casts or flattened strings.

    How would you make a sub vi that acts on the class? The user can wire both uninitialized and initialized wires to the sub vi. during editting, the wire will most likelly be uninitialized.

    Regards,

    Wiebe.

  3. QUOTE(JFM @ May 10 2007, 12:29 PM)

    .

    I'm not even sure I understand how it cannot be set to concatenate, if you have elements of two different dimensions (I don't have ).

    /J

    I noticed the same thing, I tried to get it to not concatenate, but could not duplicate. His avatar says 8.2 and that is the version I am using. How'd he do that?

  4. QUOTE(Mike Ashe @ May 10 2007, 09:03 AM)

    How do you propose to convey the desired information without wires?

    I didn't want to do the guy's homework, so I was trying to give him a description of what to look for. If I could easily show him ( like post-949-1178795752.gif ) then I would be closer to "teaching him to fish" without actually coding the whole thing.

    The logical progression is an on-line graphical editor, but who's got the time to write that :( .

  5. QUOTE(LV Punk @ May 10 2007, 01:30 PM)

    I do love the idea ! that would be so much easier than opening LabVIEW, do a snippet, make a screen-shot and post it.

    This would also let us post "labview code screenshots" form a computer without LabVIEW, I do not have LV installed on my computer at home.

    Question is :" is that possible ?" :o

  6. I was responding to a homework type post this morning. I wanted to help, but wasn't prepared to create an example, SnagIt, save as GIF, then upload.

    I was sort of wishing I could have quickly placed a couple of BD function icons to help the poster. I then thought of the INI file WIKI and showing the datatype graphically http://forums.lavag.org/index.php?act=attach&type=post&id=5800. :lightbulb: I realized that it might be useful to make the BD core functions and controls/indicators into emoticons for instruction/reference.

    The idea would be that one could enter something like :U32ctl: in a post and get a U32 control http://forums.lavag.org/index.php?act=attach&type=post&id=5800 or :bldarray: to get http://forums.lavag.org/index.php?act=attach&type=post&id=5801 as an emoticon.

    Any thoughts? Comments?

  7. You already have a case that is controlled by a boolean (F/R). You now want to control left/right (I presume) and need to handle 4 possible cases. I'm not going to do it for you, but one thing you can do is:

    add a second boolean control

    combine the F/R and L/R control outputs into an array

    convert the boolean array into a number

    connect the numeric result to the case statement

    set/add cases to the case statement for the values 0,1,2, and 3

    (as a SeniorStudent, the boolean logic should be simple ;) ) There are other ways to do this, but these are basic and useful functions anyone using LabVIEW needs to know.

    p.s. Thnx 4 usn' str8 english in ur 2nd post

  8. CITATION(JustinThomas @ May 10 2007, 09:24 AM)

    I don't get the problem if I explicitly close the file. This means the problem is because I do not close the file before power off. Any help would be appreciated.

    Hi Justin,

    Why do you not want to close the file after each write ?

    If you end up with very big log file, you may add maximum file length - eg : 10k lines - and create a new log file whenever the max size is reached. This would be quite easy if you turn your "write event to log file.vi" into a FGV that increment a counter each time you call it to log an event.

    Hope this can help

  9. QUOTE(SeniorStudent @ May 9 2007, 11:50 PM)

    Hello,

    I hav 2 cntrol 2 motors n a way that da user can choose wthr only one moves, or one moves followed by da 2nd..i hv the VI 4 cntrol'n 1 stpr motor. but i dint succeed 2 cntrl 2..im us'n 2 o/p lines of da LPT 4 da motor..

    any ideas.? i need them to be contorlled sequantially with a slight time delay in between..

    Give us more information that we can help you...

  10. QUOTE(Phaedrus @ May 5 2007, 10:49 AM)

    I've used alien to convert .rpm to .deb for installing on Ubuntu, works fine for installing LabVIEW PDS.

    Thanks. I found out about alien, but it's really hard to tell if that is the normal way to do it. I tried rpm2cpio without luck, and each try is can take hours (days) for a Linux beginner.

    I've also considered rpm2tar.gz, but haven't got around it. All Linux stuff is outsourced for now, but eventually I'd like to know more about it.

    BartPE is really not for us, unless I'm missing something here. We really need the system to be as cheap as possible, and with BartPE we should pay licence fee to M$. I know the Windows fee could be cheaper then the development cost in some cases. The aim is to make 1000 peaches, so we chose Linux.

    Regards,

    Wiebe

  11. Hello,

    I'm wondering if anyone has ever used WDSL in LabVIEW for linux and windows to communicate with webservices. WDSL is a protocol based on XML and it uses SOAP binding. (WDSL Specification)

    I'm looking for a LabVIEW implementation (G), or a shared library that is available in windows (.dll) and linux (.so).

    A link in the right direction would be very appreciated.

    Kind regards,

    André Buurman

    Carya Automatisering

    The Netherlands.

  12. I am working with Dave on this issue, and I know he doesn't read the fourm in the evening, so to help expedite things I will try to answer the questions.

    QUOTE(xtaldaz @ May 3 2007, 07:27 PM)

    This is the error "Error -2147467259 occurred at Cmd Execute.vi->testdata.vi" and there is nothing under possible reasons.

    QUOTE(xtaldaz @ May 3 2007, 07:27 PM)

    Does the non-parameterized version of that query work for PostgreSQL?

    Yes, several typical date formats work with single quotes.

    QUOTE(xtaldaz @ May 3 2007, 07:27 PM)

    Does the problem always occur with a date/time field or with any datatype?

    If the column in the database table is defined as a Date time field the error occurs. It doesn't matter if you define the datatype in the parameters field as a string or date time, it fails. Only columns defined as date have a problem. The same code works in Access using the Micrsoft Jet 4.0 OLE DB Provider and in Sybase using the Sybase ASE OLE DB provider. Any help would be greatly appreciated.

    Thanks,

    Todd

  13. I recently did my upgrade to LV 8.2.1 which included an upgrade to MAX 4.2, I immediately noticed one major change, no test panels. Instead of a floating display window when you hit the "Test" button, it is a split pane view with configuration in the bottom view and control or display information above.

    While in some respects this may be desirable, to me they have taken away functionality. It would appear that I can only display the data as a graph, before I had the option to view the data as a chart, graph or value. If you have a task measuring DC levels on 32 channels, several of the values being identical, it is near impossible to get meaningful information in a graphical view.

    Also, I often would have several test panels open at once, maybe toggle a couple of relays and view a couple of voltage channels, with the test panels now embedded in the upper pane of MAX this seems no longer possible.

    I hope I am missing something, I called NI, they are getting back to me, I found nothing in the MAX help addressing this. I hope somebody has found a way to duplicate the functionality that existed in earlier versions, or if anybody can address why the change, I would like to hear from you.

×
×
  • Create New...

Important Information

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