Jump to content

Thang Nguyen

Members
  • Posts

    277
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Thang Nguyen

  1. Hi,

    I am working on writing the frequency pulse signal using digital output with correlated clock in CompactDAQ device. I found some examples about this already, But there is onething I don't understand is before start writing the signal out continuously, I have to define a pattern for my signal by writing an array of data to the DAQmx write. I don't understand about this. How to define the frequency and how to define the duty cycle? Could you please help me?

    Best regards,

    Thang Nguyen

  2. I did go one step further by put the Simulator.exe run on another computer in the network. I call this PC B. And from my computer, PC A, I try to access to the Simulator.exe on PC B. But I get this error:

    Error 66 occurred at Open Application Reference in Get Control refs in exe.vi

    Possible reason(s):

    LabVIEW: The network connection was closed by the peer. If you are using the Open VI Reference function on a remote VI Server connection, verify that the machine is allowed access by selecting Tools>>Options>>VI Server:Machine Access on the server side.

    =================

    On PC A:

    I changed the localhost string input in the open application vi by the domain name of the PC B.

    On PC B:

    What I have done so far is on PC B, I do these settings:

    VI Server: Configuration

    + Check TCP/IP

    + Port: 3364

    VI Server: Machine Access

    + Add my computer domain to the Machine access list. I also add * to this list.

    VI Server: User Access

    + Leave blank. I expect this will allow the PC list in the machine access list to be able to access

    VI Server: Exported VIs

    + Add the name of the vi: Simulator.vi. I also add * to the list.

    Do you have any idea if I miss anything?

    Best regards,

    Thang Nguyen

  3. Thank,

    I am sorry I cannot open your vi because I only have 8.6.1. Could you please save it down to one version for me? Thank you for that.

    I am trying to work with a simple example.

    I have a Sim project which includes Simulator.vi which is built become Simulator.exe. I have another Test project which includes Test.vi. I would like from Test.vi be able access to the controls on the front panel of the Simulator.exe. I attach here what I have done so far. Please rebuild the Sim source first.

    I got an error message with my current Test.vi:

    Error 7 occurred at Open VI Reference in Test.vi

    Possible reason(s):

    LabVIEW: File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux. Verify that the path is correct using the command prompt or file explorer.

    =========================

    NI-488: Nonexistent GPIB interface.

    VI Path: C:\My Projects\My New Projects\AutomatedTest\Sim Build\Simulator.exe\Simulator.vi

    Sim Source.zip

    Test Source.zip

  4. Hi,

    I tried search many place but I still cannot find an answer for how to get the reference to a control on front panel of the LabVIEW executable file? This is installation distribution application written by LabVIEW. I am trying to use VI server to access this but the only thing I can find is access to the VI. Is there anyway I can do this?

    Best regards,

    Thang Nguyen

  5. Thank you so much,

    I have question:

    Open VI Reference is the Top Level VI "EUIOHost.vi" with which I want to interact.

    What happens if all my simulators are installation version, which are .exe files?

    Or should I copy the source files to the install folder???

  6. Hi everyone,

    I am working on a project which require communication between TestStand and multiple LabVIEW executable programs. This project is used for testing the operating of a system which involved different type of controller which is simulated by independent software-in-the-loop or hardware-in-the-loop LabVIEW programs. So far we discussed that the TestStand will be run on a PC which communicated with other PCs which run seperated simulator by ethernet. Each of this simulator are distribution version which is installed as executable on each system, it's not in the developement evironment. I am trying to figure out how to from TestStand I can access and change value of the controls on the GUI of each simulator the set the value as well as read the value as feedback. For this requirement I think about using VI server solution which is get the reference of the controls on the simulator.

    After doing some experience examples, I found some issues

    I post here my first question:

    I tried with some examples in articles on NI web site.

    This is one example:

    Controlling Two Executables with the VI Server

    http://zone.ni.com/devzone/cda/epd/p/id/1366

    In the example the Master .vi try to get the reference from the Slave.vi which stored in the same location with the exe file. This is inrealistic with the distribution version where the installation files are not located in the same location with source files.

    I still cannot find an example which point directly to an executable file, not the vi file and get the reference to the controls on the panel. If you know any information about this, please let me know.

    Best regards,

    Thang Nguyen

    post-7703-125373116534_thumb.jpg

  7. You should break your topic to more detail. If you want to make a automated vehicle like that then you should ask the question how to drive the motor or what the hardware you should use to build this vehilce. LabVIEW is a programming language which help to communicate with hardware device.

    You should provide more information other than give a website and ask everyone read it.

  8. Thanks you for your example Crossrulz.

    I am a LabVIEW developer and a newbie with TestStand, so I would like to ask some question about the way we use the VI in the TestStand.

    In the first sequences Monitor, the Monitor.vi is called. There is one input which is "Sequence Context in". I cannot find the value for this number and as I understand it's a reference number. I don't know how this value is initialized?

    In the action "Send TERM Monitor CMD", you call the Monitor Queue.vi to send command to the Monitor.vi. One thing I don't understand is there is no queue reference or name queue is used here. How this queue can link to the queue runs inside the Monitor.vi.

    Because I only know LabVIEW so I think the way LabVIEW does. Please help me understand this.

    Thank you,

    Thang Nguyen

  9. Hi,

    I am working on a simulator project.

    I my project I need to simulate a high level sensor. The controller, I work with, has a 5 VDC output, named A. It connects to 4 parallel 10 K Ohm resisters R1, R2, R3, R4. There are 3 switches connect with R2, R3, R4 and this will be correspondent to low, mid, and high level. Another side of these resisters will be connect to ground. Depending on the switch status, the voltage will be drop at the port A. This is how real system works.

    I use compactDAQ series C 9172 for my simulator. I tried by using a Analog Output and feeding a voltage output to port A. It doesn't work stable with this solution.

    I would like to know if there is any hardware which I can change the resister programmatically? I thought about using a digital output to control a relay to open or close switch. That means I have to buy another 16 DO module which will cost $320 more. I would like to know if there is a better solution for this.

    I would highly appreciate your help.

    Best regards,

    Thang Nguyen

  10. Hi,

    The our test engineers can also interact with control based on the coordinator of the controls as Jeff say. But if we move the GUI, everything will be chance, so if I run the test on different day, this will be inconvinient.

    I finally find this topic at ni after reading about the link given by Dan:

    Calling LabVIEW VIs from Other Programming Languages

    http://zone.ni.com/devzone/cda/tut/p/id/5719

    Thank you for all your information

    Best regards,

    Thang Nguyen

  11. Hi,

    I would like to know if there is any way to access the controls on the GUI of application made by LabVIEW from other programming languages? I am working on building the applications for my company. Now other engineers from testing department asked me if there is anyway they can do some scripting which can access to the control on my applications. They use Quick Test Pro or some test tool like that. Usually this will be done with applications written by other programming languages or using TestStand. But our company doesn't have TestStand. So if you have any experience about this case, please give me some recommendation.

    I appreciate your time for reading and answering my question.

    Best regards,

    Thang Nguyen

  12. QUOTE (Mark Yedinak @ Apr 1 2009, 04:17 PM)

    Are the server and client running on the same machine? Do you have access to a network sniffer like Wireshark to look at the network traffic? Also, 100 ms can be a bit short in terms of network timeouts depending on your network topology. In addition, your wait on listener will only wait for 100 ms and then stop listening. You should have your server (the listener) be always waiting for connections and service connection as they come in. How large is the data that you will be sending? If you are sending large amounts of data you will not be able to send it all in a single packet and depending on what else is happening on the PC it could delay the transmission of the entire data set with the 100 ms window that you have established. Though you are timing out on the intial two bytes of data. Would it be possible for you to post your code?

    Thank Mark,

    I change to use share variable already. This is more efficient in my case.

×
×
  • Create New...

Important Information

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