Jump to content

Gribo

Members
  • Content Count

    140
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Gribo

  1. You know that these glyphs are in the C:\users\<username>\Labview Data\Glyphs folder as .png files, right?
  2. Take into account that MXI has its own set of limitations. You cannot hot-plug an MXI connection reliably, It is a single source (NI only, AFAIK).
  3. You might want to consider MXI (Either optical or copper) as an alternative. It avoids another layer of drivers. Desktop PCs with Thunderbolt exist, (Mac pro, other high end workstations from Dell or HP).
  4. What is the difference between these two methods? If a .NET library is included in a project, does LV load it before the VI is run?
  5. 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.
  6. What are you trying to do, print something? Can you post a link to this driver?
  7. 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.
  8. 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.
  9. Type object is in the System namespace. Click .NET connectivity -> Invoke node -> Select class -> System -> Type -> Missing
  10. 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.
  11. 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.
  12. 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.
  13. Where do you write to the different queues? Does it work with only one PLC?
  14. 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.
  15. Shameless plug: Here is another example of WebSockets:
  16. Get one, worst case, your slightly older laptop will get a memory upgrade.
  17. Way too many meters of LMR200 inside a 1U enclosure to be comfortable with. Hey, it works!
  18. 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?
  19. Don't mix 32 and 64 bit pieces of software, it will not end well.
  20. 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.
  21. I have managed to solve it by replacing the EMGU ImageBox control with the standard .NET PictureBox.
  22. 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.
  23. 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
  24. 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.
  25. Also, you use the wrong slash, it should be /
×
×
  • Create New...

Important Information

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