Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Code for FAST 2

The only problem here is with Termination char and also the EC giving error always.

May i also know why there is TO at Max??

 

Pls help me to fix the Term Char issue,i am struck here for quite a long period.I tried all possible combo from ni webpage.I have to create a GUI,i can proceed further only after this.

0 Kudos
Message 81 of 91
(1,790 Views)
Please attach the I/O Trace you did with the correct initialize function.

The trace from the basic example shows that the instrument responds with a new line terminator and the response is terminated with a carriage return. That is why you get the timeout in MAX. It is waiting for a new line. You can set different termination for reads and writes. I have no idea why the vendor would program their instrument that way.
0 Kudos
Message 82 of 91
(1,761 Views)

PLs find the Trace attached along with the initialize snap.

Download All
0 Kudos
Message 83 of 91
(1,735 Views)

PLs Ignore previous post.

 

Kindly consider this.

 

Is the Term the reason for the EC's error msg??

Download All
0 Kudos
Message 84 of 91
(1,727 Views)
I'm stumped. I don't know what is wrong with the code. It still will not automatically append the termination character. You might just have to go into each VI and manually append it. Sorry.
0 Kudos
Message 85 of 91
(1,666 Views)

Thanks!!!

 

But i have already tried appending manually,it did not solve it.

 

I tried giving juzst the command and command with TErm Char.Both failed.

0 Kudos
Message 86 of 91
(1,651 Views)
It will work just like the basic serial example you used. Right click on the string control and select '\' Codes Display.
0 Kudos
Message 87 of 91
(1,638 Views)

Yes,i did enable that.Even then,it fails.

PFA

I tried giving \n,\r at the end of command.But failed.

0 Kudos
Message 88 of 91
(1,629 Views)
How many different initialize functions do you have floating around? This is very different than the last one you posted and the image does not show the term character. Change the display of the constant so that everyone knows that \ codes is actually on.
0 Kudos
Message 89 of 91
(1,624 Views)

This is from 34401,which u suggested.I will take this as my final Initilise vi.

 

I have already enabled it and it fails.

 

Sorry if it sound silly for you but i am just concerned about the result.I am trying diff possibilities,only when nothing works,i post here.

0 Kudos
Message 90 of 91
(1,620 Views)