01-18-2010 09:17 AM
Hi, I have done the VI, but, when I run it, before setting my Signal Generator, appear a Strange Window: Utility Default Instrument Setup and appeare a Red Break Point (see the Figure) that stop the execution of my VI.
I understand that I must do CLEAR BREAKPOINT, but I don't want to do this every times. I want delete this stop.
I ask:
1) It's an error? It's an error in my program? (see the Figure: number 1)
2) It's a setting of person who had done a VI "Default Instrument setup"?
3) The program run in this way: I click run, after compare a Front Panel (showed in the Figure) and I must click on the bottom indicate with number 2. I want eliminate this step. I want that my instrument is setted automatically.
4) In the Figure (number 3) there is VISA SESSION: the first Number is the address of instrument, but... the second??? I think a number of session, but I have run the program many times, but not always this number increases.
5) It's important for the person see the Visa Session or it's only a local variable that star and finish at the end of run of the VI in which there is?
6)When I put a control in my Front Panel it's appear white. See the figure. Instead the controll appears grey. Why in the VI of Instruments Driver there is a Grey Control? It's seems like a controll and indicator at many time. Why? What is the difference?
01-18-2010 09:24 AM
01-18-2010 09:35 AM
01-18-2010 09:48 AM
Jeff Bohrer absolutely NO. I have done what u wrote, but the problem is other!!! I have cleared breakpoint and i have SAVED. Now Break Point isn't present, but the execution is stopped and compare this window:
I must click on the strange arrow to the left top. And the VI continue. Why?
Maybe the problem is in the sintax: "\n*CLS\n?
Where I must to learn this sintax? So I can use directly the VI of VISA?
My Signal generator is Rohde & Schwarz SMIQ 02B. Can u tell me in which part of manual I can find this command?
01-18-2010 09:48 AM
Jeff Bohrer absolutely NO. I have done what u wrote, but the problem is other!!! I have cleared breakpoint and i have SAVED. Now Break Point isn't present, but the execution is stopped and compare this window:
I must click on the strange arrow to the left top. And the VI continue. Why?
Maybe the problem is in the sintax: "\n*CLS\n?
Where I must to learn this sintax? So I can use directly the VI of VISA?
My Signal generator is Rohde & Schwarz SMIQ 02B. Can u tell me in which part of manual I can find this command?
01-18-2010 10:00 AM
he vanny,
please note: it is *mandatory* to use the SMIQ Initialize.vi for open up a session to your instrument. Otherwise the driver is not initialized in a correct way and can fail or behave in a strange way! Please do not use the VISA open session VI. (The driver is using this VI "inside").
so long juergen
01-18-2010 10:05 AM
You've got the breakpoint cleared and now your only problem is that you have the VI in 'Pause' mode. Click the red pause button (||) and change it to black. Now, when you click on the run button, the VI will execute all of the way through.
*CLS is a IEEE-488.2 common command that clears the event register.
01-18-2010 10:19 AM
juergenstraub i don't understand your message... can u use easy english? Where I fall in error? What is mandatory? I use a VI of Instrument driver of My Signal Generator to initialize it. Can u esplain?
01-18-2010 10:26 AM
Vanny,
Your vi is paused. what version ap LabVIEW are you using?
With LV 6.1 and previous a sub-vi could be set to suspend when a control value was out of range.
With all versions a vi execution properties may be set to "suspend when opened"
Or you may have more breakpoints.youcan search for all breakpoints from the heirarchy window
(and if I recall correctly- LabVIEW 7.0 had a bug "phantom breakpoints" that would not clear a BP that had previously been saved in a library until the library was resaved and LabVIEW restarted)
As for the rest.
>The breakpoint is never a "bug" or an "Error" it is a DEBUG feature that should be turned off after development is complete. The developer missed a step.
>GIPB0:28 9. The 9 tells you that multiple VISA sessions are open to the address. These sessions should be cleared set the option
> Important for the user to see the VISA session...... no but when developing a new project using the driver the developer needs to see it. since drivers are sub.vis the front panels are usually not displayed to the operator.
> why grey control background... The developer missed a style guide point in their effort. It doesn't change how the vi operates.
01-18-2010 10:27 AM
Dennis Knutson can u respond to other question in my first post?
IMPORTANT: Now I can assign to my instrument a frequency and amplitude. But after assignment the program go off. and I can put other value and run the program again. But If I desire that my program is run always so I can change in real time the values... how can do it?