Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Gribo

  1. You should check that both the DLL and LV have the same bitness, 32 bits or 64 bits, not mixed. You might be able to bypass the entire problem, if you can create a raw printer file. 1. Create a raw file - usually label printers use a text based encoding (for example, Zebra printers use ZPL, other vendors have similar formats). This will be your template file. 2. If you are using Windows, create a printer share. 3. Set the fields in the template. 4. copy the file to the share - using the system call, issue a copy <filename> \\localhost\<share name> command.
  2. What are you trying to do, print something? Can you post a link to this driver?
  3. I am using EmguCV. You need to convert the mat into a bitmap, and if you are using the .NET PictureBox control, you have to create a graphics object, then use the ToBitmap method of the MAT to draw it.
  4. Do you get a response to IDN query via MAX VISA Test panel? If not, check your hardware. For the VISA write, make sure your string is set to '\' Codes display, and add a \n - line feed, not a literal \n.
  5. Type object is in the System namespace. Click .NET connectivity -> Invoke node -> Select class -> System -> Type -> Missing
  6. Here you go. This is not a production code. You will have to close references when you are done with a specific object. 2 things to note: 1. Excel, like VB is 1 based. 1st index is 1. 2. Don't leave an empty property node input. Wire a 'missing' type to any gray (optional) input that you don't use.
  7. The DAQmx objects depend on the VISA version installed on the PC. Somewhere between 2010 and 2015 there was a change and recompilation was required.
  8. You should use the Excel .NET API. You will see your data as it is added to the spreadsheet. Also, you can do this with OpenOffice/LibreOffice if you don't want to pay for Excel.
  9. Where do you write to the different queues? Does it work with only one PLC?
  10. If you know there are no more bytes in the buffer, then you can ignore that error. That is, if the packet size is fixed, and you are receiving correctly, you don't have to reach the timeout. Also, you can set the timeout to a value less than 10 seconds, if you know that all transactions occur before the time is up.
  11. Shameless plug: Here is another example of WebSockets:
  12. Get one, worst case, your slightly older laptop will get a memory upgrade.
  13. Way too many meters of LMR200 inside a 1U enclosure to be comfortable with. Hey, it works!
  14. The Excel .NET API behaves better with LabVIEW than the ActiveX one. From your point of view, they are the same, so why not use .NET?
  15. Don't mix 32 and 64 bit pieces of software, it will not end well.
  16. At the risk of sounding petty: I am using Windows, so the first thing that comes to mind are the GUI Conventions: LabVIEW Undo is ctrl+z, LabVIEW Redo is ctrl+shift+z, while Window's Redo is ctrl+y. There are many more such (minor) design choices. The application should use the OS conventions, not force its own way. And, as an ambidextrous person, Scissors should be designed for both hands.
  17. I have managed to solve it by replacing the EMGU ImageBox control with the standard .NET PictureBox.
  18. I use the Win32 call to bring the current window to the front. LV's bring to front doesn't always get the desired result. I avoid LV's Modal windows, mainly because other Win32 windows might be on top of them. If I do use a pop-up panel, it will have that Win32 call in the timeout event handler. It is annoying to the user, but its the only way I can be certain the user sees the window.
  19. Hello all, I am using EMGU Wrapper and OpenCV with LabVIEW 2017 and I am getting an odd crash. When ever I resize the VI front panel, LV crashes without any warning or prompt. I use the latest OpenCV (4.1.1) and EMGU libraries. EmguOpenCV test.vi
  20. Here are my ugly hacks: Only one active panel at a time. If user input is required for a dialog, it is on top, all other panels are disabled. In Windows, a system call to bring the window on top is used, instead of LV's bring to front. This gets me somewhat more consistent results than the LV function. If there are two (or more) active panels, the newest one is enabled, the others are disabled.
  21. Also, you use the wrong slash, it should be /
  22. Iperf3 gets ~95% of the theoretical speed of a 1G Ethernet easily and reliably on Windows, without being CPU bound. It requires multiple threads to get there, A single thread will be limited by the scheduler. It doesn't matter much whether it is TCP or UDP.
  23. OpenG has a 'Get parent VI reference' VI, It might help you.
  • Create New...

Important Information

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