Jump to content

osvaldo

Members
  • Posts

    46
  • Joined

  • Last visited

Posts posted by osvaldo

  1. I've used SuSE 10.x for developing with LabView 8.0 and works great, but some issue with the hardware driver dues to binary difference in version of system libraries... Some time I need to recompile drivers (like GPIB) and some time I can't properly install them... so I use it only for on developing environment (in my opinion is the best desktop environment under linux...)

    But the only version of Linux, for my experiance, that work with all binaries of LabView without require to recompile anything is the CentOS 4. This is a free distribution based on official code from RedHat without the tool not under GPL... It's fast and light... GNOME based (but yuo can install KDE) and binary compatible with LabView 8.0 (and also 8.5 I believe...). I use it on production environment.

    Osvaldo

  2. QUOTE(malkowki @ Feb 12 2008, 10:26 AM)

    Dear I would like to translate my HW (see picture) into labview code.

    It is in fact a CRC check based on the polynomial x^8+x^2+x+1.

    I need to calculate the CRC 8 bits for a 56 bit word, so my total word to be send via an SPI will be 64 bits long.

    I don't have any C code since I am not familiar with this language, I would like rather a LV solution.

    Is there anybody familiar with the CRC generation via LV?

    Any help will be welcome so I can solve my issue. :(

    thanks in advance dears!

    Regards, ;)

    Hi malkowki,

    The VI in attachment would help to solve your issue... :)

    It calculate the CRC-16 x.25 standard CRC, but you can modify it to calculate any other CRC simply changing the loops and the binary word inside the inner loop.

    The actual binary word (0001000000100001) stands for x^16+x^12+x^5+1... in your case the binary will be 00000111.

    Don't forget to change the dimension from U16 to U8.

    The VI can be used also to verify the CRC.

    Best Regards ;)

    Osvaldo

    • Like 1
  3. Hi to all,

    In recent past I use LabView for Linux for only one project, but I found several problems installing NI drivers due to binary incompatibility... The NI installer script ask for recompile the code but even so the installation abort with errors concerning different version of system library needed...

    I have tried different distributions to solve the problem (SuSE 9.x/10.x, Fedora, Mandriva...) but the only one that was resulted fully compatible was the CentOS distrbution... This is fast, simple and free and so much close to the RedHat to be binary compatible with NI drivers.

    I've used the 4.0 version downloaded from the official site...

    Osvaldo

  4. Oh, gosh! You're right!

    I have not noticed the upgrade! :oops:

    I missed the opportunity to have some code already written! ...

    Well! I exercised a bit with the custom probe! :P

    Regarding waveforms ... I had to do it when I discovered that time-stamps are a sub-type of waveform! :blink:

    The only waveform that the probe does not browse is the Dinamic subtype...

    I do not know how to create one to verify the probe! Suggestions?

    Regards

    Osvaldo

  5. Hi to all you,

    I'm developing an application that use variants and variants atrributes.. and the default labview probe for the variant data type is very ugly... so I started using the probe by tcplomp i find in the CR... Great work! But does not display the attributes of the variant...

    Well, to cut a long story short, I have extended the code from tcplomp to add this functionality.

    The probe in attachment display the data part and all the attributes defined for the variant under test, recursively. If an attribute or a sub data part is a variant, all his attribut will be browsed.

    Also supported time stamps and all type of waveforms.

    Regards!

    Osvaldo

    Download File:post-457-1197990179.zip

  6. QUOTE(mario64 @ Nov 29 2007, 04:05 PM)

    In my block diagram there is a while loop. Inside this while loop there is an other while loop which in turn is controlled by a select case with a boolean.

    When i push the stop of bigger loop i want stop also the internal loop.

    Hi Mario,

    the problem, in my opinion, is that you can't use a local variable with a button set as latch... You have to create a boolean indicator that you set to TRUE when you press the stop button and use the local variable of this indicator to stop the external loop.

    Also you have to set to FALSE the indicator any time you run the program, for example using the "Equal to 0" function connected to the index of the outmost loop.

    Osvaldo

  7. Hello,

    I'm working on a simple datalogger software for an iPaq that use a CF-6004 for acquire external signal.

    What I'm trying to do now is to get the Cf-6004 serial number in order to protect unatorized use of the software.

    I had already used this method on PCs and PCI daq card, but with the PDA module and the DaqMx base I'm not able to get this information!

    Anyone know if it is possible? Any suggestion?

    Thanks in advance!

    Osvaldo

  8. QUOTE(Kalitexnis @ Jul 7 2007, 12:46 AM)

    Hello,

    I am using fedora 7 and labview 7 and when i type the tune2fs command on the console it says command not found.The strange thing is that i found the manual for that command. Can you think any reason why is this happening.

    Many thanks in advance.

    Are you sure you are logged in as "root"? You need to be superuser to use it...

    ---

    Osvaldo

  9. QUOTE(Sherif @ Jun 12 2007, 12:35 PM)

    Hello everybody

    I'm building a radar Screen using LabView 8.0 all i could do till now is to do a green circle with centered needle scanning i need now to add a picture as a Background to this circle in order to have more realistic view.

    I tried to insert a picture using (READ JPEG file.vi) but each time i do run for my project it asks me to specify the location of the pic. and when i specify where nothing shows up and simulation not completed. i don't know where's the problem.

    i need to insert a radar screen Pic. in front of the green circle and make it transperent.

    if anyone could tell me how or do it for me , i'd be greatful

    Here's the file taking Sample Period 0.01 with any RPM (Revolution per minuite) you want.

    Thanks in advance.

    Hi Sherif,

    On my system the JGP file was loaded correctly, but your problem, in my opinion, is in the way you use the load JPG vi...

    In your code, you try to load a new image every time the loop run!! Try to place the load image code outside the loop so it would be executed once at the beginning of the program or insert this code into a case structure that execute only if the interaction counter is 0...

  10. I'm totally new to LabView (and a bit lost...).

    I'm trying to create a simple data acquisition VI.

    I have 8 signals which I want to write to a file. I need a fairly high rate, I have to capture in between 800 and 1000Hz.

    I started from a basic VI that was developed for us and now I have to try to make it work for us.

    My problems are that I would like to display the calculated values on my interface:

    -In my first test (image below) I was placing the display inside the main while loop. The problem with this is that it's trying to refresh the values on the interface way to often (which is not needed), it's slowing down the entire vi and it's not writing to the file at the desired speed.

    DataAquisition1.jpg

    -In my second test (image below), I tried to place the display section in a second parallel while loop which had a Wait set at 1 second. I've also added a Wait set to "0" in the first loop. My problem here is that I don't know how to transfer the value from the 1st while loop to the 2nd. I tried to connect them as shown on the picture but when I run it I can see that the data are stopping on the edge of the 1st while loop.

    DataAquisition2.jpg

    I'm pretty much stuck and I cannot find a way to fix this.

    I've tried looking in the forum but couldn't find an answer... (maybe I missed it...) and I hope I posted it in the right place...

    Any help would be very welcome.

    Hi bigl00z3,

    the problem you have is quite frequently... but the solution you have implemented can not solve it... :P

    LabVIEW is a dataflow language. Any function or loop (like for or while) will execute only when all his input will be avaiable!

    So, the second while loop will execute only when the first will stop and the data contained in the outgoing array will flow to the input tunnel of the second while loop! :nono:

    There are many solution to solve the problem you have... :D The more efficient, IMHO, is to use the producer/consumer design pattern... You can use the LabView Template "Consumer/producer design pattern (Data)" that appear in the "From Template" folder when you select "new..." from the File men

  11. Hello, I'm writing a program to manipulate backups... To save disk space, I wish I use the zip file format to compress files... :P

    So I have tried to use the ZLIB Library from the OpenG package... but... when I drag the ZLIB Extract File on my diagram, Labview show to me the search file message window to find the ZLIB Time Info VI...

    Anyone knows where I can found it? :(

    Thanks!

  12. Hello,

    I am looking for the most efficient way to backup records deleted from a MS Access database to another location.  This is what I have come up with so far:

    1. Copy an empty database to a new location with a new name.  This is the database the data will be backed up to.

    2. Execute a SELECT INTO SQL statement via the ADO connection object to transfer the data from the old database to the back up database.

    3. Delete the transfered data from the old database with a DELETE SQL statement via the ADO connection object.

    Is there a way to programatically create a blank MS Access database so I do not have to maintain a blank database somewhere?  Does anyone have any improvements or another way to do this?

    Thanks!

    4801[/snapback]

    Hi Tim,

    I have the same problem... A friend of mine, experienced C++ programmer, sent to me the attached C++ program that resolve it... This program accept on the command line the name of the empty file .MDB (without extension) to create in the current directory (also accept a full path name). It's very simple...

    Unfortunately, I don't know how to convert it in pure LabView, since I don't know what is the dll which contains the called function!! :(

    This little program run even if you do not have MS Access installed on the machine (tested in Windows XP/2K)... :shifty:

    Download File:post-457-1117614276.zip

×
×
  • Create New...

Important Information

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