Jump to content

Khalid

Members
  • Posts

    160
  • Joined

  • Last visited

Posts posted by Khalid

  1. I plan to use DataSockets to be the OPC Client and I have the spec. for the target OPC

    server and need to write a Labview device driver.

    5970[/snapback]

    Hi Bill,

    Will there be other clients commnicating with this device? I am just wondering, if it's only LabVIEW that will be communicating with this device, you can write the device driver for it in LabVIEW and use it as-is in the client portion of LabVIEW (without making it an OPC Server). Writing an OPC Server in LabVIEW is definitely more difficult than an OPC Client. And that too without proper documentation and device to test.

    As for the OPC OpenG toolkit, I am not sure if it will be infringing upon DSC Copyrights. May be we should start a discussion for this on OpenG.

    Regards,

    -Khalid

  2. Hi,

    When you're using property nodes, you're only affecting how you display the string. Yo are NOT actually modifying the string itself. Thus you're "losing" the underline when you concatenate the strings.

    You will therefore need to use the property node for the final string indicator. And to underline character(s) from within the string, you can use the Selection Start/End property. See the following thread for more on this property:

    http://forums.lavausergroup.org/index.php?showtopic=437

    I am attaching the modified example (saved in 7.1.1).

    Hope this helps,

    -Khalid

    Download File:post-311-1124166966.vi

  3. Is the OPC server from Kepware more "friendly" to use with LabVIEW?

    5655[/snapback]

    Not sure how a friendlier OPC Server would help...? Because with DataSocket (and DSC) ruled out, I don't see any other way of making LabVIEW an OPC Client. Unless of course you plan on making your own OPC Client and calling it from within LabVIEW.

    Is there inetrest enough for an OpenG "OPC VIs" project?

    Regards,

    -Khalid

  4. This may not be exactly what you are looking for, but is (hopefully) good info' in general:

    Benchmark Execution Speed of LabVIEW Applications

    It has the following quote, for instance: "... 3 to 10 times reduction in development time you benefit from when you develop applications in LabVIEW..."

    I personally have developed both in C/C++ and LabVIEW and agree with the above statement, especially when it comes to measurement and automation systems.

    Regards,

    -Khalid

  5. I need to develop a network distributed application for data monitoring and control so i must create the comunication protocol.

    1301[/snapback]

    Hi Alessandro,

    This is not a direct answer to your question... just want to make you aware of an existing product -- the Datalogging and Supervisory Control (DSC) module for LabVIEW, which has built-in networking functionality for monitoring and control.

    Please visit the following page for more info' on the LabVIEW-DSC module:

    http://sine.ni.com/apps/we/nioc.vp?cid=10418〈=US

    :question: Why re-invent the wheel? You should take into account the development AND maintenance time for the really-proprietary networking protocol. I guess it depends on how big/small of an application you're developing.

    Regards,

    Khalid Ansari

  6. Hi gsussman,

    Here's something that might be a solution for such situations -- ghosting :lightbulb:. We use this for testing various combination of OSes and product versions. Ghosting, for those who do not know, is the process of backing up the entire partition of a hard-disk as an image which can be later restored. Symantec has this product called Norton Ghost which does this and which we have been using successfully for a while now.

    The idea is to have two hard disks, or at least two partitions. Let's call them System and Data. System is where your OS is installed. And all those products which you want to ghost. Data is where you store data, and your ghost images.

    You can now create images with combinations of the right versions of LabVIEW, FieldPoint, and anything else that needs to be with this combination. You can have many such images with different combinations of LabVIEW and other driver software, and save them on the data disk.

    Using Norton Ghost, you can restore any of these images as your system partition. Common files can be on the Data partition. You can also have programs which don't have effect on your development combo on the data disk, like your email client, for instance. However, note that since the System partition has the OS, almost all programs will have some files on that partition (which is fine).

    Whenever there's an issue which requires a particular combination, you fire up that combination and you're good to go :thumbup:. The restoring (and ghosting) process is pretty fast -- few minutes. You can also compress the images (takes a little longer though) and burn them onto CDs, or store them on the network.

    As I said earlier, we do this on our test system. You could dedicate a machine for such "old issues." But I don't see why your development machine cannot have this. Ghosting the development machine itself from time-to-time seems like a good idea.

    In the passing, I must mention that Windows-XP has this feature called "Restore Points" which may sound like a good alternative, but it doesn't restore user files/data. The list of files it restores can be found in: systemroot\System32\Restore\Filelist.xml

    Hope this gives you some ideas.

    Regards,

    Khalid Ansari

  7. Hi,

    You would start with the examples (\examples\instr\smplserl.llb). If the examples do not give you the desired results, try the loop-back test. For RS-485, on one of the ports you would short pins 4 and 8 together, and 5 and 9 together, thus connecting RX+ to TX+ and RX- to TX-. Whatever you write to this port should be looped-back to you. You may use the 'Basic Serial Write and Read.vi' example for testing this. This should eliminate any issues with your multimeter and test the card and the serial drivers first.

    If you haven't already seen this, here's a troubleshooting tutorial on NI's website:

    http://zone.ni.com/devzone/conceptd.nsf/we...29?opendocument

    Hope this helps,

    Khalid Ansari

  8. Hi,

    On your sub-VI which has the baud-rate Control, connect this Control to the connector pane making it one of the inputs. (If the baud-rate is a Constant on the diagram, you will replace it with a Control on the front-panel).

    Then, in your top-VI, add a Control to the panel and wire its terminal to the baud-rate input you just created on the sub-VI. (Or, an easier option is to right-click on the baud-rate input you created and select Create Control. This will add the Control to the top-VI's front panel.)

    Hope this helps.

    Khalid Ansari

×
×
  • Create New...

Important Information

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