Jump to content

Thang Nguyen

  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Thang Nguyen

  1. I am maintaining the code of two controllers (cRIO and CVS) in a system. Each of them handle request from ethernet communication like a server with input is string data type. And each of them handle hundreds of message like that. In the future the number of commands can be increased. Now the fun part is we decide to merge these two controllers into one. I am trying to find the best way to merge these two case structures together and how to handle this better. I am thinking about rewriting this using inherited child class to catch each command. But as I know this only work if I use the child on the client side too. In the future if I need to developer the client by different language such as Python, I am not sure how to send the command to match with side of server.
  2. Find out the feature/function you need on your project then search with that specific keyword. Look in Find Examples to see how that is implemented. There are many videos on Youtube nowadays too. Go back here ask with more specific questions
  3. LabVIEW Professional: $2,771.00 /year Vision Development Module: $2,021.00 /year This is pricey!
  4. @Antoine Chalons I am at the phase making decision on specific hardware and OS to run with so I am need to clear up on some information. After doing more research about Windows IOT, specifically Windows IOT Enterprise and Windows Enterprise, I wonder if you choose to use the Windows IOT Enterprise because it comes pre-install on the controller you want to work with? Or because it has some specific features which make you choose to use it?
  5. @Antoine Chalons Thank you very much! Your information is very value to me.
  6. @Antoine Chalons Can I run LabVIEW on Windows Iot? Do you know any limitation? May I ask why do you switch to NI controller since you said you used to use Advantech IPC?
  7. Thanks @Tim_S for the lifecycle page Thanks @Antoine Chalons and @Jordan Kuehn for sharing expert knowledge about vision controller. @Antoine Chalons May I ask if Advantech IPC with Win 10 iot is a good option? Currently, we use only one camera for processing but we plan to update to dual cameras very soon. Can I use LabVIEW with Win 10 iot?
  8. Our company used NI RT controller CVS-1459 RT. Without any information, they discontinued this controller and suggest us about IC-3121. And we just found out it will discontinue the end of this year. All of this happen in one year. I contacted NI for replacement product and they suggest IC-3120 which has 2 ethernet ports instead of 2 USB 3.0 which we use to connect our cameras. NI engineer then suggest IC-3171 which is $1,700 higher than IC-3121 which is $3,000. What I am worry is we don't have any information ahead. I work with LabVIEW for 15 years. I used to have connection with NI sell representative. Now I don't have any information about the product timeline at all. I contacted with NI sale and they are now Newark company and they cannot answer me about controller replacement. What should I do in this case? Is there any person in NI should I contact with?
  9. I contacted NI support and they confirm that CVS/cRIO will not be able to connect with myRIO.
  10. Hi, Our current instrument is using CVS-1459. We have a laser device in the instrument. Normally the laser has a separated controller which let us controlled by using serial port or TCP/IP. We are trying a new laser device which only allow to control through DB25 with analog I/O and digital I/O. I figured that I can use a cheap controller as myRIO since my CVS does not support DAQmx to connect with a DAQ device. Now I have no idea how to connect CVS-1459 with myRIO. myRIO uses USB to Ethernet cable. I configure the Ethernet Adapter usb0 on the CVS to the same IP subnet with myRIO but I still cannot ping it. What is the other option I can use for my connection between CVS and myRIO or option to control the laser? Thank you in advance!
  11. Hi, Previously, I posted this question in wrong place. I moved it here. My team is trying to track down a memory leak issue with NI CSV (Compact Vision System). If the RT device run for 4 days it will have "Not enough memory" issue, but we still see available memory. We also limit the obtain reference. I would like to know if there is any property I can use to track down the allocated memory as well as release memory so I can track down on this memory issue. Thanks in advance!
  12. David, Currently, we already have that simple loop which can run with 10msec per image or 100 FPS. We are looking for option to upgrade to 150 FPS. The camera can up to this speed but the bottle neck is the compression step. That why I would like to do the compress at the end of each step. With your experience, do you think if I save each images separately into files will be faster than write into database? I can read, compress and write to SQLite database at the end of the test. Thank you very much!
  13. I would like to provide more information regarding my data: The image array size is 300,000 pixel * 8 One test has about 5528 images + particle measurement array in each them. Read Temp Table Time: 12.810000 sec Compress Image Time: 54.924000 sec Write Actual Table Time: 1.619000 sec (not sure why it is very fast here) Drop Temp Table Time: 265.688000 sec Originally, I have another index table which is foreign key reference to the image table. I also have to create temp table to reference to temp image table. The time above is for image table and index table with it.
  14. The reason I have these images save to a database is that at the end of the test, I need to collect this file as test data for post analyzing. I am thinking about your suggestion that temporary save the original images then compress them and save to database at the end but also the cost to save these images to file and read it back later. I hope to improve the speed from 100FPS to 150FPS or more. With your experience, do you think I can achieve the speed? The software is run on NI Compact Vision Controller (CVS).
  15. Currently, my vision software will do a compression (subtract to background image then count zero) and write to a table in SQLite file. Since we want to speed up the process, I write entire image in a temporary table. Then at the end, I read the table, do compression and write to the actual table, then drop the temporary table. This takes a lot of time too even I use the Journal mode = memory. I think the issue is I put the process code in 4 separated modules: Select the temp table -> output array Compress the output array of step 1 Insert the compress data from step 2 to actual table Drop the temp table I am looking for an option to mix these steps together to speed up the speed for example select and delete the row in temp table at the same time then at the end I can drop the table faster. Currently, it takes significant time to drop the table. Our raw data can be up to 3GB. But I don't know how to combine the query. I also read that SQlite does not support this. So I also looking for an advice on how to make this process more efficient. I thought about using the queue too but I need input before I change it. Thank you in advance.
  16. @Rolf You are correct about header. I added a header I can find on NI forum as below and it works. Thank you for your input
  17. Hi everyone, I am start working on a project require to communicate with a web service (written by another team). I have to use POST HTTP function to request access token with provide username, password and tenant name in JSON format. I use Flatten to JSON to convert a cluster to JSON string for buffer. I have connect URL as it suppose to be. I event use string constant to pass in the JSON directly, but when I ran, it returned header: HTTP/1.1 401 UNAUTHORIZED Date: Tue, 15 Dec 2020 04:05:22 GMT Content-Type: application/json Content-Length: 44 Connection: keep-alive Access-Control-Allow-Origin: * Server: Werkzeug/0.14.1 Python/3.7.2 body: {"message":"Error in Database connnection"} The another team told me to test with Postman and it run fine with the same input URL and JSON data. It returns the correct access token. I am not sure what the different between my labVIEW code and the Postman structure. I don't have much experience with HTTP and Web service through so I ask for your inputs. Thank you very much in advance.
  18. @JKHS. Thank again. Our lab does not use LIMS. My task is find out how to integrate our instrument test data to customer LIMS. As you describe, I will need to look for technical manual of our customer LIMS software.
  19. @JKSH: Sorry for late reply. My software controls an instrument in the lab to run cell analyst. One experiment session is start with pressurize the cell through a channel and using machine vision to analyze image captured of the channel. The experiment data is captured in database include of hardware data like pressure, voltage. In some lab they use LIMS to manage the workflow. I still not sure how should I integrate my test data into LIMS. Thanks for your information.
  20. Hi, I was asked by my supervisor about LIMS compatibility of our software. I did some research including search on LAVA still cannot get much information about technical side of LIMS. somehow I only know that it uses the OPC protocol but beside that I don't have any more information. Could you please share with me some information about LIMS and how do we communicate with LIMS from LabVIEW side. I worked with OPC server before. Thank you in advance.
  21. @Neil: Yes, this is what I need. Thank you very much.
  • Create New...

Important Information

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