From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

novalue wurde ein unzulässiger Feldindex erkannt.

Solved!
Go to solution

Hallo zusammen,

 

hier ist ein Fehler, wenn ich in Script ausgeführt habe.

 

If

Pausendauer > 10Then

i6=i5

'------------------------------------------- Berechnung für Delay

Pausendauerround =

round(Pausendauer,0)

Pausendauer = Pausendauer*

12'10% von Pause * 120 (für minute, da zwei werte pro sekunde))

Delay = i5+ Pausendauer

For i6 = i5 toDelay

NO_VALUE=NoVALUE

neuer_wert = NO_VALUE

CHD(i6,Kanalname3)= neuer_wert

Next

 

dieser rote Satz ist die Quelle des fehlers.

 

Vielen Danke für Ihre Hilfe

 

0 Kudos
Message 1 of 6
(4,899 Views)

Hallo andreas,

 

Das Problem liegt nicht an dem neuer_wert, sondern es liegt an dem i6 Wert, welcher zu gross ist fuer die Laenge des KanalName3s.  Mit dem Befehl ChnLength(Kanalname3) = i6 koennen Sie sicher stellen, dass der Kanal lang genug ist.

 

CHD(i6,Kanalname3)= neuer_wert

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 6
(4,886 Views)

Vielen Dank für Ihre Antwort. Ich habe noch eine Frage. Gibt es die Möglichkeit, die ich alle maxmale werten von 100 TDM Datei nach einer Excel im Script automatisch exportieren kann? Ich habe in Hilfe gesucht, aber nicht geklappt.

 

Gruß Andreas

0 Kudos
Message 3 of 6
(4,881 Views)

Hi andreas,

 

OK, this is the third instance of this post.  As I said in one of your other posts, I am willing to help you with this, but it will require you to either follow my written description of what to do or to send me some of your data files so that I can send you a VBScript that works with your data files.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 6
(4,860 Views)

Hallo Brad,

 

hast du eine Emaladresse? Dann sende ich meine Datei. Vielen Dank! 

0 Kudos
Message 5 of 6
(4,852 Views)
Solution
Accepted by topic author andreasyou
Message 6 of 6
(4,845 Views)