Jump to content

Khalid

Members
  • Posts

    160
  • Joined

  • Last visited

Posts posted by Khalid

  1. Can you recommend a good manual for this issue?

    Hi Marius,

    I must commend your willingness to learn. Here are some basic resources for learning LabVIEW:

    http://www.ni.com/academic/lv_training/how_learn_lv.htm

    http://forums.lavag.org/knowledgebase.html&showarticle=3

    After this, you will want to pick up a good book, like Jim Kring's LabVIEW for Everyone. Of course, monitoring these forums and participating in the discussions is invaluable as well.

    Good luck!

    -Khalid

  2. Marius,

    You should look at the Event Structure in LabVIEW, and use that instead of the While Loop. With the current implementation you are polling the Save and Load buttons all the time in the While loop. With Event Structure you would get an event whenever any of these button's values change (after you set it up that way). Plus, with your Vb background, you will like Events :)

    As for passing the array reference into the subVI and then using a Property Node, I guess it can be considered similar to using a pointer. But, you don't want to do that in LabVIEW unless you have a good reason. Because, Property Nodes execute in the UI thread (which is other than the diagram thread), and this will cause a thread-switching which is expensive. Here's a comparison of Terminal versus Property Node versus Local variable:

    Local variable = 15 times slower than Terminal

    Property node = 653 (!!!) times slower than Terminal

    The above is from the following post: http://forums.ni.com/ni/board/message?boar...essage.id=90261

    Depending on how long you will be working with LabVIEW, you may want to stop thinking in terms of C and VB, and start thinking in terms of data-flow programming.

    Regards,

    -Khalid

  3. ... I am not sure how to

    make the axle work, which busregisters I should use, ...

    Hello Harry,

    Looking at the manual briefly, it doesn't list the Modbus addresses for the parameters explicitly anywhere. However, sections 5.4 and 5.5 do list some examples. In these sections, the register addresses are specified in paranthesis. You will want to contact the device manufacturer to get a complete of Modbus register addresses.

    Gut gl

  4. I want the work of the SCADA systems of irrigation and agriculture, needed to link with the LV PLC and here I want to ask how they link Do I need OPC or another there Shi

    It depends on the communication protocol the PLCs use. Please find out the exact communication protocols the PLCs use. We can then discuss the options available for communicating with LabVIEW.

    -Khalid

  5. I am guessing you would like to communicate with the two PLCs using LabVIEW. Please write in detail as to what exactly you are trying to accomplish.

    The Delta PLC uses the Modbus protocol as per the attachment. And I am again guessing -- based on your previous posts -- you have been able to communicate with it. What communication protocol does the Omron PLC use? Alternatively, does it come with an OPC Server?

    Also, please share any details and VIs that you have tried so far.

    Regards,

    -Khalid

  6. Hello all,

    I am using board from keithly and put inside the pc the KPCI then i interface it with STA 300 now I need to find the analog ports in the STA 300,,

    could u plz help me... i am doing senior project in school of engineering and i am running out of time..

    help plz

    Hi,

    What Keithley KPCI board are you using? Did you check Keithley's website for example VIs?

    -Khalid

  7. Dirk J.

    Thank you very much, Yup, this is what I am looking for, but it since support BMP image only ? fail to JPEG picture.

    The wallpaper (eventually) has to be a BMP. When you are manually setting a JPEG, for example, as your wallpaper, Windows actually makes a copy of this to a BMP format and uses that for the wallpaper. Check out the 'Wallpaper' and 'ConvertedWallpaper' regisrty entries under HKEY_CURRENT_USER\Control Panel\Desktop.

    Regards,

    -Khalid

  8. BBC and other media will very likely spell LabVIEW as Labview. The following is my recent (and true!) correspondence with BBC on a similar issue:

    --- NewsOnline Complaints <newsonline.complaints@bbc.co.uk> wrote:

    > Subject: RE: Feedback [NewsWatch]

    > Date: Thu, 26 Oct 2006 17:03:36 +0100

    > From: "NewsOnline Complaints"

    > <newsonline.complaints@bbc.co.uk>

    > To: <[removed to avoid spam]>

    >

    > Thank you for your email.

    >

    > It is the style of BBC News Online to spell all acronyms that

    > are read

    > like a word (Unesco, Aids, Nato and Unep) in lower case.

    > Acronyms that

    > have each letter sounded (BBC, IPCC and FBI) are written in

    > upper case.

    >

    > This style is intended to help the reader scan the page. It

    > is adopted

    > by a number of publishing groups and is not unique to us.

    >

    > Regards

    > BBC News Website

    > http://news.bbc.co.uk/

    >

    >

    >

    >

    > -----Original Message-----

    > From: [removed to avoid spam]

    > Sent: 26 October 2006 05:09

    > To: News General Feedback

    > Subject: Feedback [NewsWatch]

    >

    >

    >

    > From: Khalid Ansari

    > Email address: [removed to avoid spam]

    > Country: Canada

    >

    > COMMENTS: Sorry for being a stickler, but have noticed BBC has

    > been

    > pretty sloppy with the English usage lately. See the

    > following for

    > instance:

    >

    > http://news.bbc.co.uk/2/hi/science/nature/6076212.stm

    >

    > "Nasa" and "Stereo" are acronyms that should be capitalized.

    > Check

    > NASA's website:

    >

    > http://www.nasa.gov/mission_pages/stereo/main/index.html

    >

    > Regards,

    >

    > -Khalid

    > Khalid Ansari, Canada

    >

  9. i am use 7.1 not 8.1

    but i dont how use with PLC

    i need this information in the fast time

    Alameer,

    Sorry for the delay in getting back to you. I looked at your DeltaPLC protocol. It uses the ASCII mode of the Modbus protocol. Unfortunately, at the moment I do not have a Modbus-ASCII device to test this. But, you can try using the 'MB Serial Master Query.vi' and changing the mode to ASCII. You can add the 'MB Serial Init.vi' to this with your Serial settings. If successful, you should see the data in the Modbus Data Unit Out cluster.

    Hope this gets you started at least.

    Regards,

    -Khalid

    PS: By the way, I tried running the Master and Slave examples included in the library in ASCII mode but wasn't successful.

    Khalid,

    I thought the original NI Modbus library was not working correctly in 8.x, did you fix this library for 8.x? I like the idea of cleaning up this code. I always wondered why NI decided to put all these VIs into 1 library. I think serial and TCP should be separate library's. I also think master and slave should be separate, too but that just my opinion. First step in clean would be using a .lvlib and geting this into project form with public and private VIs. Taking it one step further would be converting this library to a class.

    David

    Hi David,

    Sorry for the delayed response. I don't remember fixing anything specifically for 8.x. But, as you know, there are issues in general with this library, especially with the Slave code.

    I agree with your suggestions that the Ethernet and Serial versions could be separated (even if they use some common core VIs), Slave implementation can be improved, and all these can be moved to individual .lvlibs. I also don't like the fact that pretty much every VI in the library is reentrant. Haven't studied them in detail, but I am not sure if they all have to be reentrant.

    I guess as a first step, we should formalize the list of changes, and priortize them.

    Regards,

    -Khalid

  10. my card is KPCI 3100 !! but what is MAX??

    MAX is short for Measurement and Automation eXplorer -- National Instruments' hardware configuration software. You would use this to configure your hardware boards and devices.

    Who makes this JPCI 3100? Do they have VIs for it?

    -Khalid

  11. You're very welcome. The NI Modbus library has support for both Serial and Ethernet Modbus. From your first post it appears you wil be using the Serial mode. So, start by trying out the MB Serial Example Master.vi and MB Serial Example Slave.vi first. You could use two computers -- one as Master another as Slave, or use a null-modem cable to loop from one COM port to another on the same PC.

    Your goal should be to communicate between the Example Slave and Master VIs. Once you have this working, replace the Example Slave VI with your PLC.

    Feel free to post any questions you may have. Again, I strongly recommend that you get the Example working first.

    -Khalid

×
×
  • Create New...

Important Information

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