Jump to content

Bjarne Joergensen

Members
  • Content Count

    116
  • Joined

  • Last visited

Community Reputation

2

About Bjarne Joergensen

  • Rank
    Very Active
  • Birthday 07/01/1961

Profile Information

  • Gender
    Not Telling

LabVIEW Information

  • Version
    LabVIEW 8.2
  • Since
    1997

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Please don't misunderstand me ? My intention was to remind my developer group to remember the prefix on the file names and make them sure they don't want the prefix if they try to save without!
  2. HI When saving a new VI LabVIEW default name it "Untitled#x.vi". Is is possible to change that to something else like "TSVWS - #x.vi" An maybe also popup a warning if you try to rename i without "TSVWS - " as prefix. regards Bjarne
  3. Hi ShaunR - polynomium 0x755b - initial_crc 0xffff - reversering af 8-bit input data - reversering af 16-bit output crc
  4. Hi I have done that and can't find any CRC calculator that give the same result I got these data: 0x00, 0x01, 0x02, 0x80, 0xe2, 0x45, 0x00, 0x00, 0x00, 0x00, 0x07, 0xdf, 0x33, 0x00, 0x00, 0x00, 0x0f, 0xeb, 0x02, 0x80, 0xe2, 0x45, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 and expect this CRC16: 0xcd58 regards Bjarne
  5. Hi I have this code in C(and I don't understand it ) Is there someone that can help me translate it to labview? Thanks in advance. Bjarne typedef uint16_t (*bit_order_16)(uint16_t); typedef uint8_t (*bit_order_8)(uint8_t); uint16_t straight_16(uint16_t value) { return value; } uint16_t reverse_16(uint16_t value) { uint16_t reversed = 0; for (int i = 0; i < 16; ++i) { reversed <<= 1; reversed |= value & 0x1; value >>= 1; } return reversed; } uint8_t straight_8(uint8_t value) { return value; } uint8_t reverse_8(uint8_t value) { uint8_t reversed = 0; for (int i = 0; i < 8; ++i) { reversed <<= 1; reversed |= value & 0x1; value >>= 1; } return reversed; } uint16_t crc16(uint8_t const *message, int nBytes, bit_order_8 data_order, bit_order_16 remainder_order, uint16_t remainder, uint16_t polynomial) { for (int byte = 0; byte < nBytes; ++byte) { remainder ^= (data_order(message[byte]) << 8); for (uint8_t bit = 8; bit > 0; --bit) { if (remainder & 0x8000) { remainder = (remainder << 1) ^ polynomial; } else { remainder = (remainder << 1); } } } return remainder_order(remainder); } uint16_t crc16ss(uint8_t const *message, int nBytes, uint16_t initial, uint16_t poly) { return crc16(message, nBytes, straight_8, straight_16, initial, poly); } uint16_t crc16rr(uint8_t const *message, int nBytes, uint16_t initial, uint16_t poly) { return crc16(message, nBytes, reverse_8, reverse_16, initial, poly); } uint16_t crc16rs(uint8_t const *message, int nBytes, uint16_t initial, uint16_t poly) { return crc16(message, nBytes, reverse_8, straight_16, initial, poly); }
  6. Thanks hooovahh I'v done it with Labview Server this way I have to dive in the static VI references and Start Asynchronous calls because I also use LV2013 /Bjarne PS: How does a "wholly crap cake" look like
  7. Hi I have a challenge on a test system. I have a PCB where there is an IC to be uploaded with the code. It takes ~5 min. per. PCB. To follow takt time it must be possible to program up to 5 at a time. It should be done in the way that the operator can start a PCB independent of the other PCBs are startet! Programming is startet and monitored as follows. 1. The operator sets an SD card in the PCB and press start. 2. The test opens a serial port to the board and turn on the power to the board 3. PCB runs the programming process itself and sends information via the serial port. 4. The test system monitors data from the PCB and act in relation to output. 5. When the test monitor that programming is complete, it switch off the power and serial port. I have made some handling of startup etc. but are unsure of how parallelism must be inplemented. I have thought that it must be with VI server so I start a VI for each UUT running process in the background, but is there also a possibility with LVOOP? By the way. it has to be programmed in LV8.2.1 Thanks in advance Bjarne
  8. Don't you hook it up to a device? /Bjarne
  9. Yes, I found it. I did'nt see the / as a directory I will talk to some of my college with C++ experience thanks Bjarne
  10. With some fooling around and started to add the image to the SDCard, but it is so slow compared to win32diskimager. Maybe I need to add some parameters. I used this : dd. if=C:\sd_2gb.img of=/dev/sdb count=1M Rolf, where do you find the file "src/disk.c"? I can't find it in the installation of win32diskimager /Bjarne
  11. Hi In our automated testsystem, I need to write a .img file to a SD-Card with Labview. Has anyone tried that and could recomend a solution? I have tried to mingle with Cygwin and dd, but I can't get it to work. thanks in advance Bjarne
  12. Hi rolfk Thank you. I don't think I understand it all, but what I need is the UTC time in ticks and I can get that from .net. I don't need the timestamp format, although it would be nice and easy to read:-). I have made a .net dll and call it in labview and getting what I want. regards Bjarne
  13. Hi I need the UTC time and convert it to tics. I use this code(LV2012/DotNet 2.0): Why is the Now time(local) the same as UTCtime. There should be a difference of 2 hours! I made a program in C# and it is showing the right time (2 hours between Local and UTC) regards Bjarne
×
×
  • Create New...

Important Information

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