LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI for graph on Agilent 4195A

Is there anywhere where i can get the VI for graph for Agilent 4195A on Kabview 7.0? As it canot be located on any examples given in Labview and also the folder of 4195A.
 
And what causes command syntax error?
 
Thank You.
0 Kudos
Message 1 of 12
(3,508 Views)
You're going to have to explain a little more on what you want. The driver includes a VI called 'Example' and it displays the trace on a graph.
0 Kudos
Message 2 of 12
(3,494 Views)
i've attached the code that we have and it occur that there is command syntax error and i am quite unsure of what that means and also, i used a VI from 4194A for the graph but the result that i have got from the agilent 4195A is that undefine symbol.
0 Kudos
Message 3 of 12
(3,490 Views)

Command syntax error simply means that the instrument detected a syntax error in one of the commands you sent. I would suggest that you first debug all of the commands in MAX. Just right click on it and select 'communicate with instrument'. Send each command and follow that with the error query. You've got spaces in the START and STOP commands that don't look quite right but I don't have the manual to confirm. When you debug the LabVIEW program, you can turn on NI-Spy and get a list of the commands that are actually sent.

You just can't mix and match functions from one driver to use with a different instrument. Did you verify in the manual that the commands in the 4194 functions are even supported by the 4195?

0 Kudos
Message 4 of 12
(3,480 Views)
There is no error to the programme before i add in the function and graph. the programme to select the different mode causes the syntax error and i believe the graph is the cause of the undefined symbol. i know we canot mix and match vi from different agilent. by any chance, do you have the suitable vi that we can use for this code?
0 Kudos
Message 5 of 12
(3,478 Views)
The 'graph' cannot cause any error but the code you are using to create the graph can. I don't have the manual for the 4195. I would presume that you do so you should be able to find the commands in there to read whatever data the instrument has. What is the problem with the function that returns the trace data in the 4195 driver? If you are looking for a different function, perhaps you could be a bit more explicit in what you are trying to read from the instrument.
0 Kudos
Message 6 of 12
(3,474 Views)
below attach my original programme. it was after adding in the function table, the command syntax error appeared. so you mean i can actually find the vi that i can use for my graph in the manual of 4195A?
0 Kudos
Message 7 of 12
(3,472 Views)
There are no VIs in the manual. What you can find there are the commands necessary to create your own VI just like you already did. In the working example, you are reading the A, B, and X registers. Are there different registers you want to read? You still haven't really explained exactly what data you want to get from the instrument. I had a quick look at the 4194A Register Values function and it appears it is similar to what you are already doing with the read of the A, B, and X registers.
0 Kudos
Message 8 of 12
(3,465 Views)
The programme that i am doing is suppose to be able to control the agilent. It must be able to choose the different modes (spectrum, impedance, network), and control the start and stop frequency and also to control the resolution bandwidth. and lastly to put a graph into the whole programme to read the results.
0 Kudos
Message 9 of 12
(3,466 Views)

PUT A GRAPH OF WHAT?!!!

All you keep saying is that you want a graph. I don't know WHAT you are trying to graph. There is a lot a lot of data that can be read from the instrument. You have yet to explain that. I've asked whether it's the trace data or whether it's the register data. You have yet to answer with anything specific. Maybe you should take some time to think about it.

0 Kudos
Message 10 of 12
(3,461 Views)