Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

How to communicate my application trough TCP/IP to a Signal Generator

ok, thanks

 

 second question, nerver mind , thanks again

LabVIEW Intermediate I level!
0 Kudos
Message 11 of 29
(4,335 Views)

Hello Dennis,

 

Just one small thing I did not mention before, the development computer is different from the target one. In other words, the one where I am modifying the code will not be the one with the executable. Therefore, when I am adding a new device to MAX I cannot test if the communication or commands are being sent. 

 

And I cannot install LabVIEW on the target computer, the only thing I am installing there is the executable Software, and that executable must be able to send the commands to the Signal Generator. Therefore, I was using the example from NI in regards to the communication between TCP client and TCP server in order to communicate from the target computer to the IP address from the Signal Generator. 

 

Please let me know if I am on the right track for this, thanks 

LabVIEW Intermediate I level!
0 Kudos
Message 12 of 29
(4,323 Views)
I don't understand what you want to do now. It does not matter if you install LabVIEW or not on the pc that is connected to the instrument. You can install NI-VISA run-time, MAX, and the hardware configuration from the development pc.
0 Kudos
Message 13 of 29
(4,320 Views)

that is the issue, I only want to install the stand alone application in the pc that is connected to the Signal Generator, nothing else.I know that the installer can contain the NI VISA runtime engine, but what about the others. 

 

Will it be difficult to ask for an example from you in order to see how is it that you are telling me, because I get confused on what needs to be included in my code so that the PC can send commands to the SG. 

 

 

LabVIEW Intermediate I level!
0 Kudos
Message 14 of 29
(4,317 Views)

Yes, the installer can include the app, the LabVIEW run-time, the NI-VISA run-time, MAX, and the hardware config from the development pc. All of these except hardware config are selectable from Additional Installers. To include hardware config, go to the hardware configuration category where you can select to include it and also create it by clicking the 'Configure' button.

0 Kudos
Message 15 of 29
(4,315 Views)

Thanks Dennis,

 

On my code I am sending a command to set up the frequency to the SG. Should it be enough  just to include the AGILENT PSG MX VIs or should I also include the function command VI and the TCPIP that I have in my code?

 

thanks

LabVIEW Intermediate I level!
0 Kudos
Message 16 of 29
(4,312 Views)

Include what where? I thought you were building an exe? Whatever VIs that you have would be included in the exe.

0 Kudos
Message 17 of 29
(4,308 Views)

Also how can I be sure that my code is sending the frequency to the SG? do I need to create the installer and then test it on the target PC or can I simulate it here before?

 

THanks

LabVIEW Intermediate I level!
0 Kudos
Message 18 of 29
(4,306 Views)

did you took a look at my code?

 

I mean include them on my code

LabVIEW Intermediate I level!
0 Kudos
Message 19 of 29
(4,302 Views)

I have no idea what the relevance of that TCP code is. If you plan on using the VISA driver, that is all that you need. If you don't want ot use the VISA driver, that would be up to you and you can write the code from scratch.

 

Are you saying you don't have access to the instrument at all? If so, I don't know of any thing you could do to simulate it. If you had used the driver in the first place, you would probably have few problems in moving to an ethernet connection.

0 Kudos
Message 20 of 29
(4,295 Views)