Jump to content

All Activity

This stream auto-updates

  1. Today
  2. codcoder, thank you for your reply! I checked the link and assume you must be talking about PXI Triggers? I opened a DAQmx CO example, and I found these triggers avalible : as for FPGA,I have no idea how to receive signal from PXI_Trig,could you please provide more details about that?
  3. Yesterday
  4. Since FTDI chips are recognized by NI RT Linux out of the box these days, I assume the OS comes packaged with the FTDI chip drivers for Linux. Are there wrapper VI's available for the RTOS for calling the driver library? If not, does anyone know off hand where the external driver library is located so I can set up the Call Library function for it? Thanks in advance.
  5. I'm glad it worked for you! Unfortunately, I haven't attempted to install NI Device Drivers at this point.
  6. Cannot you use one of the PXI trigger signal routing? https://www.ni.com/docs/en-US/bundle/pxie-6672-feature/page/using-pxi-triggers.html
  7. Last week
  8. I have a PXIe-7975R(FlexRIO FPGA with 5732 digitizer)and a PXIe-6341(DAQ) both installed in a PXIe-1073 chassis(you can check in screenshot below) and I want to synchronize there two device. my goal :The DAQ will output some control signal and the FPGA will acquire some other signal and they are synchronized . what I tried: 1. output a digital signal to 5732, however its DIO port somehow dont work,and that force me to input signal using AI port,but there are much much noise 2.this chassis used to run ScanImage( https://docs.scanimage.org/ an program based on MATLAB using DAQmx API),so Im sure the same thing could be realised using LabVIEW,however I couldnt find a way to do so. So ,is there a way to synchronize there two device?Or are there some modules like DAQmx avalible?(examples of 5732 only demonstrates Clock Select and Streaming)
  9. English? NC-link is common in China. I'm sure there are Chinese resources for it.
  10. This actually doesn't work as a general solution (one exception is enough to invalidate the rule, and I just experienced it). However, as stated before, I believe that as long as they don't break the code, LabVIEW's compiler hallucinations can be ignored.
  11. 请问是否有适用于支持NC-LINK协议或数控机床的特定LabVIEW工具包或模块
  12. I would actually suggest to implement it properly by extending the File Dialog Node. A double NULL terminated string array that is simply passed to a Windows API function is hardly a safe and proper LabVIEW datatype! 😁 And of course you saw it already coming, add support for that on Linux too 😁
  13. for what it is worth, we do this... I have a shallow-ish hierachacy somthing like ths: actor <-- device <-- type_of_device <-- concrete_implementation We have some scipting code to help us make a new instance of type_of_device <-- concrete_implementation I have a template with the last two in a .lvlib, and we clone them as needed to two brand new classes. To further complicate, our stuff is in PPLs.
  14. Thanks, but that's what I thought I'd tried and it didn't work for me. My classes are perhaps bit more complex (A is actually a child of some other parent), so I wonder if that's complicating this. Certainly the entire class heirarchy is not in the lvlib. I will give it another go though! 🙂
  15. Hi Richard, I was referring to the Save a Copy on a LVLIB that contains classes A and A1, instead of saving individual classes sequentially. You'd start with Template.lvlib:A.lvclass * Template.lvlib:A1.lvclass, and end up with Clone.lvlib:A.lvclass & Clone.lvlib:A1.lvclass Your new clone lvlib will maintain the linkage within its own namespace. It then becomes a renaming operation for the Clone.lvlib:AX.lvclass to Clone.lvlib:BX.lvclass This only work if your template has all dependent classes in the same lvlib, hence why I called that a "special case". Your solution is more generic. Even when I don't want the classes to end up in the same lvlib, I prefer to extract them after they have been cloned...
  16. Hi Francois - as I mentioned in my second post that didn't work for me. B referenced A1, cross-linking the two libraries, and B1 in the clone was therefore uncalled. Did I do it wrong maybe? I used the Save A Copy method on the library to achieve the clone. Do you have an alternative approach?
  17. In the special case where your A and A1 classes are in the same lvlib, you can simply clone the whole lvlib to have linkage preserved and rename to B and B1.
  18. Hello everyone, I'm trying to create an executable that uses gRPC library. The project works well from development environment but I get an error 7 when running compiled code: Error 7 occurred at Call Library Function Node in grpc-lvsupport-release.lvlib:Create Client.vi:560002->Voluson_client.lvlib:Create Client.vi:560001->gRPCFunctionCall.vi->Sequence Editor 1.vi LabVIEW: (Hex 0x7) File not found. The file might be in a different location or deleted. Use the command prompt or the file explorer to verify that the path is correct. I tracked it down to "GetServerDLL.vi", which, by default, e.g. when not in run-time, runs the following code: and returns path "C:\Program Files\National Instruments\LabVIEW 2023\vi.lib\gRPC\LabVIEW gRPC Library\Libraries\Win64\labview_grpc_server.dll", which is where the "Libraries" folder is located. At run time, it executes this: which, of course returns location of the exe+Libraries\Win64... I'm not clear on the intention of this or what steps should I take to make it work? Do I need to copy the whole "Libraries" to the same location as the executable manually and then add it to build specs for installer? Thank you for reading. AL
  19. The multiple patterns nugget was broken in LabVIEW 2023 Q1, but it works in LabVIEW 2023 Q3 and later.
  20. Not really. And this is a very clear case of using an undocumented and unintended side effect of the implementation. It only worked on Windows and not any other platform and only because the person who implemented the file dialog functionality took a shortcut by passing the LabVIEW string directly to the Windows API without trying to sanitize it. Microsoft discourages the use of the GetOpenFileName and GetSaveName APIs which originate from Windows 3.0 times starting with Windows Vista, and recommends to use the Common Item Dialog instead. My guess is that someone did recently listen to that recommendation and changed the file dialog implementation accordingly. Making sure it works the same way as documented for the old function is already hard enough, trying to also implement undocumented functionality and potential security bugs which this API had, is a bit to much asked.
  21. LabVIEW's motto: Move slowly and break things!
  22. Well, so far I have one ugly workaround - clone A as B and A1 as B1 into a new folder. Programmatically create a New Project, add B and A1 (its natural dependency), find A1 and call method "Replace Item With" using path to B1, set to "Save All without Prompts", then close the Project without ever saving it. This updates B to use B1, and seems to be the only way to get the "Replace Item With" method to work. Takes about 8 seconds though. I originally tried putting A and A1 into a library and cloning the library, but this didn't prevent the issue, and it also blocked access to "Replace Item With".
  23. If your Unico Drive is acting as a DC Battery Cycler.... DMC has a set of LabVIEW tools just for you! https://www.dmcinfo.com/latest-thinking/case-studies/view/id/655/software-toolkit-for-the-unico-ev-battery-cycler www.dmcinfo.com
  24. I have two classes (A and A1), and A1 is present on the block diagram of VIs within A.lvclass. I want to clone this precisely, so that I have two new classes B and B1, with B1 appearing in the VIs of B. I don't want B using A1. When I use the LVClassLibrary.Save A Copy method on A and A1 to create B and B1, I predictably get B using A1, and a lonely B1 with no callers. How can I either avoid this, or fix this? I don't see a way to "replace all calls to A1 with B1" or "Replace A1.lvclass with B1.lvclass" in B. I briefly looked at the method LVClassLibrary.Replace Item With but I don't see how I can use it when A1 doesn't appear in B's "library view" Note that B and B1 will later go on to be modified, so A and A1 are kinda like source templates. Ultimately there will be C and D and E, each customised slightly, but based on A.
  25. They have fixed a bug, is my guess. Concatenating by using null char is a huge security smell. Multiple file types are [supposed to be] defined by using the semicolon separator. Does "*csv;*txt" not work?
  26. I've enjoyed this hack for many years, but noticed it is not working in LV2023Q1. See here for problem description: https://forums.ni.com/t5/LabVIEW/Darren-s-Weekly-Nugget-05-10-2010/m-p/4360614/highlight/true#M1280554
  1. Load more activity
×
×
  • Create New...

Important Information

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